/* =========================================
   全局设计系统
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* 品牌色 */
    --primary-color: #2B5AED;
    --primary-dark: #1a3fb8;
    --primary-light: #5b7ff5;
    --primary-gradient: linear-gradient(135deg, #2B5AED 0%, #6C5CE7 100%);
    --primary-gradient-reverse: linear-gradient(135deg, #6C5CE7 0%, #2B5AED 100%);

    /* 辅助色 */
    --accent-color: #00D2FF;
    --accent-gradient: linear-gradient(135deg, #00D2FF 0%, #2B5AED 100%);
    --secondary-color: #FF6B00;

    /* 背景 */
    --bg-dark: linear-gradient(135deg, #0a1628 0%, #1a1040 50%, #0d1f3c 100%);
    --bg-light: #f8f9fd;
    --bg-section-alt: #f0f2f8;

    /* 文字 */
    --text-color: #1a2332;
    --text-secondary: #5a6577;
    --text-muted: #8f9bb3;
    --text-on-dark: #e4e8f1;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(43, 90, 237, 0.06);
    --shadow-md: 0 8px 24px rgba(43, 90, 237, 0.10);
    --shadow-lg: 0 16px 48px rgba(43, 90, 237, 0.14);
    --shadow-glow: 0 0 30px rgba(43, 90, 237, 0.20);

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

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
}

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

/* =========================================
   导航栏
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(43, 90, 237, 0.05);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-base);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

.login-btn,
.register-btn {
    padding: 9px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
}

.login-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}

.login-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.register-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(43, 90, 237, 0.3);
}

.register-btn:hover {
    box-shadow: 0 6px 20px rgba(43, 90, 237, 0.4);
    transform: translateY(-1px);
}

/* =========================================
   Section 标题
   ========================================= */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
}

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

.section-header .section-title {
    margin-bottom: 16px;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin: 20px auto 0;
}

/* =========================================
   核心数据
   ========================================= */
.stats {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.stats-inner {
    background: var(--bg-dark);
    padding: 80px 0;
    position: relative;
}

/* 微光粒子背景 */
.stats-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(43, 90, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 30px 20px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    opacity: 0.6;
}

/* 相邻数据项之间的分隔线 */
.stat-item:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-item h2 {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #00D2FF 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
    font-family: 'Inter', sans-serif;
}

.stat-item p {
    color: var(--text-on-dark);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* =========================================
   产品优势
   ========================================= */
.advantages {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

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

.advantage-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-slow);
    border: 1px solid rgba(43, 90, 237, 0.06);
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(43, 90, 237, 0.12);
}

.advantage-item:hover::before {
    transform: scaleX(1);
}

.advantage-item .icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(43, 90, 237, 0.08) 0%, rgba(108, 92, 231, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.advantage-item:hover .icon-wrap {
    background: linear-gradient(135deg, rgba(43, 90, 237, 0.15) 0%, rgba(108, 92, 231, 0.15) 100%);
    transform: scale(1.05);
}

.advantage-item .icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.advantage-item h3 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 700;
}

.advantage-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
   解决方案
   ========================================= */
.solutions {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

/* 网格背景纹理 */
.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(43, 90, 237, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 90, 237, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

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

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    margin-top: 0;
}

.solution-item {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(43, 90, 237, 0.04);
    position: relative;
    overflow: hidden;
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.solution-item:hover::before {
    opacity: 1;
}

.solution-item .img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.solution-item img {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.solution-item:hover img {
    transform: scale(1.05);
}

.solution-item h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.solution-item>p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.solution-item ul {
    list-style: none;
    margin-bottom: 18px;
    flex-grow: 1;
}

.solution-item li {
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.solution-item li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--primary-gradient);
    transition: all var(--transition-base);
    margin-top: auto;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(43, 90, 237, 0.25);
}

.learn-more:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(43, 90, 237, 0.35);
}

/* =========================================
   合作品牌
   ========================================= */
.partners {
    padding: 100px 0;
    background: var(--bg-light);
    overflow: hidden;
}

.partner-scroll-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* 左右渐隐遮罩 */
.partner-scroll-wrapper::before,
.partner-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.partner-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.partner-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.partner-scroll-track {
    display: flex;
    gap: 40px;
    animation: scroll-logos 25s linear infinite;
    width: max-content;
}

.partner-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    background: white;
    height: 90px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    padding: 12px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all var(--transition-base);
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: rgba(43, 90, 237, 0.1);
}

.partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* =========================================
   新闻资讯
   ========================================= */
.news {
    padding: 100px 0;
    background: white;
}

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

.news-category {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.news-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

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

.news-category h3 {
    color: var(--text-color);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.news-category ul {
    list-style: none;
}

.news-category li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
}

.news-category li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-category li:hover {
    padding-left: 6px;
}

.news-category .date {
    color: var(--text-muted);
    font-size: 13px;
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    font-weight: 500;
}

.news-category a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
    font-size: 15px;
}

.news-category a:hover {
    color: var(--primary-color);
}

/* =========================================
   底部信息
   ========================================= */
.footer {
    background: linear-gradient(135deg, #0a1628 0%, #131b2e 100%);
    color: white;
    padding: 80px 0 40px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.footer-section p {
    color: var(--text-on-dark);
    font-size: 14px;
    line-height: 2;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.qr-codes {
    display: flex;
    gap: 24px;
}

.qr-code {
    text-align: center;
}

.qr-code p {
    font-size: 13px;
    margin-top: 8px;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin-bottom: 10px;
    color: var(--text-on-dark);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-on-dark);
    text-decoration: none;
    margin: 0 10px;
    transition: color var(--transition-fast);
    font-size: 14px;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* =========================================
   移动菜单按钮
   ========================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-base);
}

/* =========================================
   模态框
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
}

.modal-content {
    position: relative;
    background: white;
    margin: 15% auto;
    padding: 36px;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color var(--transition-fast);
}

.close:hover {
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e3ea;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 90, 237, 0.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* 数字计数动画发光 */
@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.stat-item::after {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* =========================================
   响应式设计
   ========================================= */
@media (max-width: 1024px) {

    .advantage-grid,
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }

    .solution-item {
        padding: 20px;
    }

    .stat-item:not(:last-child)::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 28px;
    }

    .stats-inner {
        padding: 60px 0;
    }

    .stat-item h2 {
        font-size: 36px;
    }

    .solutions-grid,
    .news-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .solution-item {
        padding: 20px;
    }

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

    .advantages,
    .solutions,
    .partners,
    .news {
        padding: 60px 0;
    }

    .partner-scroll-wrapper::before,
    .partner-scroll-wrapper::after {
        width: 40px;
    }
}

@media (max-width: 480px) {

    .advantage-grid,
    .stats .container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .solution-item {
        padding: 16px;
    }

    .stat-item h2 {
        font-size: 28px;
    }

    .news-grid {
        gap: 16px;
    }

    .news-category {
        padding: 24px 20px;
    }
}