/* 苹果风格样式 - 数智融创平台 */

/* ===== 色彩变量 ===== */
:root {
    /* 主色调 - 苹果风格 */
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-white: #ffffff;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    
    /* 文字色彩 */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fbfbfd;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

.large-container {
    max-width: 1440px;
}

section {
    padding: 80px 0;
    position: relative;
}

/* ===== 导航栏 - 苹果风格 ===== */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 0 22px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links i {
    display: none;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 980px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-outline {
    color: var(--apple-blue);
    background: transparent;
    border: 1px solid var(--apple-blue);
}

.btn-outline:hover {
    background: var(--apple-blue);
    color: white;
}

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

.btn-primary:hover {
    background: var(--apple-blue-hover);
}

.menu-toggle {
    display: none;
}

/* ===== Hero 区域 - 苹果风格 ===== */
.hero {
    min-height: 692px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0 100px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(79, 78, 78, 0.522) 0%, rgba(95, 94, 94, 0.673) 100%);
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.hero-badge {
    font-size: 21px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.011em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.002em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.hero-buttons .btn {
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 400;
}

.hero-buttons .btn-secondary {
    background: var(--apple-blue);
    color: white;
}

.hero-buttons .btn-secondary:hover {
    background: var(--apple-blue-hover);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-stat-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.016em;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===== 平台简介 ===== */
.about {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-content p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--text-secondary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 17px;
    color: var(--text-secondary);
    letter-spacing: -0.022em;
}

/* ===== 服务模块 ===== */
.services {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.section-subtitle {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.011em;
}

.section-description {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-secondary);
    margin-top: 12px;
    letter-spacing: 0.011em;
}

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

.service-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.service-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--apple-blue);
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.009em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-content p {
    font-size: 14px;
    line-height: 1.42859;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: -0.016em;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.service-features i {
    color: var(--apple-blue);
    margin-right: 8px;
    font-size: 14px;
}

/* ===== 应用场景 ===== */
.scenarios {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.scenarios-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 980px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    letter-spacing: -0.016em;
}

.tab-btn:hover {
    background: var(--bg-tertiary);
}

.tab-btn.active {
    background: var(--apple-blue);
    color: white;
    border-color: var(--apple-blue);
}

.tab-btn i {
    margin-right: 6px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.scenario-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-md);
}

.scenario-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.scenario-image img {
    width: 100%;
    height: auto;
    display: block;
}

.scenario-overlay {
    display: none;
}

.scenario-content h3 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.scenario-content h3 i {
    color: var(--apple-blue);
    margin-right: 12px;
}

.scenario-content p {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: -0.022em;
}

.scenario-features {
    list-style: none;
}

.scenario-features li {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    letter-spacing: -0.016em;
}

.scenario-features i {
    color: var(--apple-blue);
    margin-right: 12px;
    font-size: 16px;
}

/* ===== 新闻区域 ===== */
.news {
    padding: 100px 0;
    background: var(--bg-primary);
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.news-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.news-date .day {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.003em;
}

.news-date .month {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: -0.016em;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--apple-blue);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.21053;
    letter-spacing: 0.012em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-content p {
    font-size: 14px;
    line-height: 1.42859;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: -0.016em;
}

.news-link {
    font-size: 14px;
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: -0.016em;
    transition: var(--transition);
}

.news-link:hover {
    text-decoration: underline;
}

.news-link i {
    margin-left: 4px;
    font-size: 12px;
}

/* ===== 合作机构 ===== */
.partners {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.partner-logo {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
}

/* ===== 联系我们 ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.009em;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 14px;
    line-height: 1.71429;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: -0.016em;
}

.contact-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== 页脚 ===== */
footer {
    background: var(--bg-secondary);
    padding: 60px 0 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.011em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.footer-logo p {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: -0.016em;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-link-group h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group li {
    margin-bottom: 12px;
}

.footer-link-group a {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

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

.footer-social h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

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

.social-icons a {
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1068px) {
    .container {
        max-width: 692px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scenario-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 734px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* 导航栏 */
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-primary);
        cursor: pointer;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 40px 0 60px;
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.125;
    }
    
    .hero-subtitle {
        font-size: 19px;
        line-height: 1.21053;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        margin-top: 60px;
    }
    
    /* 服务 */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* 新闻 */
    .news-container {
        grid-template-columns: 1fr;
    }
    
    /* 统计 */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    /* 合作机构 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* 联系我们 */
    .contact .container > div {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

@media (max-width: 480px) {
    .hero-stat-number {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .scenario-card {
        padding: 24px;
    }
}

/* ===== 滚动动画效果 ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 不同元素的延迟动画 */
.scroll-animate-delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate-delay-4 {
    transition-delay: 0.4s;
}

/* 从左侧滑入 */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* 从右侧滑入 */
.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放动画 */
.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}
