/* ============================================
   YH皓说 个人网站 — 深色科技风主题
   配色对齐 assets/YH皓说logo1.png
   ============================================ */

/* ---------- 主题变量（默认深色） ---------- */
:root {
    /* 背景层 */
    --bg-base: #050816;
    --bg-elevated: #0F172A;
    --bg-card: #111C33;
    --bg-hover: #1E293B;
    --bg-navbar: rgba(5, 8, 22, 0.75);

    /* 文字 */
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* 霓虹强调色 */
    --accent-cyan: #22D3EE;
    --accent-blue: #3B82F6;
    --accent-gradient: linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
    --accent-soft: rgba(34, 211, 238, 0.12);
    --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.25);

    /* 边框 */
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-accent: rgba(34, 211, 238, 0.35);

    /* 阴影 */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(34, 211, 238, 0.12);
    --shadow-navbar: 0 1px 0 rgba(148, 163, 184, 0.08);

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

    /* 容器宽度 */
    --container-max: 1120px;
}

/* ---------- 浅色主题（备用） ---------- */
.light-theme {
    --bg-base: #F8FAFC;
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hover: #F1F5F9;
    --bg-navbar: rgba(248, 250, 252, 0.8);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    /* 浅色模式强调色：同色系降亮度，保证白底对比度达标(WCAG AA) */
    --accent-cyan: #0E7490;
    --accent-blue: #1D4ED8;
    --accent-gradient: linear-gradient(135deg, #0E7490 0%, #1D4ED8 100%);
    --accent-soft: rgba(14, 116, 144, 0.10);
    --border-accent: rgba(14, 116, 144, 0.30);
    --glow-cyan: 0 0 20px rgba(14, 116, 144, 0.18);
    --border-subtle: rgba(15, 23, 42, 0.08);
    --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 32px rgba(34, 211, 238, 0.1);
    --shadow-navbar: 0 1px 0 rgba(15, 23, 42, 0.06);
}

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-base);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* 背景网格装饰（微弱） */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.light-theme body::before {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-blue);
}

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

/* ---------- 布局容器 ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

/* 区块交替背景 */
.section-alt {
    background-color: var(--bg-elevated);
}

/* ---------- 滚动进度条 ---------- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    z-index: 9999;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    box-shadow: var(--glow-cyan);
    transition: width 0.1s ease-out;
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-navbar);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-brand-text .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-cyan);
    background-color: var(--accent-soft);
}

.nav-menu a.active {
    color: var(--accent-cyan);
    background-color: var(--accent-soft);
}

/* 主题切换滑动开关 */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

/* 文字标签 */
.theme-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
    min-width: 4em;
    text-align: right;
}

/* 滑动轨道 */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: var(--radius-full);
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0;
}

/* 滑块 */
.theme-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 夜晚模式（默认）：滑块在右，显示月亮 */
.theme-toggle::before {
    content: '🌙';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    font-size: 0.7rem;
    line-height: 1;
    transition: all 0.3s ease;
    opacity: 1;
}

/* 白天模式（active）：滑块在左，显示太阳 */
.theme-switch.active .theme-toggle::before {
    content: '☀️';
    left: auto;
    right: 8px;
    opacity: 1;
}

