/* ========================================
   盛滙科技 - 多页面网站样式
   Sunny World Technology - Multi-page Styles
======================================== */

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Navigation ========== */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #2563eb;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2563eb;
    transition: all 0.3s ease;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/></svg>');
    background-size: 100px 100px;
}

.hero-secondary {
    min-height: 300px;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ========== Section Styles ========== */
.section {
    padding: 80px 0;
}

.section-white {
    background: #ffffff;
}

.section-gray {
    background: #f5f7fa;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0a0b1e;
    text-align: center;
    margin-bottom: 50px;
}

/* ========== Intro Grid ========== */
.intro-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.building-icon {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.building-icon i {
    font-size: 100px;
    color: #1976d2;
}

.intro-text {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* ========== Services Grid ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card-highlight {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: scale(1.02);
}

.service-card-highlight .service-icon i {
    color: #ffffff;
}

.service-card-highlight .service-title {
    color: #ffffff;
}

.service-card-highlight .service-list li {
    color: #e3f2fd;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.service-card-highlight .service-list li i {
    color: #90caf9;
}

.service-icon {
    text-align: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 48px;
    color: #3b82f6;
}

.service-title {
    text-align: center;
    color: #0a0b1e;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 12px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #4caf50;
    margin-right: 10px;
}

/* ========== Platforms Grid ========== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.platform-card {
    background: #f8f9fa;
    padding: 35px 25px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    margin-bottom: 15px;
}

.platform-icon i {
    font-size: 36px;
    color: #3b82f6;
}

.platform-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a0b1e;
    margin-bottom: 10px;
}

.platform-desc {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* ========== Partners Grid ========== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.partner-card {
    background: #ffffff;
    padding: 45px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-name {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.partner-desc {
    color: #888;
    font-size: 14px;
}

/* ========== Contact Grid ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    padding: 45px 35px;
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.contact-name {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-role {
    margin-bottom: 25px;
    opacity: 0.85;
    font-size: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.contact-item i {
    font-size: 16px;
}

.contact-item a {
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* ========== Timeline ========== */
.timeline {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3b82f6;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 4px solid #3b82f6;
    border-radius: 50%;
}

.timeline-marker i {
    display: none;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 10px;
}

.timeline-text {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

/* ========== Chart Container ========== */
.chart-container {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chart-title {
    font-size: 20px;
    font-weight: 600;
    color: #0a0b1e;
    text-align: center;
    margin-bottom: 30px;
}

.chart-container canvas {
    max-height: 400px;
}

/* ========== Classification Diagram ========== */
.classification-diagram {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
}

.classification-root {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.classification-node {
    padding: 20px 30px;
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0a0b1e;
    text-align: center;
    line-height: 1.5;
}

.classification-node-highlight {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: #2563eb;
}

.classification-level-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.classification-branch {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.classification-highlight .classification-node {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: #2563eb;
}

.classification-level-2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.classification-subnode {
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ========== Benefits Tabs ========== */
.benefits-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-tab {
    padding: 20px;
    background: #f5f7fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-tab:hover {
    background: #dbeafe;
    border-color: #3b82f6;
}

.benefit-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
    color: #ffffff;
}

.benefit-tab i {
    font-size: 28px;
}

.benefit-tab span {
    font-size: 15px;
    font-weight: 600;
}

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

.benefit-panel {
    display: none;
}

.benefit-panel.active {
    display: block;
}

.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.benefit-title {
    font-size: 28px;
    font-weight: 600;
    color: #0a0b1e;
    margin-bottom: 20px;
}

.benefit-desc {
    font-size: 17px;
    line-height: 1.8;
    color: #666;
}

.benefit-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon {
    font-size: 120px;
    color: #3b82f6;
    opacity: 0.3;
}

/* ========== CTA Section ========== */
.section-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-cta {
    background: #ffffff;
    color: #2563eb;
}

.btn-cta:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ========== Footer ========== */
.footer {
    background: #0a0b1e;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 14px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    /* 导航栏优化 */
    .navbar .container {
        padding: 12px 15px;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 16px;
    }

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Hero区域 */
    .hero {
        min-height: 300px;
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-secondary {
        min-height: 200px;
    }

    /* 章节优化 */
    .section {
        padding: 40px 0;
    }

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

    .container {
        padding: 0 15px;
    }

    /* 介绍区域 */
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .intro-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .building-icon {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .building-icon i {
        font-size: 70px;
    }

    /* 服务卡片 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card-highlight {
        transform: scale(1);
    }

    .service-icon i {
        font-size: 40px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-list li {
        font-size: 14px;
        padding: 10px 0;
    }

    /* 平台卡片 */
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .platform-card {
        padding: 25px 20px;
    }

    .platform-icon i {
        font-size: 32px;
    }

    .platform-title {
        font-size: 16px;
    }

    .platform-desc {
        font-size: 14px;
    }

    /* 合作伙伴 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .partner-card {
        padding: 30px 20px;
    }

    .partner-name {
        font-size: 20px;
    }

    .partner-desc {
        font-size: 13px;
    }

    /* 联系卡片 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 35px 25px;
    }

    .contact-name {
        font-size: 20px;
    }

    .contact-item {
        font-size: 14px;
    }

    /* 时间线 */
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 45px;
        margin-bottom: 30px;
    }

    .timeline-marker {
        left: 6px;
        width: 18px;
        height: 18px;
        border-width: 3px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-text {
        font-size: 14px;
    }

    /* 分类图 */
    .classification-diagram {
        padding: 20px 15px;
    }

    .classification-level-1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .classification-node {
        padding: 15px 20px;
        font-size: 14px;
    }

    .classification-subnode {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* 益处标签 */
    .benefits-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .benefit-tab {
        padding: 15px 10px;
    }

    .benefit-tab i {
        font-size: 24px;
    }

    .benefit-tab span {
        font-size: 13px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 20px;
    }

    .benefit-title {
        font-size: 22px;
    }

    .benefit-desc {
        font-size: 15px;
    }

    .benefit-icon {
        font-size: 70px;
    }

    /* CTA区域 */
    .cta-title {
        font-size: 26px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    /* 按钮 */
    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    /* 页脚 */
    .footer {
        padding: 25px 0;
    }

    .footer-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* 更小的屏幕优化 */
    .logo-img {
        height: 28px;
    }

    .logo-text {
        font-size: 14px;
    }

    .hero {
        min-height: 250px;
        padding: 50px 0 30px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-secondary {
        min-height: 180px;
    }

    .section {
        padding: 35px 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .container {
        padding: 0 12px;
    }

    .intro-text {
        font-size: 14px;
    }

    .building-icon {
        width: 150px;
        height: 150px;
    }

    .building-icon i {
        font-size: 60px;
    }

    .service-card {
        padding: 25px 18px;
    }

    .service-icon i {
        font-size: 36px;
    }

    .service-title {
        font-size: 17px;
    }

    .service-list li {
        font-size: 13px;
    }

    .platform-card {
        padding: 20px 18px;
    }

    .platform-icon i {
        font-size: 28px;
    }

    .platform-title {
        font-size: 15px;
    }

    .platform-desc {
        font-size: 13px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partner-card {
        padding: 25px 18px;
    }

    .partner-name {
        font-size: 18px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-name {
        font-size: 18px;
    }

    .timeline-title {
        font-size: 16px;
    }

    .timeline-text {
        font-size: 13px;
    }

    .classification-diagram {
        padding: 15px 10px;
    }

    .classification-node {
        padding: 12px 15px;
        font-size: 13px;
    }

    .classification-subnode {
        padding: 10px 12px;
        font-size: 12px;
    }

    .benefits-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .benefit-tab {
        padding: 12px 8px;
    }

    .benefit-tab i {
        font-size: 22px;
    }

    .benefit-tab span {
        font-size: 12px;
    }

    .benefit-title {
        font-size: 20px;
    }

    .benefit-desc {
        font-size: 14px;
    }

    .benefit-icon {
        font-size: 60px;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-subtitle {
        font-size: 14px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 触摸设备优化 */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
        padding: 12px 30px;
    }

    .benefit-tab {
        min-height: 60px;
    }

    /* 移除hover效果，添加active效果 */
    .service-card:active {
        transform: translateY(-3px);
    }

    .platform-card:active {
        transform: translateX(3px);
    }

    .partner-card:active {
        transform: translateY(-3px);
    }

    .contact-card:active {
        transform: translateY(-3px);
    }
}
