/* ============================================================
 *  Sakura Blog Theme - Lxcms 内容资讯门户
 *  Primary: #FF6B9D (樱花粉)
 *  Style:   B站专栏风 + 樱花飘落动画 + Q版emoji
 * ============================================================ */

:root {
    /* 主色 */
    --sakura-pink:   #FF6B9D;
    --sakura-light:  #FFE5EE;
    --sakura-blush:  #FFF5F8;
    --sakura-dark:   #E5447D;
    --sakura-deep:   #C2185B;

    /* 中性 */
    --bg-cream:      #FFFBFC;
    --bg-card:       #FFFFFF;
    --bg-soft:       #FFF8FA;
    --text-main:     #3A2A33;
    --text-sub:      #8A6B76;
    --text-muted:    #B8A0AB;
    --border-soft:   #FFE0EA;
    --border-mid:    #FFB3CD;

    /* 强调 */
    --accent-yellow: #FFD93D;
    --accent-purple: #B98FFF;
    --accent-mint:   #7AD9C7;
    --accent-coral:  #FF8C66;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.08);
    --shadow-md: 0 4px 16px rgba(255, 107, 157, 0.12);
    --shadow-lg: 0 8px 32px rgba(255, 107, 157, 0.16);
    --shadow-glow: 0 0 24px rgba(255, 107, 157, 0.35);

    /* 圆角 */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 28px;
    --r-pill: 999px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
                 "Segoe UI", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-cream);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 樱花飘落背景层 - 由 JS 注入 .petal 元素 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 107, 157, 0.06) 0, transparent 35%),
        radial-gradient(circle at 88% 78%, rgba(185, 143, 255, 0.05) 0, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 217, 61, 0.03) 0, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--sakura-pink); text-decoration: none; transition: all .25s ease; }
a:hover { color: var(--sakura-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== 樱花飘落动画 ===== */
.sakura-petal {
    position: fixed;
    top: -30px;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #FFC9DC 0%, #FF6B9D 80%);
    border-radius: 50% 0 50% 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    animation: petal-fall linear infinite;
    filter: drop-shadow(0 2px 3px rgba(255, 107, 157, 0.2));
}
@keyframes petal-fall {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.8; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ===== 通用容器 ===== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 28px 0 56px;
}
.layout.no-sidebar { grid-template-columns: 1fr; }
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}

/* ===== Header / 导航 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 22px;
    color: var(--sakura-pink);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo .logo-emoji {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--accent-purple));
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
    animation: logo-wobble 4s ease-in-out infinite;
}
@keyframes logo-wobble {
    0%, 100% { transform: rotate(-5deg); }
    50%      { transform: rotate(5deg); }
}
.nav-list {
    display: flex;
    gap: 4px;
    flex: 1;
    /* 优化: PC端防止导航过多导致右侧被挤隐藏，允许横向滚动兜底 */
    overflow-x: auto; 
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}
.nav-list::-webkit-scrollbar { display: none; /* Chrome/Safari 隐藏滚动条 */ }

.nav-item a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    transition: all .2s ease;
    white-space: nowrap;
}
.nav-item a:hover { background: var(--sakura-light); color: var(--sakura-pink); }
.nav-item.active a {
    background: linear-gradient(135deg, var(--sakura-pink), var(--sakura-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.35);
}
.nav-search {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-pill);
    padding: 4px 4px 4px 14px;
    width: 220px;
    transition: all .2s ease;
    flex-shrink: 0;
}
.nav-search:focus-within {
    border-color: var(--sakura-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}
.nav-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
}
.nav-search button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sakura-pink);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-search button:hover { background: var(--sakura-dark); }

.user-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    transition: all .25s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--sakura-pink), var(--sakura-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 107, 157, 0.5); }
.btn-ghost { background: var(--sakura-light); color: var(--sakura-pink); }
.btn-ghost:hover { background: var(--sakura-pink); color: #fff; }
.btn-soft { background: var(--bg-soft); color: var(--text-main); border: 1px solid var(--border-soft); }
.btn-soft:hover { border-color: var(--sakura-pink); color: var(--sakura-pink); }

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    border-radius: var(--r-pill);
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: all .2s ease;
}
.user-chip:hover { border-color: var(--sakura-pink); }
.user-chip img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sakura-light);
}
.user-chip .nickname { font-size: 13px; font-weight: 600; color: var(--text-main); }

