/* 全局重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}
body.dark-mode {
    background: #0a0a1a;
    color: #cfcfcf;
}
a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #ffed4a;
}
img, svg {
    max-width: 100%;
    display: block;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 标题装饰 */
h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    margin-top: 8px;
    border-radius: 4px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(15, 12, 41, 0.7);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    transition: background 0.3s;
}
body.dark-mode header {
    background: rgba(10, 10, 26, 0.85);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}
.logo a {
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    color: #ddd;
}
.nav-link:hover,
.nav-link.active {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}
.nav-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.nav-actions button {
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}
.nav-actions button:hover {
    background: rgba(255, 215, 0, 0.2);
}
.menu-toggle {
    display: none;
}
.search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(8px);
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.search-overlay.active {
    display: block;
}
.search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.search-box input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 30px;
    border: 1px solid #ffd700;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.search-box input::placeholder {
    color: #aaa;
}
.search-box button {
    padding: 12px 24px;
    border-radius: 30px;
    background: #ffd700;
    color: #1a1a2e;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.search-box button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Hero 区域 */
.hero-section {
    padding-top: 80px;
    position: relative;
}
.hero-banner svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 40px 40px;
}
.banner-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -40px;
    position: relative;
    z-index: 5;
}
.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    border: 2px solid #ffd700;
    transition: background 0.3s, transform 0.2s;
}
.banner-dot.active {
    background: #ffd700;
    transform: scale(1.2);
}
.banner-dot:hover {
    background: #ffd700;
}

/* 通用section间距 */
section {
    padding: 80px 0;
}
section:nth-child(even) {
    background: rgba(255, 215, 0, 0.02);
}

/* 卡片毛玻璃效果 */
.about-card,
.product-card,
.advantage-card,
.solution-card,
.industry-card,
.case-card,
.partner-card,
.testimonial-card,
.news-card,
.faq-item,
.step,
.contact-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 215, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.about-card:hover,
.product-card:hover,
.advantage-card:hover,
.solution-card:hover,
.industry-card:hover,
.case-card:hover,
.partner-card:hover,
.testimonial-card:hover,
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

/* 网格布局 */
.about-grid,
.products-grid,
.advantages-grid,
.solutions-grid,
.industry-grid,
.cases-grid,
.partners-grid,
.testimonials-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 产品卡片内SVG */
.product-card svg {
    margin: 0 auto 15px;
}

/* 合作伙伴 */
.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    font-weight: 600;
    color: #ffd700;
    font-size: 1.1rem;
}

/* 客户评价 */
.testimonial-card p {
    font-style: italic;
    margin-bottom: 10px;
}
.testimonial-card span {
    color: #ffd700;
    font-weight: 500;
}

/* 新闻卡片 */
.news-card h3 {
    margin-bottom: 10px;
}
.news-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: #ffd700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
.news-link:hover {
    border-bottom-color: #ffd700;
}
.related-articles {
    margin-top: 40px;
}
.related-articles ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}
.related-articles li a {
    padding: 8px 16px;
    background: rgba(255,215,0,0.1);
    border-radius: 20px;
    transition: background 0.2s;
}
.related-articles li a:hover {
    background: rgba(255,215,0,0.25);
}
.pagination {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}
.pagination a {
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.2);
    transition: background 0.2s;
}
.pagination a:hover {
    background: rgba(255,215,0,0.2);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}
.faq-item {
    padding: 0;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    color: #ffd700;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}
.faq-question:hover {
    background: rgba(255,215,0,0.05);
}
.faq-answer {
    display: none;
    padding: 20px 25px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,215,0,0.1);
}
.faq-answer p {
    color: #ccc;
}

/* HowTo步骤 */
.howto-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}
.step {
    flex: 1 1 200px;
    text-align: center;
    position: relative;
    padding: 30px 20px;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd700;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* 联系我们 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.contact-item h3 {
    color: #ffd700;
    margin-bottom: 8px;
}

/* 友情链接 & 网站地图 */
.friend-links,
.sitemap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.friend-links a,
.sitemap a {
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.15);
    transition: background 0.2s, border-color 0.2s;
}
.friend-links a:hover,
.sitemap a:hover {
    background: rgba(255,215,0,0.2);
    border-color: #ffd700;
}

/* Footer */
footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,215,0,0.1);
    padding: 40px 0;
    margin-top: 40px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.footer-info p {
    margin-bottom: 8px;
    color: #aaa;
}
.footer-legal {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-legal a {
    font-size: 0.9rem;
    color: #ccc;
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: #ffd700;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 999;
}
.back-to-top:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

/* 滚动动画 (IntersectionObserver配合) */
.product-card,
.advantage-card,
.case-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.product-card.visible,
.advantage-card.visible,
.case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 暗色模式微调 */
body.dark-mode .about-card,
body.dark-mode .product-card,
body.dark-mode .advantage-card,
body.dark-mode .solution-card,
body.dark-mode .industry-card,
body.dark-mode .case-card,
body.dark-mode .partner-card,
body.dark-mode .testimonial-card,
body.dark-mode .news-card,
body.dark-mode .faq-item,
body.dark-mode .step,
body.dark-mode .contact-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 215, 0, 0.08);
}
body.dark-mode .search-overlay {
    background: rgba(10, 10, 26, 0.98);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 12, 41, 0.95);
        backdrop-filter: blur(12px);
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid rgba(255,215,0,0.15);
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero-section {
        padding-top: 70px;
    }
    .hero-banner svg {
        height: auto;
        min-height: 300px;
    }
    h2 {
        font-size: 1.6rem;
    }
    .about-grid,
    .products-grid,
    .advantages-grid,
    .solutions-grid,
    .industry-grid,
    .cases-grid,
    .partners-grid,
    .testimonials-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
    .search-box {
        flex-direction: column;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    section {
        padding: 50px 0;
    }
    .nav-container {
        padding: 8px 15px;
    }
    .logo svg {
        width: 140px;
        height: auto;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
    .hero-banner svg {
        min-height: 250px;
    }
    h2 {
        font-size: 1.4rem;
    }
    .about-card,
    .product-card,
    .advantage-card,
    .solution-card,
    .industry-card,
    .case-card,
    .partner-card,
    .testimonial-card,
    .news-card {
        padding: 20px 18px;
    }
}