/* ========== WUMO 个人网站 - 共用样式 ========== */
/* 高级沉稳风格 - 琴棋书画 · 艺术设计 · 周游世界 · 影音创作 · 课题研究 · 软件开发 · 联系我 */

/* ===== 基础重置与变量 ===== */
:root {
    /* 主色调 - 高级沉稳系（降低饱和度，提升质感） */
    --color-primary: #2C3E50;       /* 深石板蓝 - 主色 */
    --color-secondary: #8E7F7F;     /* 暖灰褐 - 辅色 */
    --color-accent: #C4A77D;        /* 香槟金 - 点缀 */
    --color-gold: #B8A07A;          /* 哑光金 */
    --color-teal: #5B7B7A;          /* 灰青绿 */
    --color-cream: #FAF8F5;         /* 暖白 */
    --color-dark: #1E1E24;          /* 深炭色 */
    --color-light: #FFFFFF;
    --color-warm-gray: #6B6560;     /* 暖灰 */
    --color-pale: #F0EBE3;          /* 浅米 */

    /* 栏目专属色（降低饱和度，更克制） */
    --color-qin: #6B5B73;           /* 琴 - 灰紫 */
    --color-qi: #5B7B7A;            /* 棋 - 灰青 */
    --color-shu: #8B6F5E;           /* 书 - 灰褐 */
    --color-hua: #A8906B;           /* 画 - 灰金 */
    --color-art: #8E7F7F;           /* 艺术设计 - 暖灰 */
    --color-travel: #4A5D6B;        /* 周游世界 - 灰蓝 */
    --color-media: #6B5B73;         /* 影音创作 - 灰紫 */
    --color-research: #5B7B7A;      /* 课题研究 - 灰青 */
    --color-dev: #6B6560;           /* 软件开发 - 暖灰 */
    --color-contact: #8B6F5E;       /* 联系我 - 灰褐 */

    /* 字体 */
    --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', serif;
    --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* 阴影（更柔和） */
    --shadow-sm: 0 1px 4px rgba(30, 30, 36, 0.06);
    --shadow-md: 0 4px 16px rgba(30, 30, 36, 0.08);
    --shadow-lg: 0 12px 40px rgba(30, 30, 36, 0.10);
    --shadow-glow: 0 0 20px rgba(196, 167, 125, 0.15);

    /* 过渡 */
    --transition-fast: 0.25s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== 导航栏 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(30, 30, 36, 0.04);
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 3px;
}

.logo-mark {
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 900;
}

.logo-mark img {
    height: 55px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-warm-gray);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-item:hover {
    background: rgba(44, 62, 80, 0.06);
    color: var(--color-primary);
}

.nav-item.active {
    background: var(--color-primary);
    color: white;
}

/* 栏目导航指示色 */
.nav-item[data-section="qin"]:hover { color: var(--color-qin); }
.nav-item[data-section="art"]:hover { color: var(--color-art); }
.nav-item[data-section="travel"]:hover { color: var(--color-travel); }
.nav-item[data-section="media"]:hover { color: var(--color-media); }
.nav-item[data-section="research"]:hover { color: var(--color-research); }
.nav-item[data-section="dev"]:hover { color: var(--color-dev); }
.nav-item[data-section="contact"]:hover { color: var(--color-contact); }

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.55);
    padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-container .logo-mark img {
    height: 100px;
    opacity: 0.9;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.6;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-md);
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 0.85rem;
    opacity: 0.55;
    transition: var(--transition-fast);
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    color: rgba(255,255,255,0.6);
}

.social-icon:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.4;
}

/* ===== 通用组件 ===== */

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #3a4f63;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid rgba(44, 62, 80, 0.3);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-white {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-dark);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: #b89a6a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(44, 62, 80, 0.06);
    color: var(--color-warm-gray);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    letter-spacing: 2px;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-warm-gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 卡片 */
.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(30, 30, 36, 0.04);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 装饰元素 */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.06;
}

.deco-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    pointer-events: none;
}

/* 滚动动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 245, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: var(--space-md);
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(30, 30, 36, 0.04);
    }

    .menu-toggle {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ===== 动画关键帧 ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(196, 167, 125, 0.2); }
    50% { box-shadow: 0 0 30px rgba(196, 167, 125, 0.35); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
