/* 全局变量 */
:root {
    --primary-color: #00d26a; /* 更加明亮、现代的绿色 */
    --primary-hover: #00b359;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #eeeeee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.text-white { color: var(--white); }
.text-white-50 { color: rgba(255,255,255,0.6); }
.text-primary { color: #8b5cf6; font-weight: 700; }
.text-success { color: var(--primary-color); }

.mt-5 { margin-top: 3rem; }

/* 按钮样式 */
.btn-primary, .btn-outline-white, .btn-nav, .btn-xl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 106, 0.3);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 18px 60px;
    font-size: 1.2rem;
    border-radius: 50px;
}

/* 导航栏 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.site-header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.site-header.scrolled .logo {
    color: var(--secondary-color);
}

/* 品牌组样式 */
.brand-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-partner {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* CSS 绘制的九宫格 Logo */
.cube-logo {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px;
    background-color: #333;
    border-radius: 6px;
    width: 40px;
    height: 40px;
}

.cube-logo.small {
    width: 32px;
    height: 32px;
    gap: 2px;
    padding: 3px;
}

.cube-row {
    display: flex;
    gap: 3px;
    flex: 1;
}

.cube-logo.small .cube-row {
    gap: 2px;
}

.cube-cell {
    flex: 1;
    border-radius: 2px;
}

.cube-cell.blue { background-color: #007bff; }
.cube-cell.white { background-color: #e0e0e0; }
.cube-cell.yellow { background-color: #ffc107; }
.cube-cell.green { background-color: #28a745; }
.cube-cell.red { background-color: #dc3545; }

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
}

.site-header.scrolled .main-nav a {
    color: var(--text-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 24px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--primary-hover) !important;
    color: var(--white) !important;
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.site-header.scrolled .mobile-menu-toggle {
    color: var(--text-color);
}

/* Hero Section (全屏视频背景) */
.hero-fullscreen {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
}

.section-header .subtitle.text-white-50 {
    color: rgba(255, 255, 255, 0.6);
}

#cases .section-header .subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Vision / CEO Quote */
.vision-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vision-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.quote-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    font-style: italic;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* 核心优势 (新增) */
.adv-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.adv-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.adv-text {
    padding: 40px;
    flex: 1;
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-header i {
    font-size: 2rem;
}

.adv-text h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.adv-text p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.check-list li {
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.check-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

.adv-visual {
    height: 200px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-bg { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); }
.map-bg { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }

/* 分销网络 (重构) */
.dist-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.dist-cat-item {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.dist-cat-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    border-color: #e2e8f0;
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.bg-blue-light { background-color: #dbeafe; color: #2563eb; }
.bg-purple-light { background-color: #f3e8ff; color: #9333ea; }
.bg-orange-light { background-color: #ffedd5; color: #ea580c; }
.bg-green-light { background-color: #dcfce7; color: #16a34a; }

.dist-cat-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.dist-cat-item p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.75rem;
}

/* 渠道 Logo 墙 */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.channel-card {
    background: var(--white);
    padding: 20px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.channel-icon { font-size: 1.5rem; }
.channel-icon.blue { color: #3b82f6; }
.channel-icon.red { color: #ef4444; }
.channel-icon.purple { color: #8b5cf6; }
.channel-icon.yellow { color: #f59e0b; }
.channel-icon.black { color: #000000; }
.channel-icon.orange { color: #f97316; }
.channel-icon.blue-dark { color: #1e40af; }

.channel-card span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
}

/* 合作案例 (新增) */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.case-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.case-data {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.case-data small {
    font-size: 1.5rem;
    vertical-align: super;
}

.case-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.case-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

/* 合作支持与流程 (新增) */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.step-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.step-item p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.step-arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
}

.support-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.support-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.support-item:hover {
    transform: translateY(-5px);
}

.support-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.support-item span {
    font-weight: 600;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #888;
    padding: 60px 0;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.brand-group-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.brand-name-footer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.brand-partner-footer {
    font-size: 0.8rem;
    color: #aaa;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    margin: 0 15px;
    color: #888;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 30px;
    max-width: 600px;
    margin: 0 auto;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.modal-content p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
    gap: 10px;
}

.qr-code-placeholder i {
    font-size: 4rem;
}

/* 关于我们弹窗特定样式 */
.about-content {
    width: 800px;
    max-width: 90vw;
    aspect-ratio: 4/3; /* 强制 4:3 比例 */
    text-align: left;
    padding: 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* 内容过多时允许滚动 */
}

.about-content h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.modal-body h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .adv-grid-2 {
        grid-template-columns: 1fr;
    }

    .dist-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .support-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* 移动端字体优化 */
    body {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header .subtitle {
        font-size: 0.95rem;
    }

    .vision-section h2, .cta-section h2 {
        font-size: 1.8rem;
    }

    .quote-text {
        font-size: 1rem;
    }

    .adv-text h3, .service-card h3, .step-item h3 {
        font-size: 1.1rem;
    }

    .icon-header {
        align-items: flex-start;
    }

    .case-data {
        font-size: 2.2rem;
    }

    .footer-brand {
        flex-direction: column;
        gap: 15px;
    }

    .brand-group-footer {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        margin: 0;
        display: block;
    }

    .site-header {
        background-color: var(--secondary-color);
        padding: 15px 0;
    }

    .site-header .container-fluid {
        padding-left: 20px; /* 调整 Logo 左侧间距 */
        padding-right: 20px; /* 调整菜单图标右侧间距 */
    }

    .site-header .logo {
        color: var(--white);
    }
    
    .mobile-menu-toggle {
        display: block;
        color: var(--white);
    }

    .main-nav {
        position: fixed;
        top: 66px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-nav a {
        color: var(--text-color);
    }

    .hero-fullscreen {
        min-height: 500px;
    }

    .hero-btns {
        flex-direction: column;
    }
    
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        padding: 25px;
        width: 92vw;
        max-width: 92vw;
        aspect-ratio: unset;
        max-height: 85vh;
    }
}

/* 回到顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}