.notif-bell {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-sub);
    transition: all .2s ease;
}
.notif-bell:hover { background: var(--sakura-light); color: var(--sakura-pink); }
.notif-bell .dot {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px; height: 16px;
    background: var(--sakura-pink);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* ===== Hero / Banner ===== */
.hero {
    position: relative;
    margin-top: 0;
    padding: 56px 0 40px;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
}
.hero-card {
    background: linear-gradient(135deg, #FF6B9D 0%, #B98FFF 100%);
    border-radius: var(--r-xl);
    padding: 40px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-card::before, .hero-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.hero-card::before { width: 200px; height: 200px; top: -80px; right: -60px; }
.hero-card::after  { width: 140px; height: 140px; bottom: -50px; left: -40px; }
.hero-card .eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}
.hero-card h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-card p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 22px;
    line-height: 1.7;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--sakura-pink);
    padding: 10px 22px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform .2s ease;
}
.hero-cta:hover { transform: translateY(-2px); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-emoji {
    font-size: 26px;
    margin-bottom: 6px;
    display: block;
}
.stat-card .stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--sakura-pink);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-card .stat-label { font-size: 12px; color: var(--text-sub); }

/* ===== Section 通用 ===== */
.section { margin-bottom: 36px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}
.section-title .deco {
    width: 6px;
    height: 22px;
    background: linear-gradient(180deg, var(--sakura-pink), var(--sakura-dark));
    border-radius: 4px;
}
.section-title .emoji { font-size: 20px; }
.section-more {
    font-size: 12px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all .2s ease;
}
.section-more:hover { color: var(--sakura-pink); gap: 6px; }

/* ===== Tab 切换 ===== */
.tab-bar {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    padding: 4px;
    border-radius: var(--r-pill);
    margin-bottom: 20px;
    border: 1px solid var(--border-soft);
}
.tab-bar button {
    flex: 1;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    transition: all .2s ease;
}
.tab-bar button.active {
    background: #fff;
    color: var(--sakura-pink);
    box-shadow: var(--shadow-sm);
}

