/* 灵字辈官网样式 */
/* LingFlow Family Website Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0 / 0.4);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-secondary: var(--bg-card);
    --text-secondary: var(--text-muted);
}

[data-theme="light"] {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --secondary: #7c3aed;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
    --bg-secondary: var(--bg-card);
    --text-secondary: var(--text-muted);
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .nav-links.active {
    background: rgba(248, 250, 252, 0.98);
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 200;
    font-size: 0.875rem;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: env(safe-area-inset-bottom);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

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

/* ===== Hero ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(ellipse at top, var(--primary-light) 0%, transparent 60%);
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-mission {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* ===== 区块通用 ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* ===== 统计数据 ===== */
.stats {
    background: var(--bg-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.05rem;
    margin-top: 8px;
    font-weight: 600;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== MCP 服务矩阵 ===== */
.mcp-section {
    background: var(--bg);
}

.mcp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.mcp-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: default;
}

.mcp-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.2);
}

.mcp-card.mcp-core {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), var(--bg-card));
}

.mcp-card.mcp-plus {
    border-style: dashed;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), var(--bg-card));
}

.mcp-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.mcp-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mcp-key {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mcp-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 10px;
}

.mcp-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mcp-tags span {
    background: var(--bg);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

/* ===== 项目卡片 ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

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

.project-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), var(--bg-card));
}

.project-card.coming-soon {
    border-style: dashed;
    opacity: 0.7;
}

.project-card.coming-soon:hover {
    opacity: 1;
    border-color: var(--warning);
}

.project-card.coming-soon .project-badge {
    background: var(--warning);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.project-features {
    list-style: none;
    margin-bottom: 20px;
}

.project-features li {
    padding: 4px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-features li::before {
    content: "✓ ";
    color: var(--success);
    margin-right: 8px;
    font-weight: 700;
}

.project-links {
    display: flex;
    gap: 18px;
}

.project-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.project-links a:hover {
    opacity: 0.8;
}

/* ===== 架构图 ===== */
.architecture {
    background: var(--bg-card);
}

.arch-diagram {
    max-width: 650px;
    margin: 0 auto;
}

.arch-layer {
    margin-bottom: 12px;
}

.arch-label {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.arch-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.arch-box {
    background: var(--bg);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.arch-box:hover {
    border-color: var(--primary);
}

.arch-box.primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.arch-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 8px 0;
    letter-spacing: 2px;
}

/* ===== 团队 ===== */
.team-section {
    background: var(--bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.team-member {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.team-member:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.member-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.member-role {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

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

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== 我们的故事 ===== */
.story-section {
    background: var(--bg-card);
}

.story-timeline {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary));
}

.story-item {
    position: relative;
    margin-bottom: 30px;
}

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

.story-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
}

.story-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.story-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
    cursor: pointer;
}

.story-content:hover {
    border-color: var(--primary);
}

.story-content.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), var(--bg));
}

.story-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.story-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.story-content::after {
    content: '阅读全文 →';
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.story-content:hover::after {
    opacity: 1;
}

/* ===== 灵族动态 ===== */
.updates-section {
    background: var(--bg);
    padding: 80px 0;
}

.updates-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.update-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.update-date {
    min-width: 70px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    padding-top: 4px;
}

.update-badge {
    min-width: 42px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.update-badge.new {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.update-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    flex: 1;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.update-content:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.update-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.update-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .updates-timeline::before {
        left: 12px;
    }
    .update-item {
        flex-direction: column;
        gap: 8px;
        padding-left: 32px;
    }
    .update-date {
        text-align: left;
        font-size: 0.75rem;
    }
    .update-badge {
        position: absolute;
        left: 0;
        top: 2px;
    }
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--bg-card);
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    transition: background 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-answer {
    padding: 0 24px 18px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .faq-question { padding: 14px 16px; font-size: 0.9rem; }
    .faq-answer { padding: 0 16px 14px; font-size: 0.85rem; }
}

/* ===== 灵通问道播客 ===== */
.podcast-section {
    background: var(--bg);
}

.podcast-intro {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.podcast-badge {
    display: inline-block;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.podcast-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.podcast-episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.episode-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.episode-tag:hover {
    border-color: var(--primary);
    color: var(--text);
}

.podcast-channels h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.channel-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}

.channel-icon {
    font-size: 1.8rem;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

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

.channel-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== 昼夜切换 ===== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(20deg);
}

/* ===== 故事弹窗 ===== */
.story-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.story-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: slideUp 0.3s ease;
}

[data-theme="light"] .story-modal {
    background: #ffffff;
    border-color: #e2e8f0;
}

.story-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.story-modal-close:hover {
    color: var(--text);
    background: var(--bg);
}

.story-modal-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.story-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
}

.story-modal p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== 角色分类样式 ===== */
.team-member.role-task .member-role { color: var(--primary); }
.team-member.role-shared .member-role { color: var(--success); }
.team-member.role-trial .member-role { color: var(--warning); }
.team-member.role-new .member-role { color: #ec4899; }

.team-member.role-shared { border-color: rgba(16, 185, 129, 0.3); }
.team-member.role-trial { border-color: rgba(245, 158, 11, 0.3); }
.team-member.role-new { border-color: rgba(236, 72, 153, 0.4); background: linear-gradient(135deg, rgba(236, 72, 153, 0.06), var(--bg-card)); }

.team-member.role-shared:hover { border-color: var(--success); }
.team-member.role-trial:hover { border-color: var(--warning); }
.team-member.role-new:hover { border-color: #ec4899; }

.arch-box.shared { border-color: var(--success); color: var(--success); }
.arch-box.role-new { border-color: #ec4899; color: #ec4899; }

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 90;
    border: none;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* ===== 滚动动画增强 ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.story-item.animate-in {
    animation-delay: 0.1s;
}

.stat-card.animate-in {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Hero粒子效果 ===== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 60% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 35%);
    pointer-events: none;
}

/* ===== 卡片光泽效果 ===== */
.mcp-card::after, .project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.5s;
}

.mcp-card:hover::after, .project-card:hover::after {
    left: 100%;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mcp-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .podcast-intro {
        grid-template-columns: 1fr;
    }

    .podcast-channels {
        display: flex;
        gap: 12px;
    }

    .podcast-channels h3 {
        display: none;
    }

    .channel-card {
        flex: 1;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 15px 20px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-mission {
        font-size: 1rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .team-member {
        min-height: 120px;
    }

    .mcp-card, .project-card, .team-member, .channel-card {
        min-height: 44px;
    }

    .btn, .nav-links a, .theme-toggle {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    body {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .story-modal {
        padding: 24px;
        width: 95%;
        max-height: 85vh;
    }

    .back-to-top {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: 16px;
    }
}

/* ===== 移动端触摸优化 ===== */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.15);
    }

    .mcp-card,
    .project-card,
    .team-member,
    .channel-card,
    .story-content,
    .update-content {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .mcp-card:active,
    .project-card:active,
    .channel-card:active {
        transform: scale(0.97);
    }

    .team-member:active {
        transform: scale(0.95);
    }

    .btn {
        min-height: 44px;
        padding: 10px 20px;
    }

    .nav-links a {
        padding: 12px 8px;
        min-height: 44px;
    }

    .update-content {
        padding: 16px 18px;
    }

    .podcast-intro {
        gap: 24px;
    }

    .episode-tag {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .update-date {
        font-size: 0.7rem;
    }

    .update-content h3 {
        font-size: 0.9rem;
    }

    .update-content p {
        font-size: 0.8rem;
    }

    .section-desc {
        font-size: 0.9rem;
    }
}