.theme-switch.active .theme-toggle::after {
    left: 3px;
    right: auto;
    background-color: var(--accent-amber, #fbbf24);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.theme-switch:hover .theme-toggle {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.theme-switch.active .theme-label {
    color: var(--accent-cyan);
}

/* 移动端汉堡菜单 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #050816;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4);
    color: #050816;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
    background-color: var(--accent-soft);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* "查看更多" 类链接 */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.link-more:hover {
    gap: 12px;
    color: var(--accent-blue);
}

.link-more::after {
    content: '→';
    transition: transform 0.2s ease;
}

/* ---------- Hero 区域 ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Hero 背景光晕 */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    max-width: 1440px;
    width: 80%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr auto;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.hero-greeting {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.hero-name {
    font-size: 5.25rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-name .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    display: inline-block;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background-color: var(--accent-soft);
    border: 1px solid var(--accent-cyan);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.hero-bio {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 100%;
}

.hero-bio .highlight {
    color: var(--accent-cyan);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    opacity: 0.15;
    filter: blur(40px);
    z-index: 0;
}

.profile-image {
    width: 360px;
    height: 450px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

/* 子页 Hero（简版） */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--accent-soft);
    color: var(--accent-cyan);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

/* Coming Soon 占位卡 */
.card-coming-soon {
    background-color: var(--bg-elevated);
    border: 1px dashed var(--border-subtle);
    opacity: 0.7;
}

.card-coming-soon:hover {
    opacity: 0.9;
}

.coming-soon-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-hover);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* ---------- 速览区块（首页用） ---------- */
.preview-section {
    padding: 100px 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.preview-header-left h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.preview-header-left p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ---------- 平台网格（自媒体） ---------- */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.platform-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
    color: var(--text-primary);
}

.platform-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.platform-name {
    font-size: 1rem;
    font-weight: 600;
}

.platform-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- 时间线（关于我） ---------- */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 32px;
    display: flex;
    flex-direction: column-reverse;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3px solid var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.timeline-date {
    display: inline-block;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- 技能标签 ---------- */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-soft);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* AI 工具箱 */
.ai-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.ai-toolbox {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-cat {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* 教育背景 */
.edu-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: all 0.3s ease;
}

.edu-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.edu-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.edu-head h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.edu-degree {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.edu-year {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
}

.edu-note {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* ---------- 关于我主体 ---------- */
.about-body {
    max-width: 760px;
    margin: 0 auto;
}

.about-story {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 64px;
}

.about-story p {
    margin-bottom: 20px;
}

.about-story .highlight {
    color: var(--accent-cyan);
    font-weight: 500;
}

.about-section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* ---------- 联系区 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.contact-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    color: var(--accent-cyan);
    font-size: 1.3rem;
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

/* ---------- 页脚 ---------- */
.footer {
    background-color: var(--bg-elevated);
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.9rem;
}

.footer .footer-brand {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: #050816;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: var(--glow-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.5);
}

/* ---------- 动画 ---------- */

/* 入场动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero 欢迎动画 */
.welcome-animate .welcome-item {
    opacity: 0;
    transform: translateY(30px);
    animation: welcomeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes welcomeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片错峰动画 */
.card-grid .card,
.card-grid .platform-card {
    opacity: 0;
    transform: translateY(20px);
}

.card-grid.visible .card,
.card-grid.visible .platform-card {
    animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.08s);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
        max-width: 100%;
    }

    .hero-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image-wrap {
        order: -1;
    }

    .profile-image {
        width: 260px;
        height: 326px;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background-color: var(--bg-elevated);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        transform: translateY(-150%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 8px;
        border-top: 1px solid var(--border-subtle);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    section,
    .preview-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 1.875rem;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 48px;
    }

    .page-hero {
        padding: 130px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.15rem;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .profile-image {
        width: 220px;
        height: 275px;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .page-hero h1 {
        font-size: 1.875rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .nav-brand-text {
        font-size: 1rem;
    }
}

/* ============================================
   可点击卡片 + 产品下载弹窗
   ============================================ */

/* 统一的可点击卡片样式 */
.card-clickable {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card-clickable:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
}

.card-clickable:hover::before {
    transform: scaleX(1);
}

.card-clickable:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Coming Soon 卡片也可点击时，悬停整体点亮 */
.card-coming-soon.card-clickable:hover {
    opacity: 1;
    border-style: solid;
}

/* 卡片底部行动号召 */
.card-cta {
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.01em;
    transition: transform 0.3s ease;
}

.card-clickable:hover .card-cta {
    transform: translateX(4px);
}

/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover), var(--glow-cyan);
    padding: 36px 32px 32px;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-soft);
    color: var(--accent-cyan);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-right: 24px;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-desc a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.modal-desc a:hover {
    text-decoration: underline;
}

/* 下载链接列表 */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.download-item:hover {
    border-color: var(--border-accent);
    background: var(--accent-soft);
    transform: translateX(2px);
}

/* div 形式的下载/联系项（如微信复制）也显示手型 */
div.download-item {
    cursor: pointer;
}

.contact-trigger {
    cursor: pointer;
}

/* 平台卡片「点击直达」提示 */
.platform-go {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: transform 0.2s ease;
}

a.platform-card:hover .platform-go {
    transform: translateX(3px);
}

.download-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.download-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
}

.download-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    white-space: nowrap;
}

/* 未上线的占位下载项 */
.download-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.download-item.is-disabled .download-arrow {
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .modal-box {
        padding: 32px 22px 24px;
    }
    .download-note {
        font-size: 0.75rem;
    }
}

/* ---------- 爆款短视频卡片 ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 24px;
    justify-content: center;
}

.video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
}

.video-cover-link {
    display: block;
    overflow: hidden;
}

.video-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: #111;
    transition: transform 0.4s ease;
}

.video-card:hover .video-cover {
    transform: scale(1.03);
}

.video-title {
    padding: 14px 16px 8px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
}

.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.video-watch {
    display: block;
    margin: 0 16px 16px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.video-watch:hover {
    opacity: 0.82;
}

/* ---------- 项目页卡片 ---------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
}

.project-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-badge-self {
    background: var(--accent-soft, rgba(34, 211, 238, 0.12));
    color: var(--accent-cyan, #22D3EE);
}

.project-badge-rec {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.project-platform {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 2px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.info-block h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan, #22D3EE);
    margin-bottom: 6px;
}

.info-block p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.project-cta {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: var(--accent-gradient, linear-gradient(135deg, #22D3EE, #3B82F6));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