/* ===== 文章卡片网格 ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-mid);
}
.article-card .cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--sakura-light), var(--accent-purple) 80%);
    position: relative;
    overflow: hidden;
}
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card .cover .placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}
.article-card .top-badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--sakura-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--r-pill);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.article-card .top-badge.hot { background: linear-gradient(135deg, #FF8C66, #FF3D3D); }
.article-card .top-badge.vip { background: linear-gradient(135deg, #FFD93D, #FFA500); color: #5A3A00; }
.article-card .body { padding: 14px 16px 16px; }
.article-card .cate-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--sakura-pink);
    background: var(--sakura-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 600;
}
.article-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}
.article-card .excerpt {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.article-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}
.article-card .meta .author {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-card .meta .author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sakura-light);
}
.article-card .meta .stats { display: flex; gap: 10px; }
.article-card .meta .stats span { display: inline-flex; align-items: center; gap: 3px; }

/* ===== 横向列表（首页信息流） ===== */
.article-list-ver {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.article-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    background: var(--bg-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
}
.article-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--border-mid); }
.article-row .cover {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--sakura-light), var(--accent-purple) 80%);
    position: relative;
}
.article-row .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-row .body { padding: 16px 18px 16px 0; display: flex; flex-direction: column; justify-content: space-between; }
.article-row h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-row .excerpt {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
@media (max-width: 640px) {
    .article-row { grid-template-columns: 1fr; }
    .article-row .body { padding: 14px 16px; }
}

/* ===== Sidebar 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 18px 18px 8px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.side-card .side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-soft);
}
.side-card .side-title .emoji { font-size: 18px; }

/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: var(--r-sm);
    transition: all .2s ease;
    cursor: pointer;
}
.rank-item:hover { background: var(--bg-soft); }
.rank-num {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--sakura-light);
    color: var(--sakura-pink);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rank-item:nth-child(1) .rank-num { background: linear-gradient(135deg, #FFD93D, #FFA500); color: #fff; }
.rank-item:nth-child(2) .rank-num { background: linear-gradient(135deg, #C0C0C0, #909090); color: #fff; }
.rank-item:nth-child(3) .rank-num { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }
.rank-thumb {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: var(--sakura-light);
    overflow: hidden;
    flex-shrink: 0;
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-info .title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}
.rank-info .sub { font-size: 11px; color: var(--text-muted); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-soft);
    color: var(--text-sub);
    border-radius: var(--r-pill);
    font-size: 12px;
    border: 1px solid var(--border-soft);
    transition: all .2s ease;
}
.tag-cloud a:hover {
    background: var(--sakura-pink);
    color: #fff;
    border-color: var(--sakura-pink);
    transform: scale(1.05);
}
.tag-cloud a.grad-1 { background: linear-gradient(135deg, #FFE5EE, #FFC9DC); color: var(--sakura-dark); }
.tag-cloud a.grad-2 { background: linear-gradient(135deg, #E5D5FF, #C9A9FF); color: var(--accent-purple); }
.tag-cloud a.grad-3 { background: linear-gradient(135deg, #D5F5E5, #A9E5C9); color: var(--accent-mint); }
.tag-cloud a.grad-4 { background: linear-gradient(135deg, #FFF5D5, #FFE5A9); color: #B8860B; }
.tag-cloud a.grad-5 { background: linear-gradient(135deg, #FFD9C9, #FFB38A); color: var(--accent-coral); }
.tag-cloud a.grad-6 { background: linear-gradient(135deg, #FFC9E5, #FF9DC9); color: var(--sakura-deep); }

/* 作者推荐 */
.author-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 10px; }
.author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-row .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sakura-light), var(--accent-purple));
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}
.author-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-row .info { flex: 1; min-width: 0; }
.author-row .info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}
.author-row .info .desc { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-row .follow-btn {
    padding: 4px 12px;
    background: var(--sakura-light);
    color: var(--sakura-pink);
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 600;
    transition: all .2s ease;
}
.author-row .follow-btn:hover { background: var(--sakura-pink); color: #fff; }
.author-row .follow-btn.followed { background: var(--bg-soft); color: var(--text-muted); }

/* ===== 面包屑 ===== */
.crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    font-size: 12px;
    color: var(--text-sub);
    flex-wrap: wrap;
}
.crumb a { color: var(--text-sub); }
.crumb a:hover { color: var(--sakura-pink); }
.crumb .sep { color: var(--text-muted); }
.crumb .current { color: var(--sakura-pink); font-weight: 600; }

/* ===== 文章详情 ===== */
.article-detail {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 32px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.detail-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.detail-header h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 14px;
}
.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-author img {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
    background: var(--sakura-light);
}
.detail-author .name { font-weight: 600; color: var(--text-main); font-size: 14px; }
.detail-author .bio { font-size: 11px; color: var(--text-muted); }
.detail-stats { display: flex; gap: 18px; font-size: 12px; color: var(--text-muted); margin-left: auto; }
.detail-stats span { display: inline-flex; align-items: center; gap: 4px; }

.article-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-main);
}
.article-content p { margin-bottom: 18px; }
.article-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--sakura-pink);
}
.article-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 12px;
    color: var(--sakura-dark);
}
.article-content img { border-radius: var(--r-md); margin: 16px 0; box-shadow: var(--shadow-sm); }
.article-content blockquote {
    background: var(--sakura-blush);
    border-left: 4px solid var(--sakura-pink);
    padding: 12px 18px;
    border-radius: var(--r-sm);
    margin: 16px 0;
    color: var(--text-sub);
    font-style: italic;
}
.article-content pre {
    background: #2D1B2E;
    color: #F5E5F0;
    padding: 18px;
    border-radius: var(--r-md);
    overflow-x: auto;
    margin: 16px 0;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}
