/* ========================================
   MonkAgents 宣传网站样式
   优化版：工作流程一行显示 + 移动端自适应
   ======================================== */

/* CSS 变量 */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;

    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.03);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

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

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

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

.nav-github {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.nav-github:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.nav-github svg {
    fill: currentColor;
}

.nav-gitee {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.nav-gitee:hover {
    background: #c71d23;
    border-color: #c71d23;
    color: var(--text-primary);
}

.nav-gitee svg {
    fill: currentColor;
}

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

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

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-50px) translateX(-30px); }
    75% { transform: translateY(-150px) translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin-left: 5%;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-logo {
    height: 20px;
    width: auto;
    border-radius: 4px;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

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

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero 右侧代码窗口 */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    animation: fadeInRight 1s ease 0.5s backwards;
}

.code-window {
    width: min(480px, 45vw);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-content {
    padding: 16px;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    line-height: 1.8;
}

.code-line {
    padding: 2px 0;
}

.code-comment { color: #6a9955; }
.code-keyword { color: #c586c0; }
.code-string { color: #ce9178; }

.agent-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.agent-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agent-badge .badge-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    padding: 2px;
}

.agent-badge.master { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.agent-badge.executor { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.agent-badge.inspector { background: rgba(99, 102, 241, 0.2); color: #6366f1; }

.agent-text {
    color: var(--text-secondary);
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   按钮
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
    background: var(--border-hover);
    border-color: var(--border-hover);
}

.btn-gitee {
    background: linear-gradient(135deg, #c71d23 0%, #e74c3c 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-gitee:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(199, 29, 35, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn svg {
    fill: currentColor;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-secondary);
}

/* ========================================
   功能特性
   ======================================== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ========================================
   智能体角色
   ======================================== */
.agents {
    background: var(--bg-primary);
}

.agents-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

.agent-card {
    position: relative;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agent-card:hover::before {
    opacity: 1;
}

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

.agent-card.agent-master::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.agent-card.agent-executor::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.agent-card.agent-assistant::before { background: linear-gradient(90deg, #10b981, #34d399); }
.agent-card.agent-inspector::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.agent-card.agent-advisor::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.agent-avatar {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.agent-avatar .avatar-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    padding: 8px;
}

.agent-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agent-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.agent-role {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.agent-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.agent-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.skill-tag {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* ========================================
   工作流程 (优化：一行显示)
   ======================================== */
.workflow {
    background: var(--bg-secondary);
}

.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    overflow-x: auto;
    padding: 16px 0;
    /* 确保在一行内显示 */
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.workflow-diagram::-webkit-scrollbar {
    display: none;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 130px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.step-icon {
    font-size: 1.5rem;
}

.step-icon .workflow-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    padding: 4px;
}

.workflow-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Handoff 区域 */
.workflow-handoff {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.workflow-handoff h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.workflow-handoff > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.handoff-diagram {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: max-content;
}

.handoff-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.handoff-node.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-color);
}

.node-icon {
    font-size: 1.25rem;
}

.node-icon .handoff-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    padding: 3px;
}

.node-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.handoff-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ========================================
   技术架构
   ======================================== */
.architecture {
    background: var(--bg-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 120px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.tech-name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* ========================================
   快速开始
   ======================================== */
.quickstart {
    background: var(--bg-secondary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

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

.step-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.code-block::-webkit-scrollbar {
    display: none;
}

.code-block code {
    color: var(--accent-color);
    white-space: pre-wrap;
    word-break: break-all;
}

.step-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quickstart-cta {
    text-align: center;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.social-link.social-gitee:hover {
    background: #c71d23;
    border-color: #c71d23;
}

.social-link svg {
    fill: currentColor;
}

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

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

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

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

.icp a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.icp a:hover {
    color: var(--text-secondary);
}

.divider {
    margin: 0 8px;
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板 (1024px 及以下) */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hero {
        justify-content: center;
        text-align: center;
        padding: 120px 24px 80px;
    }

    .hero-content {
        max-width: 100%;
        margin-left: 0;
    }

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

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

/* 移动端 (768px 及以下) */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 16px 20px;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
    }

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

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

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

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

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    /* Section */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    /* Features */
    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }

    /* Agents */
    .agents-showcase {
        gap: 16px;
    }

    /* Workflow - 移动端横向滚动 */
    .workflow-diagram {
        justify-content: flex-start;
        padding: 16px;
        margin: 0 -20px 40px;
    }

    .workflow-step {
        min-width: 110px;
        padding: 16px 12px;
    }

    .workflow-handoff {
        padding: 20px;
        margin: 0 -20px;
        border-radius: 0;
    }

    .handoff-diagram {
        gap: 8px;
    }

    .handoff-node {
        padding: 10px 12px;
    }

    .node-icon {
        font-size: 1.1rem;
    }

    .node-icon .handoff-icon {
        width: 18px;
        height: 18px;
    }

    .handoff-arrow {
        font-size: 1rem;
    }

    /* Tech stack */
    .tech-stack {
        gap: 12px;
    }

    .tech-item {
        padding: 16px;
        min-width: 100px;
    }

    .tech-icon {
        width: 48px;
        height: 48px;
    }

    /* Quickstart */
    .steps-container {
        gap: 16px;
    }

    .step-card {
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
    }

    .footer-column h4 {
        font-size: 0.8rem;
    }
}

/* 小屏幕手机 (480px 及以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 90px 16px 40px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    /* Workflow */
    .workflow-diagram {
        gap: 10px;
    }

    .workflow-step {
        min-width: 100px;
    }

    .step-icon {
        font-size: 1.25rem;
    }

    .step-icon .workflow-icon {
        width: 22px;
        height: 22px;
    }

    .workflow-arrow {
        font-size: 1rem;
    }

    /* Handoff */
    .handoff-diagram {
        flex-direction: column;
        align-items: stretch;
    }

    .handoff-node {
        flex-direction: row;
        justify-content: center;
    }

    .handoff-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    /* Footer */
    .icp {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .divider {
        display: none;
    }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.agent-card,
.tech-item,
.step-card {
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

.agent-card:nth-child(1) { animation-delay: 0.1s; }
.agent-card:nth-child(2) { animation-delay: 0.15s; }
.agent-card:nth-child(3) { animation-delay: 0.2s; }
.agent-card:nth-child(4) { animation-delay: 0.25s; }
.agent-card:nth-child(5) { animation-delay: 0.3s; }

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* 滚动动画触发类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}