/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 琥珀金配色 */
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-primary-light: #fbbf24;

    /* 背景色 */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #151515;
    --color-bg-card: #1a1a1a;
    --color-bg-card-hover: #1f1f1f;

    /* 文字颜色 */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #6b7280;

    /* 边框和分割线 */
    --color-border: #2a2a2a;
    --color-border-light: #333333;

    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* 圆角 */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2);
    -webkit-touch-callout: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 100%;
}

/* 全屏布局 */
.fullpage-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot:hover {
    background: rgba(245, 158, 11, 0.5);
    transform: scale(1.2);
}

.scroll-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 2rem;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* API 演示框 */
.api-demo {
    margin-top: var(--spacing-md);
}

.demo-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.demo-input {
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    gap: var(--spacing-xs);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.demo-input:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.base-url {
    color: var(--color-primary);
    font-weight: 600;
}

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

.btn-copy {
    margin-left: auto;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-copy svg {
    color: var(--color-primary);
}

.btn-copy:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

/* 按钮样式 */
.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
    text-align: center;
}

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

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

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(245, 158, 11, 0.1);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* 统计数据 */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
}

/* 右侧功能卡片 */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.feature-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(8px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.card-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 4px;
    opacity: 0.6;
}

/* 图标样式 */
.icon-clock::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center/cover;
}

.icon-chart::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9M13 17V5M8 17v-3'/%3E%3C/svg%3E") center/cover;
}

.icon-cloud::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E") center/cover;
}

.icon-layers::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m12 2-8 4 8 4 8-4-8-4z'/%3E%3Cpath d='m4 10 8 4 8-4M4 14l8 4 8-4'/%3E%3C/svg%3E") center/cover;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

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

/* 功能特性区域 */
.features-section {
    background: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

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

.value-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.value-icon::before {
    content: '';
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 4px;
    opacity: 0.7;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

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

/* 工作流程区域 */
.workflow-section {
    background: var(--color-bg-primary);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.step-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.step-icon::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 6px;
    opacity: 0.7;
}

.step-number {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.15);
    line-height: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

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

/* 页脚区域 */
.footer-section {
    background: var(--color-bg-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-brand-section {
    text-align: center;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.footer-slogan {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .scroll-indicator {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-right {
        grid-template-columns: 1fr;
    }

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

    .workflow-steps {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    /* 标题优化 */
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 1.85rem;
        line-height: 1.3;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    /* 间距优化 */
    .hero-left {
        gap: var(--spacing-md);
    }

    .fullpage-section {
        padding: var(--spacing-lg) 0;
    }

    /* 统计卡片 */
    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

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

    /* 按钮 */
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    /* API演示框 */
    .demo-input {
        flex-wrap: wrap;
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }

    .base-url {
        word-break: break-all;
    }

    .endpoint {
        word-break: break-all;
    }

    /* 卡片优化 */
    .feature-card,
    .value-card,
    .step-card {
        padding: var(--spacing-lg);
    }

    .value-card h3,
    .step-card h3 {
        font-size: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.125rem;
    }

    .value-card p,
    .step-card p,
    .feature-card p {
        font-size: 0.9rem;
    }

    /* 标签 */
    .tag {
        font-size: 0.8rem;
        padding: 0.375rem var(--spacing-sm);
    }

    /* 步骤编号 */
    .step-number {
        font-size: 2rem;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    /* 页脚 */
    .footer-brand {
        font-size: 1.75rem;
    }

    .footer-desc {
        font-size: 0.95rem;
    }

    .footer-slogan {
        font-size: 0.8rem;
    }

    /* 滚动提示 */
    .scroll-hint {
        bottom: var(--spacing-lg);
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* 容器 */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* 标题 */
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* 间距 */
    .hero-left {
        gap: var(--spacing-sm);
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    /* API演示框 */
    .api-demo {
        margin-top: var(--spacing-sm);
    }

    .demo-input {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .btn-copy {
        min-width: 36px;
        padding: 0.375rem 0.5rem;
    }

    .btn-copy svg {
        width: 14px;
        height: 14px;
    }

    /* 按钮 */
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem var(--spacing-md);
        font-size: 0.95rem;
    }

    /* 统计卡片 */
    .stat-card {
        padding: var(--spacing-sm) var(--spacing-md);
    }

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

    .stat-label {
        font-size: 0.8rem;
    }

    /* 功能卡片 */
    .feature-card,
    .value-card,
    .step-card {
        padding: var(--spacing-md);
    }

    .card-icon,
    .value-icon,
    .step-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--spacing-sm);
    }

    .card-icon::before {
        width: 20px;
        height: 20px;
    }

    .value-icon::before {
        width: 24px;
        height: 24px;
    }

    .step-icon::before {
        width: 24px;
        height: 24px;
    }

    .value-card h3,
    .step-card h3 {
        font-size: 1.125rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .value-card p,
    .step-card p,
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* 标签 */
    .tag {
        font-size: 0.75rem;
        padding: 0.325rem 0.75rem;
    }

    /* 步骤编号 */
    .step-number {
        font-size: 1.75rem;
    }

    /* 页脚 */
    .footer-brand {
        font-size: 1.5rem;
    }

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

    .footer-slogan {
        font-size: 0.75rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    /* 网格间距 */
    .stats,
    .values-grid,
    .workflow-steps {
        gap: var(--spacing-sm);
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 禁用悬停动画,改用点击 */
    .feature-card:hover,
    .value-card:hover,
    .step-card:hover,
    .stat-card:hover {
        transform: none;
    }

    /* 禁用3D倾斜效果 */
    .feature-card,
    .value-card,
    .step-card {
        transform: none !important;
    }

    /* 增大可点击区域 */
    .btn-primary,
    .btn-secondary,
    .btn-copy {
        min-height: 44px;
    }

    .scroll-dot {
        width: 16px;
        height: 16px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.65rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .demo-input {
        font-size: 0.7rem;
    }
}

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

.hero-content,
.section-header,
.stat-card,
.feature-card,
.value-card,
.step-card {
    animation: fadeIn 0.6s ease-out;
}
