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

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

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

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

/* 头部导航 */
header {
    background: #1a1a2e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.logo a {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #e94560;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-actions button:hover {
    background: rgba(255,255,255,0.1);
}

/* 搜索覆盖层 */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.search-overlay.open {
    display: flex;
}

.search-overlay form {
    display: flex;
    gap: 10px;
}

.search-overlay input {
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    width: 400px;
}

.search-overlay button {
    padding: 15px 25px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
}

/* 移动端导航 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1a1a2e;
        padding: 20px;
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .search-overlay input {
        width: 250px;
    }
}

/* Hero 区域 - 渐变Banner */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-banner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slide {
    display: none;
    align-items: center;
    gap: 40px;
}

.slide.active {
    display: flex;
}

.slide-content {
    flex: 1;
}

.slide-content h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #e94560;
    color: #fff;
}

.btn-primary:hover {
    background: #d63851;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #e94560;
}

.btn-secondary:hover {
    background: #e94560;
    color: #fff;
}

.hero-svg {
    flex: 1;
    max-width: 500px;
}

.banner-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.banner-controls button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-controls button:hover {
    background: #e94560;
}

.dots {
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: #e94560;
}

@media (max-width: 768px) {
    .slide {
        flex-direction: column;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .hero-svg {
        max-width: 100%;
    }
}

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

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e94560;
    margin: 15px auto 0;
    border-radius: 2px;
}

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

/* 圆角卡片样式 */
.about-card,
.product-card,
.solution-card,
.case-card,
.news-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark-mode .about-card,
body.dark-mode .product-card,
body.dark-mode .solution-card,
body.dark-mode .case-card,
body.dark-mode .news-card {
    background: #1e1e32;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.about-card:hover,
.product-card:hover,
.solution-card:hover,
.case-card:hover,
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.about-card h3,
.product-card h3,
.solution-card h3,
.case-card h3,
.news-card h3 {
    font-size: 22px;
    margin: 15px 0 10px;
}

.about-card p,
.product-card p,
.solution-card p,
.case-card p,
.news-card p {
    color: #666;
}

body.dark-mode .about-card p,
body.dark-mode .product-card p,
body.dark-mode .solution-card p,
body.dark-mode .case-card p,
body.dark-mode .news-card p {
    color: #aaa;
}

/* 产品优势与行业应用 - 毛玻璃效果 */
.product-advantages,
.industry-applications {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

body.dark-mode .product-advantages,
body.dark-mode .industry-applications {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-advantages ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.product-advantages ul li::before {
    content: '✓ ';
    color: #e94560;
    font-weight: bold;
}

/* 合作伙伴 */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* 客户评价 */
.testimonials blockquote {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
}

body.dark-mode .testimonials blockquote {
    background: #1e1e32;
}

.testimonials blockquote p {
    font-style: italic;
    margin: 10px 0;
}

.testimonials blockquote footer {
    color: #e94560;
    font-weight: 500;
}

/* 新闻 */
.news-card time {
    display: block;
    color: #999;
    margin: 10px 0;
}

.read-more {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
}

.related-articles {
    margin-top: 30px;
}

.related-articles ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.related-articles ul li a {
    color: #e94560;
    text-decoration: none;
}

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

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    padding: 18px 25px;
    background: #fff;
    border: none;
    border-radius: 12px;
    text-align: left;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: background 0.3s;
}

body.dark-mode .faq-question {
    background: #1e1e32;
    color: #e0e0e0;
}

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

body.dark-mode .faq-question:hover {
    background: #2a2a44;
}

.faq-icon {
    font-size: 22px;
    color: #e94560;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

body.dark-mode .faq-answer {
    background: #1e1e32;
}

.faq-answer p {
    padding: 15px 0;
}

/* 使用指南 */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
    list-style: decimal;
    padding-left: 30px;
}

.howto-steps li {
    margin-bottom: 15px;
    font-size: 17px;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 10px;
}

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

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #2a2a44;
    border-color: #444;
    color: #e0e0e0;
}

.contact-form button {
    padding: 12px 30px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 20px 0;
}

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

.breadcrumb li+li::before {
    content: '/ ';
    color: #999;
}

/* 友情链接与站点地图 */
.friend-links,
.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.friend-links li a,
.sitemap-links li a {
    color: #e94560;
    text-decoration: none;
}

/* EEAT 侧边栏 */
.sidebar-eeat {
    background: #fff;
    padding: 30px 0;
}

body.dark-mode .sidebar-eeat {
    background: #1e1e32;
}

.eeat-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

body.dark-mode .eeat-info p {
    color: #aaa;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand p {
    margin-top: 10px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 15px;
}

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

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

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #e94560;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom a {
    color: #e94560;
    text-decoration: none;
}

/* 返回顶部按钮 */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(233,69,96,0.4);
    z-index: 999;
    transition: transform 0.3s;
}

#back-to-top:hover {
    transform: scale(1.1);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    h2 {
        font-size: 28px;
    }
}