/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

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

/* ===== 渐变Banner / 通用渐变 ===== */
.gradient-bg,
header,
.hero,
section:has(.stat-number) {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

/* ===== 圆角卡片通用 ===== */
.card,
.history-item,
.team-card,
.product-card,
.solution-card,
.industry-item,
.case-card,
.partner-item,
.testimonial-card,
.news-card,
.related-item,
.howto-step,
.advantage-item {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.history-item:hover,
.team-card:hover,
.product-card:hover,
.solution-card:hover,
.industry-item:hover,
.case-card:hover,
.partner-item:hover,
.testimonial-card:hover,
.news-card:hover,
.related-item:hover,
.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 毛玻璃效果 ===== */
.glass,
.banner-slider .slide,
.advantage-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Header ===== */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e63946, #f4a261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

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

nav a:hover,
nav a.active {
    color: #e63946;
}

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

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    padding: 5px;
    width: 150px;
    font-size: 0.9rem;
}

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

.search-box button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.dark-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dark-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero .btn {
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-slider .slide {
    width: 300px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.banner-slider .slide:hover {
    transform: scale(1.05);
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-grid .text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-grid .image {
    background: linear-gradient(135deg, #e63946, #f4a261);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #fff;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

/* ===== History ===== */
.history-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.history-item {
    background: #fff;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    border: 1px solid #eee;
}

body.dark .history-item {
    background: #1a1a2e;
    border-color: #333;
}

.history-item .year {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e63946;
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    background: #fff;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.dark .team-card {
    background: #1a1a2e;
    border-color: #333;
}

.team-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946, #f4a261);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

/* ===== Products ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

body.dark .product-card {
    background: #1a1a2e;
    border-color: #333;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

/* ===== Advantages ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    background: rgba(230, 57, 70, 0.05);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(230, 57, 70, 0.1);
}

body.dark .advantage-item {
    background: rgba(230, 57, 70, 0.1);
}

/* ===== Solutions ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.dark .solution-card {
    background: #1a1a2e;
    border-color: #333;
}

/* ===== Industries ===== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.industry-item {
    background: #fff;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.dark .industry-item {
    background: #1a1a2e;
    border-color: #333;
}

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

.case-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.dark .case-card {
    background: #1a1a2e;
    border-color: #333;
}

.case-card .case-img {
    height: 180px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

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

/* ===== Partners ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

body.dark .partner-item {
    background: #1a1a2e;
    border-color: #333;
}

.partner-item:hover {
    transform: scale(1.05);
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
}

body.dark .testimonial-card {
    background: #1a1a2e;
    border-color: #333;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: #e63946;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

/* ===== News ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.dark .news-card {
    background: #1a1a2e;
    border-color: #333;
}

.news-card .news-img {
    height: 160px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

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

.news-card .news-body .date {
    color: #e63946;
    font-size: 0.9rem;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background: #fff;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.dark .related-item {
    background: #1a1a2e;
    border-color: #333;
}

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

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    cursor: pointer;
}

body.dark .faq-item {
    border-color: #444;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icon {
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 10px;
    color: #666;
}

body.dark .faq-answer {
    color: #aaa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===== HowTo ===== */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.dark .howto-step {
    background: #1a1a2e;
    border-color: #333;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info p strong {
    color: #e63946;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s;
}

body.dark .contact-form input,
body.dark .contact-form textarea {
    background: #1a1a2e;
    border-color: #444;
    color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e63946;
    outline: none;
}

.contact-form button {
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

/* ===== Friend Links & Sitemap ===== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}

.friend-links a {
    color: #e63946;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: #f4a261;
}

.sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.sitemap h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #e63946;
}

.sitemap a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 5px;
    transition: color 0.3s;
}

body.dark .sitemap a {
    color: #aaa;
}

.sitemap a:hover {
    color: #e63946;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer a {
    color: #e63946;
    text-decoration: none;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

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

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #e63946;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
}

/* ===== Stat Number ===== */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e63946, #f4a261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 滚动动画 (IntersectionObserver 配合) ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

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

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

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .banner-slider .slide {
        width: 200px;
        font-size: 1rem;
    }
}

/* ===== 暗色模式 (自动) ===== */
@media (prefers-color-scheme: dark) {
    body:not(.light) {
        background: #0f0f1a;
        color: #e0e0e0;
    }

    body:not(.light) .history-item,
    body:not(.light) .team-card,
    body:not(.light) .product-card,
    body:not(.light) .solution-card,
    body:not(.light) .industry-item,
    body:not(.light) .case-card,
    body:not(.light) .partner-item,
    body:not(.light) .testimonial-card,
    body:not(.light) .news-card,
    body:not(.light) .related-item,
    body:not(.light) .howto-step {
        background: #1a1a2e;
        border-color: #333;
    }

    body:not(.light) .faq-item {
        border-color: #444;
    }

    body:not(.light) .faq-answer {
        color: #aaa;
    }

    body:not(.light) .contact-form input,
    body:not(.light) .contact-form textarea {
        background: #1a1a2e;
        border-color: #444;
        color: #fff;
    }

    body:not(.light) .sitemap a {
        color: #aaa;
    }
}