/* ===== 重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #f9fafc;
    color: #1a1a2e;
    line-height: 1.8;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}

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

a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #e74c3c;
}

/* ===== 导航栏 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #ecf0f1;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: background 0.3s;
}

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

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: 2px;
}

.logo span {
    color: #e74c3c;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: 0.3s;
}

.search-bar {
    display: flex;
    gap: 8px;
}

.search-bar input {
    width: 200px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.search-bar button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

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

/* 暗黑模式按钮 */
.dark-mode-btn {
    background: none;
    border: 2px solid #2c3e50;
    border-radius: 30px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    transition: 0.2s;
}

.dark-mode-btn:hover {
    background: #2c3e50;
    color: #fff;
}

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

body.dark .navbar {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: #333;
}

body.dark .logo {
    color: #fff;
}

body.dark .nav-links li a {
    color: #ccc;
}

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

body.dark .search-bar input {
    background: #2a2a2a;
    color: #fff;
    border-color: #444;
}

body.dark .dark-mode-btn {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

body.dark .dark-mode-btn:hover {
    background: #e0e0e0;
    color: #121212;
}

body.dark .footer {
    background: #1e1e1e;
    border-top-color: #333;
}

body.dark .article-card,
body.dark .faq-item,
body.dark .howto-step,
body.dark .team-card,
body.dark .service-card,
body.dark .case-card,
body.dark .testimonial-card,
body.dark .solution-item,
body.dark .contact-item {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark .section-title h2 {
    color: #f0f0f0;
}

body.dark .section-title p {
    color: #aaa;
}

body.dark .intro-text h3 {
    color: #e0e0e0;
}

body.dark .intro-text p {
    color: #bbb;
}

body.dark .service-card h3,
body.dark .case-card .case-info h3,
body.dark .article-card h3,
body.dark .faq-question,
body.dark .solution-item h3,
body.dark .team-card h4,
body.dark .contact-item h4,
body.dark .howto-step .step-content h4 {
    color: #e0e0e0;
}

body.dark .service-card p,
body.dark .case-card .case-info p,
body.dark .article-card p,
body.dark .faq-answer,
body.dark .solution-item p,
body.dark .team-card p,
body.dark .contact-item p,
body.dark .howto-step .step-content p,
body.dark .testimonial-card p {
    color: #bbb;
}

body.dark .article-card .date {
    color: #888;
}

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

body.dark .faq-question:hover {
    background: #333;
}

body.dark .howto-section {
    background: #1e1e1e;
}

body.dark .friend-links {
    border-top-color: #333;
}

body.dark .friend-links a {
    color: #aaa;
}

body.dark .testimonial-card .author {
    color: #e0e0e0;
}

body.dark .solution-item {
    border-left-color: #f1c40f;
}

/* ===== Banner 渐变 ===== */
.banner {
    position: relative;
    overflow: hidden;
    height: 480px;
    background: linear-gradient(135deg, #2c3e50, #4a6fa5, #6a89cc);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    color: #fff;
    display: flex;
    align-items: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.2), transparent 60%);
    pointer-events: none;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    padding: 0 20px;
}

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

.banner-content {
    text-align: center;
    max-width: 800px;
    animation: fadeUp 1s ease both;
}

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

.banner-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.banner-content h1 span {
    color: #f1c40f;
}

.banner-content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.banner-btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner-indicators span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.banner-indicators span.active {
    background: #f1c40f;
    transform: scale(1.2);
}

/* ===== 通用标题 ===== */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e74c3c;
    border-radius: 4px;
}

.section-title p {
    color: #666;
    margin-top: 12px;
    font-size: 18px;
}

/* ===== 介绍区块 ===== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
    align-items: center;
}

.intro-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro-text p {
    margin-bottom: 16px;
    font-size: 17px;
    color: #444;
}

.intro-svg {
    text-align: center;
}

.intro-svg svg {
    max-width: 100%;
    height: auto;
}

/* ===== 产品/服务卡片 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.service-card svg {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.service-card p {
    color: #555;
    font-size: 15px;
}

body.dark .service-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .service-card:hover {
    background: rgba(42, 42, 42, 0.95);
}

/* ===== 解决方案 ===== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.solution-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #e74c3c;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.solution-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.solution-item p {
    color: #555;
    font-size: 15px;
}

body.dark .solution-item {
    background: #2a2a2a;
    border-left-color: #f1c40f;
}

/* ===== 案例 ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.case-card svg {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.case-card .case-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.case-card .case-info p {
    color: #666;
    font-size: 14px;
}

body.dark .case-card {
    background: #2a2a2a;
}

/* ===== 评价 ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-card::before {
    content: "\201C";
    font-size: 60px;
    color: #e74c3c;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
    font-family: Georgia;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
}

.testimonial-card .author {
    font-weight: 700;
    color: #2c3e50;
}

body.dark .testimonial-card {
    background: #2a2a2a;
}

/* ===== 文章 ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-card .date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.article-card p {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
}

.article-card .read-more {
    color: #e74c3c;
    font-weight: 700;
    font-size: 14px;
    transition: letter-spacing 0.2s;
}

.article-card .read-more:hover {
    letter-spacing: 1px;
}

body.dark .article-card {
    background: #2a2a2a;
}

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

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f7f9fc;
}

.faq-question .icon {
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
    color: #e74c3c;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
    color: #c0392b;
}

.faq-answer {
    padding: 0 25px 20px;
    color: #555;
    font-size: 16px;
    display: none;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    display: block;
}

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

body.dark .faq-question {
    color: #e0e0e0;
}

body.dark .faq-question:hover {
    background: #333;
}

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

/* ===== HowTo ===== */
.howto-section {
    background: #f0f4f8;
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
}

body.dark .howto-section {
    background: #1e1e1e;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.howto-step .step-num {
    font-size: 32px;
    font-weight: 900;
    color: #e74c3c;
    min-width: 60px;
}

.howto-step .step-content h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.howto-step .step-content p {
    color: #555;
    font-size: 15px;
}

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

/* ===== 团队 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.team-card svg {
    margin-bottom: 15px;
    border-radius: 50%;
}

.team-card h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 6px;
}

.team-card .role {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.team-card p {
    color: #666;
    font-size: 14px;
}

body.dark .team-card {
    background: #2a2a2a;
}

/* ===== 联系 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.contact-item svg {
    margin-bottom: 15px;
}

.contact-item h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-item p {
    color: #555;
    font-size: 15px;
}

body.dark .contact-item {
    background: #2a2a2a;
}

/* ===== 友情链接 ===== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    border-top: 1px solid #eee;
}

.friend-links a {
    color: #555;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}

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

body.dark .friend-links {
    border-top-color: #333;
}

body.dark .friend-links a {
    color: #aaa;
}

/* ===== 页脚 ===== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 4px solid #e74c3c;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f1c40f;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #95a5a6;
}

.footer-bottom a {
    color: #f1c40f;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 999;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.back-to-top:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

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

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

/* ===== 数字动画 ===== */
.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: #e74c3c;
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

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

    .banner {
        height: 360px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

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

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

    .section-title h2 {
        font-size: 28px;
    }

    .footer .container {
        grid-template-columns: 1fr 1fr;
    }

    body.dark .nav-links {
        background: rgba(30, 30, 30, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@media (max-width: 480px) {
    .banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 26px;
    }

    .container {
        padding: 0 15px;
    }

    .footer .container {
        grid-template-columns: 1fr;
    }
}