/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a2e;
        color: #e0e0e0;
    }
    header {
        background: #16213e;
    }
    .brand-item, .product-item, .article-item, .faq-item, .case-item, blockquote {
        background: #0f3460;
        color: #e0e0e0;
    }
    .breadcrumb {
        background: #16213e;
    }
    .banner {
        background: linear-gradient(135deg, #0f3460, #533483);
    }
    .section h2 {
        color: #e0e0e0;
        border-bottom-color: #e94560;
    }
    .product-item h3, .article-item h3, .faq-question {
        color: #e0e0e0;
    }
    .brand-item h3 {
        color: #e94560;
    }
    .read-more {
        color: #e94560;
    }
    footer {
        background: #16213e;
    }
    .footer-links a {
        color: #a0a0a0;
    }
    .back-to-top {
        background: #e94560;
    }
    .btn {
        background: #e94560;
    }
    .btn:hover {
        background: #c0392b;
    }
    .search-bar input {
        background: #1a1a2e;
        color: #e0e0e0;
        border: 1px solid #533483;
    }
    .search-bar button {
        background: #e94560;
    }
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo svg {
    transition: transform 0.3s;
}

.logo:hover svg {
    transform: rotate(10deg) scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #e74c3c;
}

.nav-links a:hover::after {
    width: 100%;
}

.search-icon {
    cursor: pointer;
    transition: transform 0.3s;
}

.search-icon:hover {
    transform: scale(1.2);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.search-bar {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
    animation: slideDown 0.3s ease;
}

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

.search-bar input {
    width: 80%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.search-bar button {
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

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

.banner {
    position: relative;
    max-width: 1200px;
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #2c3e50, #34495e, #4a6741);
    color: #fff;
    min-height: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s;
}

.banner:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.banner-slide {
    display: none;
    padding: 3rem 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.banner-slide.active {
    display: block;
}

.banner-content h1, .banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.banner-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
}

.dot.active {
    opacity: 1;
    transform: scale(1.3);
    background: #e74c3c;
}

.dot:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    background: rgba(236, 240, 241, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.breadcrumb a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s;
}

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

.section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: scrollFadeIn 0.6s ease forwards;
}

@keyframes scrollFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }
.section:nth-child(8) { animation-delay: 0.8s; }
.section:nth-child(9) { animation-delay: 0.9s; }
.section:nth-child(10) { animation-delay: 1s; }
.section:nth-child(11) { animation-delay: 1.1s; }

.section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e74c3c;
    animation: underlineGrow 0.5s ease;
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 50px; }
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.brand-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

.brand-item h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.product-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.case-item, blockquote {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e74c3c;
    border-radius: 12px;
    transition: all 0.3s;
}

.case-item:hover, blockquote:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-list {
    display: grid;
    gap: 1.5rem;
}

.article-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-item h3 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
    transition: color 0.3s;
}

.article-item:hover h3 {
    color: #e74c3c;
}

.article-item time {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.read-more:hover {
    transform: translateX(5px);
    color: #c0392b;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

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

.faq-question {
    padding: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: #2c3e50;
    border-bottom: 1px solid rgba(236, 240, 241, 0.5);
    transition: all 0.3s;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
}

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

.faq-question:hover {
    background: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
}

.faq-answer {
    padding: 0 1rem 1rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

#howto ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

#howto ol li {
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

#howto ol li:hover {
    transform: translateX(5px);
}

.contact-info p {
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.contact-info p:hover {
    transform: translateX(5px);
}

footer {
    background: #2c3e50;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #e74c3c;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    background: #c0392b;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(44, 62, 80, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    .menu-toggle {
        display: block;
    }
    .banner-content h1, .banner-content h2 {
        font-size: 1.5rem;
    }
    .banner {
        min-height: 250px;
        border-radius: 12px;
    }
    .banner-slide {
        padding: 2rem 1rem;
    }
    .section h2 {
        font-size: 1.4rem;
    }
    .brand-grid {
        grid-template-columns: 1fr;
    }
    .product-list {
        grid-template-columns: 1fr;
    }
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    .search-bar input {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .banner-content h1, .banner-content h2 {
        font-size: 1.2rem;
    }
    .banner-content p {
        font-size: 0.9rem;
    }
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    .section {
        padding: 0 0.5rem;
    }
    .faq-question {
        font-size: 1rem;
    }
}