/* ========================================
   全局样式 - Apple 风格设计系统
   ======================================== */

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

:root {
    /* 主色调 - 精致的蓝紫渐变 */
    --primary-color: #5B5FEF;
    --primary-dark: #4841D9;
    --primary-light: #8B8FF5;
    --accent-color: #00D4FF;

    /* 文字颜色 */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;

    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fbfbfd;

    /* 阴影系统 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Hero Section - 极简主义设计
   ======================================== */

.hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-animation 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid-animation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.hero-slogan {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 980px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.cta-button:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Section 通用样式
   ======================================== */

section {
    padding: 36px 0;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ========================================
   Process Section
   ======================================== */

.process-section {
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 2rem;
}

.step {
    background: var(--bg-primary);
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.step-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(91, 95, 239, 0.08);
    line-height: 1;
}

.step-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

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

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits-section {
    background: var(--bg-primary);
}

.benefits-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--bg-tertiary);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.benefit-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.benefit-card.highlight .benefit-title,
.benefit-card.highlight .benefit-description {
    color: white;
}

.benefit-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 4px 14px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.benefit-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.benefit-card.highlight .benefit-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    width: 28px;
    height: 28px;
    color: white;
}

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

.benefit-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.price-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.benefit-card.highlight .price-highlight {
    color: #FFD93D;
}

/* ========================================
   QR Code Section - 专门展示区域
   ======================================== */

.qrcode-section {
    background: var(--bg-secondary);
    padding: 56px 0;
}

.qrcode-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.qrcode-card {
    background: var(--bg-primary);
    padding: 28px 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.qrcode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.qrcode-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.qrcode-card.featured .qrcode-title,
.qrcode-card.featured .qrcode-description {
    color: white;
}

.qrcode-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00D4FF, #00B4D8);
    color: white;
    padding: 5px 18px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

.qrcode-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 14px;
    background: white;
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-card.featured .qrcode-wrapper {
    background: rgba(255, 255, 255, 0.95);
}

.qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    background: transparent;
}

.qrcode-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.qrcode-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.qrcode-card.featured .qrcode-description {
    opacity: 0.95;
}

/* ========================================
   Examples Section
   ======================================== */

.examples-section {
    background: var(--bg-primary);
    display: none; /* 暂时隐藏，代码保留供将来使用 */
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.example-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.example-placeholder {
    padding: 32px 24px;
    text-align: center;
}

.placeholder-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.placeholder-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.example-placeholder p {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.example-placeholder small {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.contact-item {
    background: var(--bg-primary);
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: white;
}

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

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    word-break: break-word;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.placeholder-text {
    color: var(--text-tertiary);
    font-style: italic;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 24px 0;
}

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

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

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    section {
        padding: 32px 0;
    }

    .qrcode-section {
        padding: 44px 0;
    }

    .process-steps,
    .benefits-cards,
    .examples-grid,
    .contact-grid,
    .qrcode-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .qrcode-wrapper {
        width: 180px;
        height: 180px;
    }

    .step,
    .benefit-card,
    .example-card,
    .contact-item {
        padding: 18px 16px;
    }

    .qrcode-card {
        padding: 32px 24px;
    }

    .step-number {
        font-size: 1.5rem;
        top: 12px;
        right: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .qrcode-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ========================================
   动画效果
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .step,
    .benefit-card,
    .example-card,
    .contact-item,
    .qrcode-card {
        animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }

    .step:nth-child(1) { animation-delay: 0.1s; }
    .step:nth-child(2) { animation-delay: 0.2s; }
    .step:nth-child(3) { animation-delay: 0.3s; }

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