/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: #f9fafb;
    color: #1a1a2e;
    line-height: 1.7;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e67e22;
}

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

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

/* 头部导航 */
.header {
    background: #1e3a5f;
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: #f39c12;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #ecf0f1;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.nav a:hover {
    border-bottom-color: #f39c12;
    color: #f39c12;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.search-box {
    display: flex;
    gap: 6px;
    align-items: center;
}

.search-box input {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: 0;
    width: 180px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(243,156,18,0.2);
}

.search-box button {
    background: #f39c12;
    border: 0;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
}

.search-box button:hover {
    background: #e67e22;
    transform: scale(1.05);
}

/* 英雄区与渐变Banner */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c3e50 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 span {
    color: #f39c12;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero .btn {
    background: #f39c12;
    color: #1e3a5f;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}

.hero .btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243,156,18,0.4);
}

/* Banner轮播 */
.banner-carousel {
    position: relative;
    overflow: hidden;
    height: 320px;
    margin-top: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.05);
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 300;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

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

.banner-slide:nth-child(1) {
    background: linear-gradient(45deg, #2c3e50, #34495e);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(45deg, #1a5276, #2e86c1);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(45deg, #6c3483, #a569bd);
}

.banner-slide .slide-content {
    text-align: center;
    padding: 20px;
}

.banner-slide h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.banner-slide p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 面包屑 */
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #555;
    transition: background 0.3s;
}

.breadcrumb a {
    color: #1e3a5f;
}

.breadcrumb span {
    color: #999;
}

/* 通用区块 */
.section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1e3a5f;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #f39c12;
    margin: 12px auto 0;
}

/* 品牌介绍 - 毛玻璃与圆角卡片 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #333;
}

.about-info {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.3s, box-shadow 0.3s;
}

.about-info h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #1e3a5f;
}

.about-info ul {
    list-style: none;
    padding: 0;
}

.about-info li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
}

.about-info li strong {
    min-width: 100px;
    color: #1e3a5f;
}

/* 产品卡片 - 圆角与hover动画 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
}

.product-card svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    fill: #1e3a5f;
    transition: fill 0.3s, transform 0.3s;
}

.product-card:hover svg {
    fill: #f39c12;
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1e3a5f;
}

.product-card p {
    color: #555;
    font-size: 0.95rem;
}

/* 解决方案卡片 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.solution-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border-left: 4px solid #f39c12;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.solution-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
}

.solution-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e3a5f;
}

.solution-item p {
    color: #555;
    font-size: 0.95rem;
}

/* 案例卡片 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.case-card .case-body {
    padding: 20px;
}

.case-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #1e3a5f;
}

.case-card p {
    color: #555;
    font-size: 0.9rem;
}

/* 客户评价 */
.testimonials {
    background: #f0f4f8;
    padding: 40px 0;
    border-radius: 20px;
    margin: 40px 0;
    transition: background 0.3s;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.testimonial-item:before {
    content: '"';
    font-size: 3rem;
    color: #f39c12;
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.3;
}

.testimonial-item p {
    font-style: italic;
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.testimonial-item .author {
    font-weight: 600;
    color: #1e3a5f;
}

/* 新闻卡片 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.news-card .date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e3a5f;
}

.news-card p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.news-card .read-more {
    color: #f39c12;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.news-card .read-more:hover {
    color: #e67e22;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s;
}

.faq-question {
    background: #f7f9fc;
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    font-size: 1rem;
    color: #1e3a5f;
}

.faq-question:hover {
    background: #eef2f7;
}

.faq-question .icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 20px 16px;
    color: #444;
    font-size: 0.95rem;
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

/* 教程区域 */
.howto-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-top: 30px;
    transition: background 0.3s;
}

.howto-section h3 {
    font-size: 1.4rem;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.howto-step .step-num {
    background: #f39c12;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.howto-step:hover .step-num {
    transform: scale(1.1);
}

.howto-step .step-content h4 {
    font-size: 1.1rem;
    color: #1e3a5f;
    margin-bottom: 6px;
}

.howto-step .step-content p {
    color: #555;
    font-size: 0.95rem;
}

/* 联系我们 - 毛玻璃效果 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.3s;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1e3a5f;
}

.contact-info p {
    margin-bottom: 12px;
    color: #444;
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    fill: #1e3a5f;
    flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(243,156,18,0.2);
    outline: none;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #1e3a5f;
    color: #fff;
    border: 0;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.contact-form button:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30,58,95,0.3);
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
    transition: background 0.3s;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: #f39c12;
}

.footer .copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #777;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e3a5f;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 999;
    border: 0;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.back-to-top:hover {
    transform: scale(1.1);
    background: #2c3e50;
}

/* 暗黑模式 */
.dark-mode {
    background: #1a1a2e;
    color: #f0f0f0;
}

.dark-mode .header {
    background: #0d1b2a;
}

.dark-mode .hero {
    background: linear-gradient(135deg, #0d1b2a, #1a1a2e);
}

.dark-mode .section-title {
    color: #f0f0f0;
}

.dark-mode .product-card,
.dark-mode .solution-item,
.dark-mode .case-card,
.dark-mode .testimonial-item,
.dark-mode .news-card,
.dark-mode .faq-item,
.dark-mode .howto-section,
.dark-mode .contact-grid,
.dark-mode .about-info {
    background: rgba(44, 44, 62, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ddd;
    border-color: rgba(255,255,255,0.1);
}

.dark-mode .product-card p,
.dark-mode .solution-item p,
.dark-mode .case-card p,
.dark-mode .testimonial-item p,
.dark-mode .news-card p,
.dark-mode .faq-answer,
.dark-mode .howto-step .step-content p,
.dark-mode .contact-info p {
    color: #bbb;
}

.dark-mode .faq-question {
    background: #33334a;
    color: #eee;
}

.dark-mode .testimonials {
    background: #222236;
}

.dark-mode .breadcrumb {
    background: #1e1e30;
    color: #aaa;
}

.dark-mode .breadcrumb a {
    color: #8ab4f8;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
    background: #33334a;
    border-color: #555;
    color: #eee;
}

.dark-mode .contact-form button {
    background: #f39c12;
    color: #1a1a2e;
}

.dark-mode .footer {
    background: #0d0d1a;
}

.dark-mode .about-text p {
    color: #ccc;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 10px;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .search-box input {
        width: 120px;
    }

    .banner-carousel {
        height: 220px;
    }

    .banner-slide h2 {
        font-size: 1.5rem;
    }

    .banner-slide p {
        font-size: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .howto-section {
        padding: 20px;
    }

    .howto-step {
        flex-direction: column;
        gap: 10px;
    }

    .footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .btn {
        padding: 10px 28px;
        font-size: 1rem;
    }

    .products-grid,
    .solutions-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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