.article-content pre::before {
    content: "● ● ●";
    position: absolute;
    top: 8px;
    left: 14px;
    color: #FF6B9D;
    font-size: 10px;
    letter-spacing: 2px;
}
.article-content pre code { color: inherit; background: none; padding: 0; }
.article-content code {
    background: var(--sakura-light);
    color: var(--sakura-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 0.9em;
}

/* 付费文章遮罩 */
.paywall-mask {
    position: relative;
    margin-top: 20px;
}
.paywall-mask::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 80%);
    pointer-events: none;
}
.paywall-card {
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--sakura-blush), var(--sakura-light));
    border: 2px dashed var(--sakura-pink);
    border-radius: var(--r-lg);
    text-align: center;
}
.paywall-card .lock-emoji { font-size: 40px; margin-bottom: 8px; }
.paywall-card h4 { font-size: 16px; font-weight: 700; color: var(--sakura-dark); margin-bottom: 6px; }
.paywall-card p { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.paywall-card .price { font-size: 22px; font-weight: 800; color: var(--sakura-pink); margin: 0 4px; }

/* 互动栏 */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 18px 24px;
    margin: 28px 0;
    background: var(--bg-soft);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-soft);
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border-radius: var(--r-md);
    transition: all .2s ease;
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 600;
}
.action-btn:hover { background: #fff; color: var(--sakura-pink); transform: translateY(-2px); }
.action-btn.active { color: var(--sakura-pink); }
.action-btn .icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}
.action-btn:hover .icon { background: var(--sakura-light); transform: scale(1.1); }
.action-btn.active .icon { background: var(--sakura-pink); color: #fff; }

/* 上下篇导航 */
.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0;
}
.pn-card {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    transition: all .2s ease;
}
.pn-card:hover { border-color: var(--sakura-pink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pn-card .label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.pn-card .title { font-size: 13px; font-weight: 600; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-card.next { text-align: right; }
@media (max-width: 640px) {
    .prev-next { grid-template-columns: 1fr; }
}

/* 评论 */
.comment-section { margin-top: 28px; }
.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.comment-form img { width: 40px; height: 40px; border-radius: 50%; background: var(--sakura-light); flex-shrink: 0; }
.comment-form .form-main { flex: 1; }
.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    resize: vertical;
    outline: none;
    transition: all .2s ease;
}
.comment-form textarea:focus { border-color: var(--sakura-pink); box-shadow: 0 0 0 3px rgba(255,107,157,0.1); background: #fff; }
.comment-form .form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-soft);
    border-radius: var(--r-md);
    border: 1px solid var(--border-soft);
}
.comment-item .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sakura-light); flex-shrink: 0; }
.comment-item .c-body { flex: 1; }
.comment-item .c-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.comment-item .c-name { font-size: 13px; font-weight: 600; color: var(--text-main); }
.comment-item .c-time { font-size: 11px; color: var(--text-muted); }
.comment-item .c-text { font-size: 13px; color: var(--text-main); line-height: 1.6; margin-bottom: 6px; }
.comment-item .c-actions { display: flex; gap: 14px; font-size: 12px; color: var(--text-sub); }
.comment-item .c-actions span { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color .2s ease; }
.comment-item .c-actions span:hover { color: var(--sakura-pink); }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--text-sub);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    transition: all .2s ease;
}
.pagination a:hover { border-color: var(--sakura-pink); color: var(--sakura-pink); }
.pagination .current {
    background: linear-gradient(135deg, var(--sakura-pink), var(--sakura-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255,107,157,0.35);
    font-weight: 700;
}
.pagination .disabled { color: var(--text-muted); opacity: 0.5; cursor: not-allowed; }

/* ===== 空状态 ===== */
.empty-box {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-box .empty-emoji { font-size: 48px; margin-bottom: 12px; }
.empty-box .empty-text { font-size: 14px; }

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--sakura-blush) 100%);
    border-top: 1px solid var(--border-soft);
    padding: 40px 0 24px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.footer-col a {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    padding: 4px 0;
    transition: color .2s ease;
}
.footer-col a:hover { color: var(--sakura-pink); }
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--sakura-dark));
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all .3s ease;
    pointer-events: none;
    z-index: 998;
    border: 3px solid #fff;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ===== 加载条 ===== */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sakura-pink), var(--accent-purple));
    z-index: 200;
    transition: width .15s ease;
    box-shadow: 0 0 8px var(--sakura-pink);
}

/* ===== Login / Register ===== */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.1) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(185, 143, 255, 0.08) 0, transparent 45%);
}
.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: "🌸";
    position: absolute;
    top: -20px; right: -20px;
    font-size: 80px;
    opacity: 0.15;
    transform: rotate(-15deg);
}
.auth-card h2 { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.auth-card .sub { font-size: 12px; color: var(--text-sub); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 6px; font-weight: 600; }
.form-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    transition: all .2s ease;
    outline: none;
    font-size: 13px;
}
.form-input:focus { border-color: var(--sakura-pink); box-shadow: 0 0 0 3px rgba(255,107,157,0.1); background: #fff; }
.auth-card .btn-primary { width: 100%; justify-content: center; padding: 12px; margin-top: 8px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-sub); }
.auth-switch a { font-weight: 600; }

