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

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

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

a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s;
}

body.dark a {
    color: #e0e0e0;
}

a:hover {
    color: #f0c040;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #1a1a2e;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 192, 64, 0.4);
}

.btn:active {
    transform: scale(0.98);
}

/* 区块通用 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

/* 卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

body.dark .card {
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body.dark .card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

/* 网格与弹性布局 */
.grid {
    display: grid;
    gap: 30px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

body.dark header {
    background: rgba(15, 15, 26, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: inherit;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    transition: width 0.3s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: 0.3s;
}

body.dark .nav-toggle span {
    background: #e0e0e0;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.dark-toggle {
    background: none;
    border: 2px solid #f0c040;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    color: #1a1a2e;
}

body.dark .dark-toggle {
    color: #f0c040;
}

.dark-toggle:hover {
    background: #f0c040;
    color: #1a1a2e;
}

/* Hero 区域 */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

.hero-content {
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

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

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

.hero-indicators span.active {
    background: #f0c040;
    width: 30px;
    border-radius: 6px;
}

/* 通用模块 */
h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: #444;
}

body.dark .about-content {
    color: #bbb;
}

.values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.value-item {
    text-align: center;
    padding: 20px;
}

.value-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
    text-align: center;
    padding: 25px;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    background: #eee;
}

body.dark .team-card img {
    background: #333;
}

.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-card p {
    color: #777;
    font-size: 0.9rem;
}

body.dark .team-card p {
    color: #aaa;
}

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
    padding: 25px;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #f0c040;
}

.product-card p {
    color: #555;
}

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

.advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-item .num {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f0c040;
}

/* 统计数据 */
.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    color: #fff;
}

.stat-item .num {
    font-size: 2.8rem;
    font-weight: 700;
    color: #f0c040;
}

.stat-item p {
    color: #ccc;
    margin-top: 8px;
}

.cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.case-card {
    padding: 25px;
}

.case-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.case-card p {
    color: #666;
}

body.dark .case-card p {
    color: #bbb;
}

.partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: center;
    justify-items: center;
}

.partner-item {
    width: 120px;
    height: 60px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #888;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

body.dark .partner-item {
    background: #2a2a3e;
    color: #aaa;
}

.partner-item:hover {
    background: #f0c040;
    color: #1a1a2e;
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
    padding: 25px;
    position: relative;
}

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

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

body.dark .testimonial-card p {
    color: #bbb;
}

.testimonial-card .author {
    font-weight: 600;
    color: #1a1a2e;
}

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

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    padding: 25px;
}

.news-card .date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.news-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
}

body.dark .news-card p {
    color: #bbb;
}

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

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 18px 0;
    cursor: pointer;
    transition: background 0.3s;
}

body.dark .faq-item {
    border-bottom: 1px solid #333;
}

.faq-item:hover {
    background: rgba(240, 192, 64, 0.05);
}

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

.faq-question span {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

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

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

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

/* HowTo 步骤 */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step .step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.howto-step .step-content p {
    color: #666;
}

body.dark .howto-step .step-content p {
    color: #bbb;
}

/* 联系我们 */
.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.contact-item {
    padding: 20px;
    text-align: center;
}

.contact-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-item h4 {
    margin-bottom: 8px;
}

.contact-item p {
    color: #666;
}

body.dark .contact-item p {
    color: #bbb;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #888;
    margin-top: 70px;
}

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

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

.breadcrumb span {
    color: #f0c040;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
    background: #fff;
    color: #1a1a2e;
}

body.dark .search-bar input {
    background: #1a1a2e;
    border-color: #333;
    color: #e0e0e0;
}

.search-bar input:focus {
    border-color: #f0c040;
}

.search-bar button {
    padding: 12px 25px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #1a1a2e;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
}

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

/* 页脚 */
footer {
    background: #0f0f1a;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #f0c040;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-col ul li a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #f0c040;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom a {
    color: #888;
    margin: 0 8px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #f0c040;
}

/* 返回顶部 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #1a1a2e;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 192, 64, 0.5);
}

/* 搜索模态 */
#searchModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#searchModal.open {
    display: flex;
}

.search-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

body.dark .search-modal-content {
    background: #1a1a2e;
    color: #e0e0e0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-modal-content input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    margin-bottom: 20px;
    background: #f5f7fa;
    color: #1a1a2e;
}

body.dark .search-modal-content input {
    background: #0f0f1a;
    border-color: #333;
    color: #e0e0e0;
}

.search-results {
    list-style: none;
}

.search-results li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: color 0.3s;
}

body.dark .search-results li {
    border-bottom: 1px solid #333;
}

.search-results li:hover {
    color: #f0c040;
}

.search-modal-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.search-modal-close:hover {
    color: #1a1a2e;
}

body.dark .search-modal-close:hover {
    color: #e0e0e0;
}

/* EEAT 区块 */
.eeat-section {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
}

body.dark .eeat-section {
    background: #1a1a2e;
}

.eeat-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eeat-item {
    padding: 15px;
    background: rgba(240, 192, 64, 0.08);
    border-radius: 12px;
    text-align: center;
    transition: background 0.3s;
}

.eeat-item:hover {
    background: rgba(240, 192, 64, 0.15);
}

.eeat-item h4 {
    color: #f0c040;
    margin-bottom: 8px;
    font-size: 1rem;
}

.eeat-item p {
    font-size: 0.9rem;
    color: #666;
}

body.dark .eeat-item p {
    color: #bbb;
}

/* 文章内容 */
article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

article p {
    margin-bottom: 15px;
    color: #444;
}

body.dark article p {
    color: #bbb;
}

article h2,
article h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 懒加载 */
.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy.loaded {
    opacity: 1;
}

/* 滚动动画辅助 */
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        border-bottom: 1px solid #eee;
    }

    body.dark .nav-links {
        background: rgba(15, 15, 26, 0.95);
        border-bottom: 1px solid #333;
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

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

    .eeat-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

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

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

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

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

    .search-bar {
        flex-direction: column;
        align-items: center;
    }

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

    .search-bar button {
        width: 100%;
    }
}

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

.hero-content {
    animation: fadeInUp 1s ease;
}

/* 暗色模式下的额外适配 */
body.dark .card .btn {
    color: #1a1a2e;
}