/* ==========================================================================
   粉晶精品门户模板（uni）
   视觉基调：粉晶×玫瑰、奶油白底、20px 大圆角、渐变徽章与文字、柔和投影
   主题色：--primary 由站点配置注入（默认玫瑰红 #be185d），其余色阶由其派生
   ========================================================================== */

:root{
    /* 主色：站点主题色（回退为玫瑰红） */
    --rose: #be185d;
    --rose: var(--primary, #be185d);

    /* 派生色：不支持 color-mix 的浏览器自动回退到上行固定值 */
    --rose-deep: #9d174d;
    --rose-deep: color-mix(in srgb, var(--primary, #be185d), #000 16%);
    --pink: #f472b6;
    --pink: color-mix(in srgb, var(--primary, #be185d), #fff 38%);
    --cream: #fffafc;
    --soft: #fdf2f7;
    --soft: color-mix(in srgb, var(--primary, #be185d), #fff 95%);
    --line: #f2e2ea;
    --line: color-mix(in srgb, var(--primary, #be185d), #fff 88%);
    --tag-bg: #fde7f1;
    --tag-bg: color-mix(in srgb, var(--primary, #be185d), #fff 91%);
    --ink: #2c1a24;
    --body-text: #54434b;
    --muted: #7a6670;
    --radius: 20px;
    --shadow: 0 8px 24px color-mix(in srgb, var(--primary, #be185d), transparent 91%);
    --shadow: 0 8px 24px rgba(190, 24, 93, .09);
    --shadow-hover: 0 16px 32px rgba(190, 24, 93, .14);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--ink);
    background: var(--cream);
    font-size: 15.5px;
    line-height: 1.75;
}
img{ max-width: 100%; }
a{ color: var(--rose); text-decoration: none; transition: .2s; }
a:hover{ color: var(--rose-deep); }

.un-wrap{ max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ===== header ===== */
.un-header{
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 250, 252, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.un-header-inner{
    padding: 13px 22px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.un-logo{
    font-weight: 700; font-size: 19px; color: var(--rose); letter-spacing: .5px;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.un-logo:hover{ color: var(--rose-deep); }
.un-logo span{
    font-size: 12px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    padding: 2px 9px; border-radius: 99px; letter-spacing: 1px;
}
.un-logo-img{ height: 34px; width: auto; border-radius: 8px; }
.un-logo-text{ color: var(--rose); }
.un-nav-links{ display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.un-nav-link{
    display: inline-block; padding: 7px 13px; border-radius: 99px;
    font-size: 14.5px; color: var(--body-text); font-weight: 500; transition: .2s;
}
.un-nav-link:hover{ background: var(--soft); color: var(--rose); }
.un-nav-link.is-active{ background: var(--tag-bg); color: var(--rose); font-weight: 600; }
.un-nav-cta{
    display: inline-block; padding: 7px 16px; border-radius: 99px;
    font-size: 14px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--primary, #be185d), transparent 80%);
    box-shadow: 0 6px 14px rgba(190, 24, 93, .2);
}
.un-nav-cta:hover{ color: #fff; transform: translateY(-1px); }
.un-nav-member{ display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; }
.un-member-name{ font-size: 14px; font-weight: 600; color: var(--rose-deep); }
.un-member-form{ display: inline; }
.un-member-form button{
    border: 1px solid var(--line); background: #fff; color: var(--muted);
    border-radius: 99px; padding: 4px 12px; font-size: 13px; cursor: pointer; transition: .2s;
}
.un-member-form button:hover{ color: var(--rose); border-color: var(--rose); }

/* ===== hero ===== */
.un-hero{
    padding: 78px 0 70px;
    background:
        radial-gradient(900px 380px at 12% 0%, color-mix(in srgb, var(--primary, #be185d), #fff 88%) 0%, rgba(253, 228, 240, 0) 70%),
        radial-gradient(700px 320px at 88% 18%, color-mix(in srgb, var(--primary, #be185d), #fff 84%) 0%, rgba(251, 215, 232, 0) 72%),
        linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--primary, #be185d), #fff 95%) 100%);
    border-bottom: 1px solid var(--line);
}
.un-eyebrow{
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
    color: var(--rose); background: #fff;
    border: 1px solid var(--line); border-radius: 99px;
    padding: 5px 15px; margin: 0 0 20px;
}
.un-hero h1{
    font-size: clamp(26px, 4vw, 42px);
    background: linear-gradient(100deg, var(--rose-deep) 0%, var(--rose) 55%, var(--pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 0 0 18px; line-height: 1.35;
}
.un-hero-sub{ font-size: 16.5px; color: var(--body-text); max-width: 820px; margin: 0 0 26px; }
.un-hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.un-btn{
    display: inline-block; padding: 11px 26px; border-radius: 99px;
    font-weight: 600; font-size: 15px; transition: .22s; border: 0; cursor: pointer;
}
.un-btn-primary{
    color: #fff; background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary, #be185d), transparent 78%);
    box-shadow: 0 10px 22px rgba(190, 24, 93, .22);
}
.un-btn-primary:hover{ color: #fff; transform: translateY(-2px); }
.un-btn-ghost{ color: var(--rose); background: #fff; border: 1px solid var(--line); }
.un-btn-ghost:hover{ background: var(--soft); color: var(--rose-deep); }

/* ===== hero 数据统计 ===== */
.un-hero-stats{
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 44px;
}
.un-stat{
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; text-align: center;
    box-shadow: var(--shadow);
}
.un-stat b{
    display: block; font-size: 30px; line-height: 1.25;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.un-stat span{ font-size: 13.5px; color: var(--muted); }

/* ===== 快捷锚点 ===== */
.un-quickbar{
    position: sticky; top: 61px; z-index: 40;
    background: rgba(255, 250, 252, .88); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.un-quickbar-row{ display: flex; gap: 8px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.un-quickbar-row a{
    font-size: 13.5px; color: var(--body-text); font-weight: 500;
    padding: 5px 14px; border-radius: 99px; border: 1px solid transparent;
}
.un-quickbar-row a:hover{ background: var(--soft); color: var(--rose); border-color: var(--line); }

/* ===== 区块 ===== */
.un-section{ padding: 58px 0; }
.un-section-alt{ background: linear-gradient(180deg, var(--cream) 0%, var(--soft) 100%); }
.un-sec-title{
    font-size: 27px; position: relative; padding-left: 16px;
    margin: 0 0 10px; line-height: 1.4;
}
.un-sec-title::before{
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 6px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--pink), var(--rose));
}
.un-sec-sub{ color: var(--muted); font-size: 15px; margin: 0 0 30px; }

/* ===== 卡片网格 ===== */
.un-grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.un-grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.un-card{
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); transition: .24s;
    display: block; color: var(--ink);
}
a.un-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--ink); }
.un-card h3{ font-size: 17px; color: var(--rose-deep); margin: 0 0 8px; }
.un-card p{ font-size: 14.6px; color: var(--body-text); margin: 0; }
.un-geo-card{ display: flex; flex-direction: column; }
.un-card-more{
    margin-top: auto; padding-top: 14px;
    font-size: 13.5px; font-weight: 600; color: var(--rose);
}
.un-empty{
    grid-column: 1 / -1; text-align: center; color: var(--muted);
    background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
    padding: 34px 20px; list-style: none;
}

/* ===== 标签 ===== */
.un-tag{
    display: inline-block; font-size: 12px; font-weight: 600; color: var(--rose);
    background: var(--tag-bg); border-radius: 99px; padding: 3px 11px; margin-bottom: 12px;
}

/* ===== 焦点内容 ===== */
.un-featured{
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 6px;
}
.un-featured-main{
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; transition: .24s; display: flex;
    flex-direction: column;
}
.un-featured-main:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.un-featured-main img, .un-featured-main .un-cover-fallback{
    width: 100%; height: 250px; object-fit: cover; display: flex;
    align-items: center; justify-content: center;
}
.un-featured-info{ padding: 22px 26px 24px; }
.un-featured-info h3{ font-size: 19px; color: var(--ink); margin: 4px 0 10px; line-height: 1.5; }
.un-featured-info p{ font-size: 14.6px; color: var(--body-text); margin: 0 0 12px; }
.un-featured-info time{ font-size: 13px; color: var(--muted); }
.un-featured-side{
    display: flex; flex-direction: column; gap: 14px;
}
.un-featured-item{
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 14px 16px; display: flex; gap: 14px; align-items: center;
    box-shadow: var(--shadow); transition: .24s;
}
.un-featured-item:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.un-featured-item img, .un-featured-item .un-cover-fallback{
    width: 86px; height: 64px; object-fit: cover; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
}
.un-featured-item h4{
    font-size: 14.6px; color: var(--ink); margin: 0 0 6px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.un-featured-item time{ font-size: 12.5px; color: var(--muted); }
.un-cover-fallback{
    background: linear-gradient(135deg, var(--tag-bg), #fce4ef);
    background: linear-gradient(135deg, var(--tag-bg), color-mix(in srgb, var(--primary, #be185d), #fff 82%));
    color: var(--rose); font-size: 26px; font-weight: 700; letter-spacing: 2px;
    align-items: center; justify-content: center;
}
.un-cover-sm{ font-size: 16px; }

/* ===== 最新动态 ===== */
.un-news-item{ position: relative; }
.un-news-date{
    display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--rose);
    background: var(--tag-bg); border-radius: 99px; padding: 3px 12px; margin-bottom: 12px;
}
.un-news-item h3{
    font-size: 17.5px; margin: 0 0 10px; line-height: 1.55;
    color: #3a2230;
}
.un-news-item h3 a{ color: #3a2230; }
.un-news-item h3 a:hover{ color: var(--rose); }
.un-news-item p{ font-size: 14.6px; color: var(--body-text); margin: 0 0 8px; }
.un-news-item .un-tag{ margin-bottom: 0; }

/* ===== FAQ ===== */
.un-faq-item{
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 16px 22px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.un-faq-item summary{
    cursor: pointer; font-weight: 600; color: var(--rose-deep); font-size: 16px;
    list-style: none; position: relative; padding-right: 26px;
}
.un-faq-item summary::-webkit-details-marker{ display: none; }
.un-faq-item summary::after{
    content: "+"; position: absolute; right: 0; top: -2px;
    font-size: 20px; color: var(--pink); font-weight: 700;
}
.un-faq-item[open] summary::after{ content: "–"; }
.un-faq-item p{ margin: 14px 0 0; font-size: 14.8px; color: var(--body-text); }

/* ===== 联系 ===== */
.un-contact-box{
    background: linear-gradient(135deg, #fff 0%, var(--soft) 100%);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow);
}
.un-contact-box ul{ margin: 0; padding-left: 20px; color: var(--body-text); font-size: 15px; }
.un-contact-box li{ margin-bottom: 8px; }
.un-contact-box li:last-child{ margin-bottom: 0; }
.un-contact-box strong{ color: var(--rose-deep); }

/* ===== 内页 page-hero ===== */
.un-page-hero{
    padding: 54px 0 44px;
    background:
        radial-gradient(700px 300px at 10% 0%, color-mix(in srgb, var(--primary, #be185d), #fff 88%) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, var(--cream) 0%, var(--soft) 100%);
    border-bottom: 1px solid var(--line);
}
.un-page-hero h1{
    font-size: clamp(24px, 3.2vw, 34px);
    margin: 8px 0 12px; line-height: 1.4; color: var(--rose-deep);
}
.un-page-hero p{ margin: 0; color: var(--muted); font-size: 15px; }
.un-crumb{ font-size: 13.5px; color: var(--muted); }
.un-crumb a{ color: var(--rose); }
.un-article-meta{ margin: 4px 0 0; }
.un-article-meta time, .un-article-meta .un-tag{ margin-right: 8px; }
.un-article-meta .un-tag{ margin-bottom: 0; }

/* ===== 列表页 ===== */
.un-list{ list-style: none; margin: 0; padding: 0; }
.un-list-item{ margin-bottom: 18px; padding: 0; overflow: hidden; }
.un-list-inner{ display: flex; gap: 20px; padding: 20px 24px; color: var(--ink); }
.un-list-inner:hover{ color: var(--ink); }
.un-list-inner img, .un-list-inner .un-cover-fallback{
    width: 220px; height: 140px; object-fit: cover; border-radius: 14px; flex: none;
}
.un-list-info{ min-width: 0; }
.un-list-info h3{ font-size: 17.5px; margin: 2px 0 10px; color: var(--ink); line-height: 1.55; }
.un-list-inner:hover h3{ color: var(--rose); }
.un-list-info p{
    font-size: 14.4px; color: var(--body-text); margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.un-list-meta{ display: flex; align-items: center; gap: 12px; }
.un-list-meta time{ font-size: 13px; color: var(--muted); }
.un-list-meta .un-tag{ margin-bottom: 0; }

/* ===== 文章正文 ===== */
.un-article-wrap{ max-width: 860px; }
.un-article{ padding: 30px 34px; }
.un-article-cover{ margin: -6px -6px 22px; }
.un-article-cover img{ width: 100%; border-radius: 14px; }
.un-article-lead{
    font-size: 15.5px; color: var(--rose-deep); background: var(--soft);
    border-left: 4px solid var(--rose); border-radius: 0 12px 12px 0;
    padding: 12px 16px; margin: 0 0 22px;
}
.un-article-content{ font-size: 15.5px; color: var(--body-text); overflow-wrap: break-word; }
.un-article-content h2, .un-article-content h3, .un-article-content h4{ color: var(--rose-deep); line-height: 1.5; }
.un-article-content h2{ font-size: 21px; margin: 28px 0 14px; }
.un-article-content h3{ font-size: 18px; margin: 24px 0 12px; }
.un-article-content img{ border-radius: 12px; }
.un-article-content blockquote{
    margin: 18px 0; padding: 12px 18px; background: var(--soft);
    border-left: 4px solid var(--pink); border-radius: 0 12px 12px 0; color: var(--muted);
}
.un-article-content table{ border-collapse: collapse; width: 100%; margin: 18px 0; }
.un-article-content th, .un-article-content td{ border: 1px solid var(--line); padding: 9px 12px; font-size: 14.5px; }
.un-article-content th{ background: var(--soft); color: var(--rose-deep); }
.un-neighbor{
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; font-size: 14px;
}
.un-neighbor-right{ margin-left: auto; }
.un-related{ margin-top: 22px; }
.un-related h3{ font-size: 16.5px; color: var(--rose-deep); margin: 0 0 12px; }
.un-related ul{ list-style: none; margin: 0; padding: 0; }
.un-related li{ padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.6px; }
.un-related li:last-child{ border-bottom: 0; }

/* ===== 搜索 ===== */
.un-search{
    display: flex; gap: 10px; max-width: 620px; margin: 0 auto 34px;
}
.un-search input{
    flex: 1; border: 1px solid var(--line); border-radius: 99px;
    padding: 11px 20px; font-size: 15px; background: #fff; color: var(--ink);
    outline: none; transition: .2s;
}
.un-search input:focus{ border-color: var(--rose); box-shadow: 0 0 0 4px var(--tag-bg); }
.un-search .un-btn{ flex: none; }

/* ===== 404 ===== */
.un-404-actions{ display: flex; gap: 14px; justify-content: center; }

/* ===== 会员登录/注册 ===== */
.un-auth-wrap{ display: flex; justify-content: center; padding: 64px 22px; }
.un-auth-card{ width: 100%; max-width: 460px; padding: 34px 36px; }
.un-auth-card h2{ margin: 0 0 8px; font-size: 23px; color: var(--rose-deep); }
.un-auth-sub{ margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.un-auth-error{
    background: #fdecef; color: #b4234a; border: 1px solid #f6c9d4;
    border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px;
}
.un-auth-field{ margin-bottom: 16px; }
.un-auth-field label{
    display: block; font-size: 13.5px; color: var(--body-text);
    font-weight: 600; margin-bottom: 6px;
}
.un-auth-field input{
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 14px; font-size: 15px; background: #fff; color: var(--ink);
    outline: none; transition: .2s;
}
.un-auth-field input:focus{ border-color: var(--rose); box-shadow: 0 0 0 4px var(--tag-bg); }
.un-auth-btn{ width: 100%; margin-top: 6px; }
.un-auth-alt{ margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ===== 分页 ===== */
.pagination{
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
    margin: 34px 0 6px;
}
.pagination .page-btn{
    display: inline-block; min-width: 40px; text-align: center;
    padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line);
    background: #fff; color: var(--body-text); font-size: 14px; transition: .2s;
}
.pagination a.page-btn:hover{ background: var(--soft); color: var(--rose); }
.pagination .page-btn.is-current{
    background: linear-gradient(135deg, var(--pink), var(--rose));
    color: #fff; border-color: transparent; font-weight: 600;
}
.pagination .page-btn.is-disabled{ color: #c2b2bb; background: var(--cream); cursor: default; }
.pagination .page-ellipsis{ color: var(--muted); align-self: center; }

/* ===== footer ===== */
.un-footer{
    background: linear-gradient(180deg, #fff4f9 0%, #fdeaf2 100%);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary, #be185d), #fff 96%) 0%, color-mix(in srgb, var(--primary, #be185d), #fff 92%) 100%);
    border-top: 1px solid var(--line);
    padding: 52px 0 26px; font-size: 14.5px; color: var(--body-text);
    margin-top: 0;
}
.un-footer-grid{ display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
.un-footer-grid h4{ font-size: 15px; color: var(--rose-deep); margin: 0 0 10px; }
.un-footer-grid p{ margin: 0; font-size: 14px; color: var(--body-text); }
.un-footer-links{ list-style: none; margin: 0; padding: 0; }
.un-footer-links li{ margin-bottom: 7px; color: var(--body-text); }
.un-footer-links a{ color: var(--body-text); }
.un-footer-links a:hover{ color: var(--rose); }
.un-fl{
    border-top: 1px dashed var(--line); padding-top: 16px; margin-bottom: 18px;
    font-size: 13.5px; color: var(--muted); line-height: 2;
}
.un-fl em{ margin: 0 6px; font-style: normal; color: var(--line); }
.un-footer-bottom{
    border-top: 1px solid var(--line); padding-top: 18px;
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--muted);
}
.un-footer-bottom a{ color: var(--rose); }

/* ===== 回到顶部 ===== */
.un-totop{
    position: fixed; right: 26px; bottom: 30px; z-index: 70;
    width: 44px; height: 44px; border-radius: 99px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff;
    font-size: 18px; box-shadow: 0 10px 22px rgba(190, 24, 93, .25);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.un-totop.is-show{ opacity: 1; visibility: visible; transform: translateY(0); }
.un-totop:hover{ transform: translateY(-3px); }

/* ===== 响应式 ===== */
@media(max-width: 980px){
    .un-grid-3{ grid-template-columns: repeat(2, 1fr); }
    .un-hero-stats{ grid-template-columns: repeat(2, 1fr); }
    .un-featured{ grid-template-columns: 1fr; }
    .un-footer-grid{ grid-template-columns: 1fr 1fr; }
    .un-quickbar{ position: static; }
}
@media(max-width: 680px){
    .un-grid-3, .un-grid-2{ grid-template-columns: 1fr; }
    .un-section{ padding: 48px 0; }
    .un-header-inner{ justify-content: center; }
    .un-footer-grid{ grid-template-columns: 1fr; }
    .un-list-inner{ flex-direction: column; padding: 18px; }
    .un-list-inner img, .un-list-inner .un-cover-fallback{ width: 100%; height: 170px; }
    .un-article{ padding: 22px 20px; }
    .un-hero{ padding: 56px 0 54px; }
    .un-search{ flex-direction: column; }
    .un-contact-box{ padding: 22px; }
}
