/* ==================== 基础样式 ==================== */
:root {
    /* 主色调 - 新能源绿色 */
    --primary-color: #2d8f4e;
    --primary-dark: #1a5f2a;
    --primary-light: #4caf50;

    /* 辅助色 - 科技蓝 */
    --secondary-color: #1e88e5;
    --secondary-dark: #0d4f8b;

    /* 中性色 */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --white: #ffffff;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* 过渡 */
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    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', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--gradient-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.btn-light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.logo-icon {
    font-size: 32px;
    color: var(--primary-color);
}

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

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

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-item a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary-color);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==================== Banner ==================== */
.banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.banner-slides {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    max-width: 600px;
    color: var(--white);
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.banner-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.banner-btns {
    display: flex;
    gap: 16px;
}

.banner-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--white);
    width: 36px;
    border-radius: 6px;
}

.banner-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== 数据统计 ==================== */
.stats {
    background: var(--gradient-primary);
    padding: 60px 0;
    margin-top: -1px;
}

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

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number::after {
    content: '+';
    font-size: 32px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.section-footer {
    text-align: center;
    margin-top: 50px;
}

.bg-light {
    background: var(--bg-light);
}

/* ==================== 核心业务 ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ==================== 产品展示 ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.6;
}

.product-placeholder.cabinet {
    font-size: 50px;
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ==================== 为什么选择我们 ==================== */
.advantages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.advantage-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.advantage-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.advantage-image {
    height: 400px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    text-align: center;
    color: var(--primary-color);
    opacity: 0.6;
}

.image-placeholder i {
    font-size: 80px;
    display: block;
    margin-bottom: 16px;
}

.image-placeholder span {
    font-size: 18px;
    font-weight: 500;
}

/* ==================== 服务流程 ==================== */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.process-step {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    width: 220px;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.process-arrow {
    color: var(--primary-color);
    font-size: 20px;
}

/* ==================== 新闻资讯 ==================== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.news-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-image {
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder {
    font-size: 48px;
    color: var(--secondary-color);
    opacity: 0.6;
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.news-date,
.news-category {
    font-size: 13px;
    color: var(--text-light);
}

.news-category {
    color: var(--primary-color);
    font-weight: 500;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.news-link {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.news-link:hover {
    color: var(--primary-dark);
}

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

.partner-item {
    background: var(--white);
    border-radius: var(--radius-md);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.partner-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.partner-logo {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== CTA ==================== */
.cta {
    background: var(--gradient-dark);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 28px;
    color: var(--primary-light);
}

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

.footer-logo .logo-text {
    font-size: 22px;
    color: var(--white);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-light);
    width: 16px;
    margin-top: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.5);
}

.copyright a:hover {
    color: var(--primary-light);
}

.divider {
    margin: 0 8px;
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .banner-title {
        font-size: 36px;
    }

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

    .advantages-content {
        grid-template-columns: 1fr;
    }

    .advantages-right {
        order: -1;
    }

    .process-steps {
        flex-wrap: wrap;
    }

    .process-arrow {
        display: none;
    }

    .process-step {
        width: calc(50% - 15px);
    }

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

    .news-card.featured {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 70px;
    }

    .banner {
        margin-top: 70px;
        height: auto;
        min-height: calc(100vh - 70px);
    }

    .banner-slide {
        padding: 60px 0;
    }

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

    .banner-desc {
        font-size: 16px;
    }

    .banner-btns {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

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

    .stat-number {
        font-size: 42px;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .process-step {
        width: 100%;
    }

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

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
