/* 重置与基础 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f8f9fa;
    transition: background 0.3s, color 0.3s;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
p {
    margin-bottom: 1rem;
}
img, svg {
    max-width: 100%;
    display: block;
}
.section {
    padding: 4rem 0;
}
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #f0c040, #d4a030);
    color: #1a3a5c;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240,192,64,0.4);
}
/* 头部导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26,58,92,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: #fff;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f0c040;
    transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: #f0c040;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.nav-actions button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}
.nav-actions button:hover {
    background: rgba(255,255,255,0.1);
}
.menu-toggle {
    display: none;
}
.search-bar {
    display: none;
    padding: 1rem;
    background: rgba(26,58,92,0.98);
}
.search-bar.open {
    display: block;
}
.search-bar form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px 0 0 50px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
}
.search-bar input::placeholder {
    color: rgba(255,255,255,0.6);
}
.search-bar button {
    padding: 0.75rem 1.5rem;
    background: #f0c040;
    border: none;
    border-radius: 0 50px 50px 0;
    color: #1a3a5c;
    font-weight: bold;
    cursor: pointer;
}
.breadcrumb {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    font-size: 0.85rem;
    margin-top: 60px;
}
.breadcrumb ol {
    display: flex;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.breadcrumb a {
    color: #1a3a5c;
}
/* Hero Banner */
.hero-banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}
.banner-slider {
    position: absolute;
    inset: 0;
}
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    padding: 2rem;
}
.slide.active {
    opacity: 1;
}
.slide[data-bg="hero1"] {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}
.slide[data-bg="hero2"] {
    background: linear-gradient(135deg, #1a2a3a, #2a4a6a, #1a3a5c);
}
.slide[data-bg="hero3"] {
    background: linear-gradient(135deg, #2a1a3a, #3a2a5a, #1a2a4a);
}
.slide-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    z-index: 2;
}
.slide-content h1, .slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.banner-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10;
}
.banner-controls button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(5px);
}
.banner-controls button:hover {
    background: rgba(255,255,255,0.4);
}
.dots {
    display: flex;
    gap: 0.5rem;
}
.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.dots span.active {
    background: #f0c040;
}
/* 卡片与布局 */
.about-grid, .product-grid, .culture-grid, .service-grid, .scenario-grid, .case-grid, .testimonial-grid, .news-grid, .stats-grid, .recommend-grid, .footer-grid {
    display: grid;
    gap: 2rem;
}
.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.culture-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.scenario-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.case-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.recommend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.about-card, .product-card, .culture-item, .service-card, .scenario-item, .case-card, .news-item, .testimonial-grid blockquote {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}
.about-card:hover, .product-card:hover, .case-card:hover, .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.about-card svg, .product-card svg {
    margin-bottom: 1rem;
}
.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1.5rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a3a5c;
}
.stat-item p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}
.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.client-item {
    background: rgba(255,255,255,0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: #1a3a5c;
    border: 1px solid rgba(26,58,92,0.1);
}
/* FAQ */
.faq-list details {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.5);
    transition: background 0.3s;
}
.faq-list summary {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a3a5c;
}
.faq-list details[open] {
    background: rgba(255,255,255,0.9);
}
.faq-list details p {
    padding-top: 1rem;
    color: #444;
}
/* HowTo */
.howto-steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.howto-steps > div {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.5);
}
/* 联系我们 */
.contact-info {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.5);
}
.contact-info p {
    margin-bottom: 0.75rem;
}
/* 网站地图 */
.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.sitemap-links a {
    background: rgba(255,255,255,0.5);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background 0.3s;
}
.sitemap-links a:hover {
    background: #f0c040;
    color: #1a3a5c;
}
.friend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.friend-grid a {
    color: #1a3a5c;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.friend-grid a:hover {
    border-color: #f0c040;
}
/* Footer */
.site-footer {
    background: #1a3a5c;
    color: #fff;
    padding: 3rem 0 1rem;
}
.footer-col h3 {
    color: #f0c040;
    margin-bottom: 1rem;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.footer-col a:hover {
    color: #f0c040;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a3a5c;
    color: #f0c040;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #f0c040;
    color: #1a3a5c;
}
/* 暗黑模式 */
body.dark-mode {
    background: #0f1a2a;
    color: #e0e0e0;
}
body.dark-mode .about-card, body.dark-mode .product-card, body.dark-mode .culture-item, body.dark-mode .service-card, body.dark-mode .scenario-item, body.dark-mode .case-card, body.dark-mode .news-item, body.dark-mode .testimonial-grid blockquote, body.dark-mode .stat-item, body.dark-mode .faq-list details, body.dark-mode .howto-steps > div, body.dark-mode .contact-info {
    background: rgba(30,50,70,0.8);
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}
body.dark-mode .client-item {
    background: rgba(30,50,70,0.6);
    color: #f0c040;
    border-color: rgba(240,192,64,0.3);
}
body.dark-mode .breadcrumb {
    background: #1a2a3a;
}
body.dark-mode .breadcrumb a {
    color: #f0c040;
}
body.dark-mode .stat-number {
    color: #f0c040;
}
body.dark-mode .faq-list summary {
    color: #f0c040;
}
body.dark-mode .sitemap-links a {
    background: rgba(30,50,70,0.6);
    color: #e0e0e0;
}
body.dark-mode .friend-grid a {
    color: #f0c040;
}
/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26,58,92,0.98);
        padding: 1rem;
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .slide-content h1, .slide-content h2 {
        font-size: 2rem;
    }
    .hero-banner {
        min-height: 60vh;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-container {
        padding: 0.5rem;
    }
}
/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}