/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

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

/* ===== 头部 & 导航 ===== */
header {
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4px 10px;
    backdrop-filter: blur(6px);
}

.search-box input {
    padding: 6px 12px;
    border: none;
    border-radius: 30px;
    outline: none;
    background: transparent;
    color: white;
    width: 160px;
    transition: width 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    width: 220px;
}

.search-box button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.search-box button:hover {
    transform: scale(1.15);
}

.breadcrumb {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Hero Banner ===== */
.hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 50%, #7c4dff 100%);
    color: white;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.hero-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: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.hero-content {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary, .btn-secondary {
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(4px);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    border-radius: 20px;
}

/* ===== 通用 Section ===== */
.section {
    padding: 70px 20px;
    transition: opacity 0.6s, transform 0.6s;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #007bff;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    margin-top: 10px;
    border-radius: 2px;
}

.section h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: #333;
}

body.dark-mode .section h3 {
    color: #e0e0e0;
}

.section p {
    margin-bottom: 15px;
}

/* ===== 品牌介绍 ===== */
.brand-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-details article {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
}

body.dark-mode .brand-details article {
    background: rgba(42, 42, 62, 0.9);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.brand-details article:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ===== 团队 ===== */
.team-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.team-member {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
}

body.dark-mode .team-member {
    background: rgba(42, 42, 62, 0.9);
}

.team-member:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-member svg {
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.team-member:hover svg {
    transform: scale(1.05);
}

/* ===== 产品 / 案例 / 评价卡片 ===== */
.product-grid, .case-grid, .testimonial-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card, .case-item, .testimonial {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    flex: 1;
    min-width: 250px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
}

body.dark-mode .product-card,
body.dark-mode .case-item,
body.dark-mode .testimonial {
    background: rgba(42, 42, 62, 0.9);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.product-card:hover, .case-item:hover, .testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card svg, .case-item svg {
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.product-card:hover svg, .case-item:hover svg {
    transform: scale(1.03);
}

/* ===== 新闻文章 ===== */
.article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.article-grid article {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
}

body.dark-mode .article-grid article {
    background: rgba(42, 42, 62, 0.9);
}

.article-grid article:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.article-grid .date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

body.dark-mode .article-grid .date {
    color: #aaa;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, transform 0.2s;
}

.read-more:hover {
    color: #0056b3;
    transform: translateX(4px);
}

body.dark-mode .read-more {
    color: #66b0ff;
}

body.dark-mode .read-more:hover {
    color: #99ccff;
}

/* ===== FAQ ===== */
.faq-item {
    margin-bottom: 15px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

body.dark-mode .faq-item {
    background: rgba(42, 42, 62, 0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #f0f8ff, #e6f2ff);
    margin: 0;
    font-weight: 600;
    transition: background 0.3s;
    position: relative;
}

body.dark-mode .faq-question {
    background: linear-gradient(135deg, #2a2a3e, #3a3a4e);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
    background: linear-gradient(135deg, #e6f2ff, #d9ecff);
}

body.dark-mode .faq-question:hover {
    background: linear-gradient(135deg, #3a3a4e, #4a4a5e);
}

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

.faq-answer.active {
    padding: 18px 20px;
    max-height: 500px;
}

/* ===== 联系我们 ===== */
.contact-qr {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.contact-qr div {
    text-align: center;
    transition: transform 0.3s;
}

.contact-qr div:hover {
    transform: scale(1.05);
}

.contact-qr svg {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #e0e0e0;
    padding: 50px 20px 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #007bff;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #007bff;
    margin-top: 5px;
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-section a:hover {
    color: #007bff;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 26px;
    cursor: pointer;
    display: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    z-index: 999;
}

#back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.6);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== 暗黑模式适配 ===== */
body.dark-mode .section {
    background: transparent;
}

body.dark-mode .section h2 {
    color: #66b0ff;
}

body.dark-mode .section h2::after {
    background: linear-gradient(90deg, #66b0ff, #99ccff);
}

body.dark-mode .footer-section a {
    color: #b0b0c0;
}

body.dark-mode .footer-section a:hover {
    color: #66b0ff;
}

/* ===== 毛玻璃通用 ===== */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

body.dark-mode .glass {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding: 15px 0;
        background: rgba(0, 123, 255, 0.2);
        backdrop-filter: blur(12px);
        border-radius: 15px;
        margin-top: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        text-align: center;
        padding: 12px;
    }

    .search-box {
        width: 100%;
        margin-top: 10px;
    }

    .search-box input {
        width: 100%;
    }

    .search-box input:focus {
        width: 100%;
    }

    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

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

    .brand-details,
    .team-grid,
    .product-grid,
    .case-grid,
    .testimonial-grid,
    .article-grid {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section h3::after {
        margin: 5px auto 0;
    }

    #back-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

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

    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 15px;
    }

    .container {
        padding: 0 12px;
    }
}