/* ===== 用户中心 ===== */
.user-center {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 24px 0 56px;
}
@media (max-width: 768px) {
    .user-center { grid-template-columns: 1fr; }
}
.user-side {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 88px;
}
.user-profile {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 12px;
}
.user-profile .big-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--sakura-light), var(--accent-purple));
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.user-profile .big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile .name { font-size: 15px; font-weight: 700; color: var(--text-main); }
.user-profile .bio { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.user-menu { display: flex; flex-direction: column; gap: 2px; }
.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 500;
    transition: all .2s ease;
}
.user-menu a:hover { background: var(--bg-soft); color: var(--sakura-pink); }
.user-menu a.active { background: var(--sakura-light); color: var(--sakura-pink); font-weight: 600; }
.user-menu a .emoji { font-size: 16px; }

.user-main {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 24px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}
.user-main h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* VIP 标签 */
.vip-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #FFD93D, #FFA500);
    color: #5A3A00;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

/* ===== 下拉菜单通用样式 ===== */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    overflow: hidden;
}
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-header .mark-all-read {
    font-size: 12px;
    font-weight: 400;
    color: #e8889b;
    cursor: pointer;
    transition: color 0.2s;
}
.dropdown-header .mark-all-read:hover {
    color: #d4677a;
}
.dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}
.dropdown-body::-webkit-scrollbar {
    width: 5px;
}
.dropdown-body::-webkit-scrollbar-thumb {
    background: #e0c0c8;
    border-radius: 3px;
}
.dropdown-empty {
    padding: 40px 16px;
    text-align: center;
    color: #B8A0AB;
    font-size: 13px;
}
.dropdown-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}
.dropdown-footer a {
    font-size: 13px;
    color: #e8889b;
    transition: color 0.2s;
}
.dropdown-footer a:hover {
    color: #d4677a;
}

/* ===== 通知下拉 ===== */
.notif-menu {
    min-width: 320px;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #faf6f7;
}
.notif-item:hover {
    background: #fdf6f8;
}
.notif-item.unread {
    background: #fff8fa;
}
.notif-item.unread::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #e8889b;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notif-time {
    font-size: 11px;
    color: #B8A0AB;
}

/* ===== 用户下拉 ===== */
.user-menu-dropdown {
    min-width: 200px;
}
.user-chip {
    cursor: pointer;
}
.user-chip .arrow {
    font-size: 11px;
    color: #B8A0AB;
    margin-left: 2px;
    transition: transform 0.25s ease;
    display: inline-block;
}
.dropdown.open .user-chip .arrow {
    transform: rotate(180deg);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: #fdf6f8;
    color: #d4677a;
    padding-left: 20px;
}
.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #e8889b;
}
.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* 小三角箭头 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
    transform: rotate(45deg);
}
.notif-dropdown .dropdown-menu::before {
    right: 10px;
}

