/* ========================================
   SayDock 官网样式
   ======================================== */

/* CSS 变量 */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --accent-blue: #0ea5e9;
    --soft-blue: #eff6ff;
    --soft-blue-2: #dbeafe;
    --green-primary: #22c55e;
    --green-dark: #16a34a;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-gray: #f1f5f9;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

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

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.navbar-brand .logo-img {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-link {
    color: var(--text-medium) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-nav-download {
    background: var(--primary-blue);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-nav-download:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ========================================
   Hero 大屏区域
   ======================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--soft-blue) 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-slogan {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-slogan i {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-badge i {
    color: var(--green-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-download.windows {
    background: var(--primary-blue);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-download.windows:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-download.mac {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-download.mac:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-info span {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ========================================
   Lottie 动画区域
   ======================================== */
.hero-animation {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lottie-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.lottie-main {
    width: 100%;
    height: auto;
}

/* 装饰元素 */
.decoration-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.5;
}

.decoration-dots.top-left {
    top: -20px;
    left: -20px;
}

.decoration-dots.bottom-right {
    bottom: -20px;
    right: -20px;
}

.dot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.dot-grid span {
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.3;
}

/* ========================================
   通用区块样式
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--soft-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   功能特点
   ======================================== */
.features-section {
    padding: 6rem 0;
    background: white;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--soft-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-blue);
    color: white;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

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

/* ========================================
   使用场景
   ======================================== */
.scenarios-section {
    padding: 6rem 0;
    background: var(--bg-gray);
}

.scenario-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.scenario-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.scenario-emoji {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.scenario-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
}

.scenario-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scenario-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.scenario-desc {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========================================
   CTA 下载区域
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-cta.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.cta-info {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-brand .footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

a.footer-brand {
    text-decoration: none;
}

a.footer-brand:hover {
    color: var(--primary-blue);
}

.footer-desc {
    color: var(--text-medium);
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-blue);
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========================================
   动画效果
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 991px) {
    .hero-animation {
        margin-top: 3rem;
    }
    
    .lottie-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .lottie-wrapper {
        max-width: 320px;
    }
    
    .decoration-dots {
        display: none;
    }
}

