/* ============ 公共CSS - 所有页面共享 ============ */
:root {
    --color-bg-light: #fdfdcb;
    --color-pink-soft: #f4aeba;
    --color-pink-mid: #ec729c;
    --color-rose-deep: #c54c82;
    --color-white: #ffffff;
    --color-text: #2d2d2d;
    --color-text-light: #5a5a5a;
    --color-text-muted: #7a7a7a;
    --color-border: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-stack: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    background: #fafaf9;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============ 顶部导航栏 ============ */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-pink-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-smooth);
}
.header-nav.scrolled {
    box-shadow: var(--shadow-md);
}
.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 62px;
    gap: 16px;
}
.header-nav .brand-name {
    text-decoration: none;
    flex-shrink: 0;
}
.header-nav .brand-name h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-rose-deep);
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.header-nav .brand-name h1:hover {
    color: var(--color-pink-mid);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}
.nav-links a {
    display: inline-block;
    padding: 7px 13px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--color-pink-soft);
    color: var(--color-rose-deep);
    outline: none;
}
.nav-links a:active {
    transform: scale(0.95);
}
.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-pink-soft), #fde0e7);
    color: var(--color-rose-deep);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 1.5px solid transparent;
}
.user-status:hover {
    border-color: var(--color-pink-mid);
    box-shadow: 0 2px 12px rgba(197, 76, 130, 0.18);
}
.user-status .avatar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf84;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 132, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(76, 175, 132, 0); }
}

/* 移动端汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-rose-deep);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition-fast);
}
#mobile-menu-checkbox {
    display: none;
}

/* ============ 通用板块容器 ============ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) 20px;
}
.section-title {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 700;
    color: var(--color-rose-deep);
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-pink-mid), var(--color-pink-soft));
    border-radius: 2px;
}
.section-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

/* ============ 友情链接 ============ */
.friendlinks-section {
    background: #fafaf9;
    border-radius: var(--radius-lg);
    padding: clamp(14px, 2.5vw, 22px);
    text-align: center;
}
.friendlinks-section .link_friendlinks_a {
    display: inline-block;
    margin: 4px 8px;
    padding: 6px 14px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    border-radius: 16px;
    transition: all var(--transition-fast);
    letter-spacing: 0.3px;
    border: 1px solid #e8e8e8;
    background: #fff;
}
.friendlinks-section .link_friendlinks_a:hover {
    color: var(--color-rose-deep);
    border-color: var(--color-pink-soft);
    background: #fef5f7;
}

/* ============ 底部导航 ============ */
.footer-nav {
    width: 100%;
    background: #2d2d2d;
    color: #ccc;
    padding: clamp(20px, 4vw, 36px) 20px;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}
.footer-nav a {
    color: #f4aeba;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.footer-nav a:hover {
    color: #ec729c;
    text-decoration: underline;
}
.footer-nav .footer-divider {
    margin: 12px 0;
    color: #555;
}
.footer-nav .mobile-link {
    display: inline-block;
    padding: 8px 18px;
    background: var(--color-rose-deep);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    transition: all var(--transition-fast);
    letter-spacing: 0.4px;
}
.footer-nav .mobile-link:hover {
    background: #a83d6a;
    color: #fff;
    text-decoration: none;
}

/* ============ 响应式导航 ============ */
@media (max-width: 1200px) {
    .header-nav-inner { gap: 10px; }
}
@media (max-width: 1024px) {
    .nav-links a { padding: 5px 9px; font-size: 0.8rem; }
    .header-nav-inner { height: 54px; gap: 8px; }
    .header-nav .brand-name h1 { font-size: 1.25rem; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 12px 20px;
        box-shadow: var(--shadow-md);
        border-bottom: 2px solid var(--color-pink-soft);
        z-index: 999;
        gap: 2px;
        border-radius: 0 0 16px 16px;
    }
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    #mobile-menu-checkbox:checked~.nav-links {
        display: flex;
    }
    .mobile-menu-toggle { display: block; }
    .header-nav-inner { height: 52px; padding: 0 12px; gap: 6px; }
    .header-nav .brand-name h1 { font-size: 1.15rem; }
    .user-status { font-size: 0.78rem; padding: 5px 10px; gap: 4px; }
    .section-container { padding: 16px 10px; }
}
@media (max-width: 480px) {
    .header-nav .brand-name h1 { font-size: 1rem; }
    .user-status { font-size: 0.7rem; padding: 4px 8px; }
}