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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
    color: #ff6b6b;
}

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

ul, ol {
    padding-left: 20px;
    margin: 10px 0;
}

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

.section {
    padding: 60px 0;
}

.bg-light {
    background: #f0f0f5;
}

.bg-dark {
    background: #1a1a2e;
    color: #fff;
}

.bg-dark a {
    color: #ffb3b3;
}

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

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

.bg-dark .section-title {
    color: #fff;
}

.bg-dark .section-title::after {
    background: #ffb3b3;
}

/* 导航栏 */
nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

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

.logo img {
    width: 200px;
    height: 50px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffb3b3;
    text-decoration: none;
}

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

.search-box input {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    width: 180px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
}

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

.search-box input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.2);
    width: 220px;
}

.search-box button {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-menu-toggle:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

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

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

/* Banner 轮播 */
.banner-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 70px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 30px;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1,
.slide-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e55a5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    text-decoration: none;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
}

.carousel-controls button {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 10px;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-controls button:hover {
    background: rgba(255, 107, 107, 0.7);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #ff6b6b;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .banner-carousel {
        height: 350px;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: 1.8rem;
    }

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

    .slide-content {
        padding: 20px;
        margin: 0 10px;
    }
}

/* About 部分 */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.about-text h3 {
    margin-top: 20px;
    color: #1a1a2e;
}

.about-text p {
    margin: 10px 0;
}

.about-info .info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.about-info .info-card h4 {
    margin-bottom: 10px;
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Products 部分 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: 15px 15px 0;
    font-size: 1.3rem;
    color: #1a1a2e;
}

.product-card p {
    padding: 10px 15px 20px;
    color: #555;
}

.product-advantages {
    margin-top: 40px;
}

.product-advantages ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-advantages li {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-advantages li:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-advantages ul {
        grid-template-columns: 1fr;
    }
}

/* Solutions 部分 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.solution-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.solution-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.solution-item h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.case-studies,
.testimonials {
    margin-top: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.case-card:hover {
    transform: translateX(5px);
}

.testimonials blockquote {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-left: 4px solid #ff6b6b;
    margin: 15px 0;
    border-radius: 8px;
    font-style: italic;
    transition: transform 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.testimonials blockquote:hover {
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* Articles 部分 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.article-card time {
    color: #888;
    font-size: 0.9rem;
}

.article-card p {
    margin: 10px 0;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #ff6b6b;
    font-weight: bold;
    transition: transform 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
    text-decoration: none;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

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

.faq-item {
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 107, 107, 0.05);
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(250, 250, 250, 0.8);
    padding: 0 20px;
}

.faq-answer p {
    padding: 15px 0;
}

/* HowTo 部分 */
.howto-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.howto-content h3 {
    margin-top: 20px;
    color: #1a1a2e;
}

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

/* Contact 部分 */
.contact-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.site-map ul,
.friend-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.site-map ul li a,
.friend-links ul li a {
    color: #0066cc;
    transition: color 0.3s;
}

.site-map ul li a:hover,
.friend-links ul li a:hover {
    color: #ff6b6b;
}

/* Legal 部分 */
.legal-content h3 {
    margin-top: 20px;
}

.legal-content p {
    margin: 10px 0;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* Back to top */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

#backToTop:hover {
    transform: scale(1.1) translateY(-3px);
    background: #e55a5a;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

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

body.dark-mode .bg-light {
    background: #1e1e1e;
}

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

body.dark-mode .product-card,
body.dark-mode .solution-item,
body.dark-mode .article-card,
body.dark-mode .case-card,
body.dark-mode .testimonials blockquote,
body.dark-mode .howto-content,
body.dark-mode .info-card,
body.dark-mode .faq-question {
    background: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #eee;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .faq-answer {
    background: rgba(34, 34, 34, 0.9);
}

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

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

body.dark-mode .product-advantages li {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #eee;
    border-color: rgba(255, 255, 255, 0.1);
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: 1.5rem;
    }

    .product-card img {
        height: 150px;
    }

    .container {
        padding: 0 15px;
    }
}