/* ===== 全局样式重置与基础设置 ===== */
* {
    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;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

/* ===== 颜色变量（蓝色主题）===== */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #4a90e2;
    --secondary-color: #0d47a1;
    --accent-color: #64b5f6;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

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

.navbar-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.navbar-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: 2px;
}

.navbar-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle span.active:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle span.active:nth-child(2) {
    opacity: 0;
}
.menu-toggle span.active:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== 轮播Banner (首页) - 支持图片背景 ===== */
.banner-slider {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 70px);
}

.banner-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    /* 默认渐变背景（当没有设置背景图时显示） */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* 每个slide的默认背景色（作为图片加载前的后备） */
.banner-slide.slide-1 { background-image: linear-gradient(135deg, #667eea 0%, #1a73e8 60%, #0d47a1 100%); }
.banner-slide.slide-2 { background-image: linear-gradient(135deg, #0d47a1 30%, #1565c0 60%, #1976d2 100%); }
.banner-slide.slide-3 { background-image: linear-gradient(135deg, #1565c0 0%, #1e88e5 50%, #42a5f5 100%); }

/* 遮罩层 - 让文字更清晰 */
.banner-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 71, 161, 0.35);
    pointer-events: none;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.banner-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.banner-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 22px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.banner-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto 35px;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.banner-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 轮播控制 */
.banner-controls {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.32);
}

.banner-arrow.prev { left: 25px; }
.banner-arrow.next { right: 25px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* ===== 章节通用样式 - 支持背景图片 ===== */
.section {
    padding: 80px 0;
    /* 支持通过style属性或class设置背景图片 */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
}

/* 有背景图的section需要遮罩 */
.section.has-bg-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    pointer-events: none;
    z-index: 0;
}

.section.has-bg-img > .container {
    position: relative;
    z-index: 1;
}

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

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto;
}

.section-title .title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== 关于我们 / 核心优势 - 固定三栏 ===== */
.about-section {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定三栏 */
    gap: 40px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.about-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== 产品服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

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

.service-header {
    padding: 35px 30px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.service-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.service-number {
    font-size: 48px;
    font-weight: 800;
    opacity: 0.2;
    margin-bottom: 10px;
}

.service-header h3 {
    font-size: 24px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-body {
    padding: 30px;
}

.service-body ul {
    list-style: none;
}

.service-body li {
    padding: 10px 0;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 24px;
}

.service-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
    padding-left: 5px;
}

/* ===== 联系我们 ===== */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-text p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.contact-qrcode {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-qrcode img {
    max-width: 220px;
    margin: 0 auto 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 15px;
}

.contact-qrcode p {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 19px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 2;
    display: block;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

/* ===== 内页Hero - 支持背景图片 ===== */
.page-hero {
    margin-top: 70px;
    padding: 100px 0 80px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    /* 默认渐变背景 */
    background-image: linear-gradient(135deg, #667eea 0%, #1a73e8 50%, #0d47a1 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 71, 161, 0.3);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.page-hero p {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: white;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== 内容区块 ===== */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

.text-content {
    max-width: 850px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-gray);
}

.text-content h2 {
    color: var(--text-dark);
    font-size: 26px;
    margin: 40px 0 20px;
    font-weight: 600;
}

.text-content h3 {
    color: var(--text-dark);
    font-size: 21px;
    margin: 30px 0 15px;
    font-weight: 600;
}

.text-content p {
    margin-bottom: 18px;
}

.text-content ul,
.text-content ol {
    margin: 15px 0 25px 25px;
    list-style: disc;
    padding-left: 20px;
}

.text-content li {
    margin-bottom: 10px;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 30px 35px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* 产品详情页特色列表 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: white;
    padding: 28px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.feature-item h4 {
    color: var(--primary-color);
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 !important;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr; /* 移动端单列 */
        gap: 25px;
    }

    .banner-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .banner-arrow.prev { left: 12px; }
    .banner-arrow.next { right: 12px; }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .navbar .container {
        height: 60px;
    }

    .navbar-logo img {
        height: 36px;
    }

    .navbar-logo-text {
        font-size: 15px;
    }

    .banner-slider {
        min-height: auto;
        padding-top: 60px;
    }

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

    .page-hero {
        margin-top: 60px;
        padding: 70px 0 60px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .service-header {
        padding: 28px 25px 20px;
    }

    .service-body {
        padding: 25px;
    }

    .contact-info,
    .contact-qrcode {
        padding: 30px 25px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .banner-controls {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1,
    .banner-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p,
    .banner-content p {
        font-size: 15px;
    }

    .banner-buttons,
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

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

    .page-hero h1 {
        font-size: 1.9rem;
    }

    .banner-arrow {
        display: none;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
