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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
    transition: background 0.4s, color 0.4s;
}

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

a:hover {
    color: #2a6a9c;
}

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

/* 导航栏 */
.navbar {
    background: #1a3a5c;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
    backdrop-filter: blur(0);
}

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

.navbar .logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar .nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-menu li a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}

.navbar .nav-menu li a:hover {
    background: #2a6a9c;
    transform: translateY(-2px);
}

.navbar .search-box {
    display: flex;
    align-items: center;
}

.navbar .search-box input {
    padding: 6px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: box-shadow 0.3s;
}

.navbar .search-box input:focus {
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.navbar .search-box button {
    padding: 6px 12px;
    background: #2a6a9c;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.navbar .search-box button:hover {
    background: #3a7aac;
}

.navbar .menu-toggle {
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* Banner 区域 */
.banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a6a9c 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    transition: background 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: shimmer 10s infinite linear;
}

@keyframes shimmer {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50%, 50%); }
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.banner .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ffc107;
    color: #1a3a5c;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.banner .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

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

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a3a5c;
    position: relative;
    transition: color 0.4s;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ffc107;
    margin: 10px auto;
    border-radius: 2px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

/* 毛玻璃卡片 */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.card h3 {
    color: #1a3a5c;
    margin-bottom: 15px;
    transition: color 0.4s;
}

.card p {
    color: #666;
    transition: color 0.4s;
}

/* 关于我们 */
.about {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about .about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about .about-text {
    flex: 1;
}

.about .about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a3a5c;
}

.about .about-text p {
    margin-bottom: 15px;
    line-height: 1.9;
}

.about .about-info {
    flex: 0 0 300px;
    background: rgba(240, 244, 248, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    border-radius: 16px;
    transition: background 0.4s;
}

.about .about-info h3 {
    margin-bottom: 15px;
    color: #1a3a5c;
}

.about .about-info p {
    margin-bottom: 8px;
}

/* 产品 */
.products .product-icon {
    width: 60px;
    height: 60px;
    background: rgba(232, 240, 254, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s, background 0.4s;
}

.card:hover .product-icon {
    transform: rotate(10deg) scale(1.1);
}

/* 解决方案 */
.solutions {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 案例 */
.cases {
    background: rgba(240, 244, 248, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cases blockquote {
    font-style: italic;
    border-left: 4px solid #ffc107;
    padding-left: 20px;
    margin: 15px 0;
    color: #555;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 8px 8px 0;
    transition: background 0.4s;
}

/* 文章 */
.articles .article-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
    transition: background 0.3s, padding-left 0.3s;
    border-radius: 8px;
}

.articles .article-item:hover {
    background: rgba(255, 255, 255, 0.5);
    padding-left: 10px;
}

.articles .article-item:last-child {
    border-bottom: none;
}

.articles .article-item h4 {
    font-size: 20px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.articles .article-item:hover h4 {
    color: #2a6a9c;
}

.articles .article-item .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.articles .article-item p {
    color: #666;
}

.articles .article-item .read-more {
    color: #1a3a5c;
    font-weight: bold;
    transition: color 0.3s, padding-left 0.3s;
}

.articles .article-item .read-more:hover {
    color: #ffc107;
    padding-left: 5px;
}

/* FAQ */
.faq .faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(224, 224, 224, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.faq .faq-item:hover {
    border-color: #ffc107;
}

.faq .faq-question {
    padding: 15px 20px;
    background: rgba(248, 249, 250, 0.8);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq .faq-question:hover {
    background: rgba(255, 193, 7, 0.1);
}

.faq .faq-question::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s;
}

.faq .faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq .faq-answer.open {
    padding: 15px 20px;
    max-height: 500px;
}

.faq .faq-answer p {
    color: #555;
    transition: color 0.4s;
}

/* HowTo */
.howto {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.howto ol {
    margin-left: 20px;
}

.howto li {
    margin-bottom: 10px;
    transition: padding-left 0.3s;
}

.howto li:hover {
    padding-left: 5px;
    color: #2a6a9c;
}

/* 联系 */
.contact {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f1f2e 100%);
    color: #fff;
    position: relative;
}

.contact .section-title {
    color: #fff;
}

.contact .section-title::after {
    background: #ffc107;
}

.contact .grid-2 {
    color: #ddd;
}

.contact a {
    color: #ffc107;
    transition: color 0.3s;
}

.contact a:hover {
    color: #fff;
}

/* 页脚 */
.footer {
    background: #0f1f2e;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    transition: background 0.4s;
}

.footer .footer-links a {
    color: #aaa;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer .footer-links a:hover {
    color: #fff;
}

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

.back-to-top.show {
    display: flex;
}

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

/* 数字动画 */
.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 40px 0;
}

.stats .stat-item h3 {
    font-size: 36px;
    color: #1a3a5c;
    transition: color 0.4s;
}

.stats .stat-item p {
    color: #666;
    transition: color 0.4s;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    background: rgba(240, 244, 248, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 14px;
    transition: background 0.4s;
}

.breadcrumb a {
    color: #1a3a5c;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffc107;
}

.breadcrumb span {
    color: #999;
}

/* 暗黑模式 */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.dark-mode .card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .about {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.dark-mode .about .about-info {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.dark-mode .solutions {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.dark-mode .cases {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.dark-mode .faq .faq-question {
    background: rgba(42, 42, 42, 0.8);
}

body.dark-mode .faq .faq-item {
    border-color: #444;
    background: rgba(30, 30, 30, 0.6);
}

body.dark-mode .howto {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.dark-mode .contact {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2a3a 100%);
}

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

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

body.dark-mode .card h3 {
    color: #ffc107;
}

body.dark-mode .products .product-icon {
    background: rgba(42, 58, 92, 0.8);
}

body.dark-mode .breadcrumb {
    background: rgba(42, 42, 42, 0.8);
}

body.dark-mode .breadcrumb a {
    color: #ffc107;
}

body.dark-mode .stats .stat-item h3 {
    color: #ffc107;
}

body.dark-mode .stats .stat-item p {
    color: #aaa;
}

body.dark-mode .articles .article-item {
    border-color: #333;
}

body.dark-mode .articles .article-item:hover {
    background: rgba(50, 50, 50, 0.5);
}

body.dark-mode .articles .article-item .meta {
    color: #888;
}

body.dark-mode .articles .article-item p {
    color: #bbb;
}

body.dark-mode .faq .faq-answer p {
    color: #bbb;
}

body.dark-mode .back-to-top {
    background: #ffc107;
    color: #1a3a5c;
}

body.dark-mode .back-to-top:hover {
    background: #ffd54f;
}

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

body.dark-mode .about .about-text h2 {
    color: #ffc107;
}

body.dark-mode .card p {
    color: #bbb;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 58, 92, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 0;
        border-radius: 0 0 12px 12px;
    }

    .navbar .nav-menu.open {
        display: flex;
    }

    .navbar .menu-toggle {
        display: block;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

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

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

    .about .about-content {
        flex-direction: column;
    }

    .about .about-info {
        flex: 1;
        width: 100%;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 50px 0;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner p {
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }
}