/* Hero 区布局与幻灯片样式优化 */
.hero-inner { display: flex; gap: 24px; align-items: stretch; }
.hero-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.hero-slider { 
    width: 380px; 
    flex-shrink: 0; 
    border-radius: 20px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
    background: linear-gradient(135deg, #fff0f6 0%, #ffe3ea 100%); /* 优美的兜底背景 */
}
.slider-wrapper { width: 100%; height: 100%; position: relative; }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.slide-item.active { opacity: 1; }
.slide-item a { display: block; width: 100%; height: 100%; position: relative; text-decoration: none; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }

.slide-overlay { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    padding: 40px 20px 16px; 
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); 
    color: #fff; 
}
.slide-tag { 
    display: inline-block; padding: 3px 10px; 
    background: var(--sakura-pink); color: #fff; 
    font-size: 11px; border-radius: 4px; margin-bottom: 8px; font-weight: 600; 
}
.slide-overlay h3 { 
    font-size: 16px; font-weight: 700; line-height: 1.4; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
    margin: 0;
}
.slider-dots { position: absolute; bottom: 12px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.slider-dot.active { width: 20px; border-radius: 4px; background: #fff; }

@media (max-width: 768px) { 
    .hero-inner { flex-direction: column; } 
    .hero-slider { width: 100%; min-height: 220px; } 
}

/* 工具类 */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.hidden { display: none; }


/* ============================================================
 *  核心修复: 导航栏响应式及自适应优化 (>=992px 折叠为汉堡菜单)
 * ============================================================ */

/* 汉堡菜单按钮样式 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--sakura-pink);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 平板及手机端响应式 (<= 992px) */
@media (max-width: 992px) {
    /* 1. 彻底解决移动端透明看不清的问题：提高背景不透明度 */
    .site-header {
        background: rgba(255, 255, 255, 0.98);
    }
    
    /* 2. 重构导航布局为弹性换行，防止错位 */
    .nav {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 0;
        position: relative;
    }

    .logo { order: 1; }
    
    .user-area {
        order: 2;
        margin-left: auto; /* 推到最右 */
        gap: 10px;
    }

    /* 隐藏冗余文字，节省手机端空间 */
    .user-chip .nickname, 
    .user-chip .arrow { 
        display: none; 
    }
    .user-area .btn { padding: 6px 12px; font-size: 12px; }

    /* 显示汉堡菜单 */
    .nav-toggle {
        display: flex;
        order: 3;
        margin-left: 16px;
    }

    /* 3. 折叠区域样式：默认隐藏，展开时纯白背景防穿透看不清 */
    .nav-list, .nav-search {
        display: none;
        order: 4;
        flex-basis: 100%;
        background: #fff; /* 纯白背景，解决透明看不清的问题 */
        margin-top: 10px;
        padding: 10px 0;
        border-top: 1px solid var(--border-soft);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .nav.nav-active .nav-list,
    .nav.nav-active .nav-search {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* 导航项垂直排列样式 */
    .nav-list {
        overflow-x: hidden; /* 竖排时关闭横向滚动 */
    }
    .nav-item a {
        display: block;
        padding: 12px 14px;
        border-radius: 0;
        text-align: center;
    }
    .nav-item a:hover, .nav-item.active a {
        background: var(--sakura-light);
    }

    /* 搜索框垂直排列样式 */
    .nav-search {
        padding: 16px 14px;
        border-radius: 0;
        width: 100%;
        background: #fff;
        border: none;
        border-bottom: 1px solid var(--border-soft);
    }
    .nav-search input {
        width: 100%;
    }

    /* 汉堡菜单展开动画 */
    .nav-active .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-active .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-active .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* 调整下拉菜单在平板/手机端的触发断点，统一与导航栏折叠保持一致 */
    .dropdown-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        min-width: auto;
        border-radius: 0 0 14px 14px;
    }
    .dropdown-menu::before {
        display: none;
    }
}

/* 超小屏幕微调 */
@media (max-width: 480px) {
    .user-area .btn-primary { padding: 6px 12px; }
    .notif-bell { width: 32px; height: 32px; font-size: 14px;}
    .user-chip { padding: 2px 10px 2px 2px; }
    .user-chip img { width: 28px; height: 28px; }
}

/* ========================================== */
/* ===== 修复移动端幻灯片不显示（高度塌陷） ===== */
/* ========================================== */
@media (max-width: 768px) {
    .hero-inner { 
        flex-direction: column !important; 
    } 
    .hero-slider { 
        width: 100% !important; 
        flex-shrink: 1 !important;
        /* 关键修复：由于内部 slide-item 是绝对定位，必须给定高度，否则高度塌陷为 0 导致不显示 */
        height: 220px !important; 
        min-height: 220px !important;
    }
    
    /* 优化幻灯片内文字大小，适配小屏 */
    .slide-overlay h3 { 
        font-size: 14px !important; 
    }
    .slide-overlay {
        padding: 30px 12px 10px !important;
    }
}

/* ========================================== */
/* ===== 修复 Hero 区按钮自适应问题 ========== */
/* ========================================== */

/* PC端：限制按钮最大宽度，防止过于宽大 */
.hero-card .hero-cta {
    width: auto;
    max-width: 280px;
    justify-content: center; /* 文字居中 */
    margin-top: 8px;
}

/* 移动端：按钮宽度自适应屏幕，并居中显示 */
@media (max-width: 768px) {
    .hero-card {
        padding: 30px 24px; /* 稍微缩小内边距 */
        text-align: center; /* 让按钮和文字居中更美观 */
    }
    .hero-card .hero-cta {
        width: 100%; /* 宽度占满卡片 */
        max-width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        margin: 16px auto 0; /* 上下外边距，左右自动居中 */
    }
    
    /* 顺便优化一下标题大小，防止在手机上字号过大 */
    .hero-card h1 {
        font-size: 22px;
    }
    .hero-card h1 small {
        font-size: 12px !important;
    }
}