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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #121212;
    color: #e0e0e0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

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

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #e94560, #0f3460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}

nav a:hover {
    color: #e94560;
}

nav a:hover::after {
    width: 100%;
}

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

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

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

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

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    animation: pulse 6s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #e94560, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero .btn {
    display: inline-block;
    padding: 14px 40px;
    background: #e94560;
    color: #fff;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 40px;
}

.banner-slide {
    display: none;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.banner-slide.active {
    display: block;
    animation: fadeIn 0.8s;
}

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

.banner-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.banner-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

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

/* 模块通用 */
section {
    padding: 60px 0;
}

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

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

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

.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .card {
    background: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.grid {
    display: grid;
    gap: 30px;
}

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

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

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

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* 品牌介绍 */
.brand-intro {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

body.dark .brand-intro {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.brand-intro .grid-2 {
    align-items: center;
}

.brand-intro svg {
    width: 100%;
    max-height: 400px;
}

/* 企业介绍 */
.enterprise {
    background: #fff;
}

body.dark .enterprise {
    background: #181818;
}

/* 品牌历史 */
.history {
    background: #f9f9f9;
}

body.dark .history {
    background: #1a1a1a;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e94560;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e94560;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e94560;
}

.timeline-year {
    font-weight: 700;
    color: #e94560;
    font-size: 20px;
}

/* 团队 */
.team {
    background: #fff;
}

body.dark .team {
    background: #181818;
}

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

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

/* 产品中心 */
.products {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.products .card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.products .card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.products svg {
    width: 100%;
    max-height: 200px;
}

/* 产品优势 */
.advantages {
    background: #f5f5f5;
}

body.dark .advantages {
    background: #1a1a1a;
}

/* 解决方案 */
.solutions {
    background: #fff;
}

body.dark .solutions {
    background: #181818;
}

/* 行业应用 */
.industry {
    background: #f9f9f9;
}

body.dark .industry {
    background: #1a1a1a;
}

/* 案例展示 */
.cases {
    background: #fff;
}

body.dark .cases {
    background: #181818;
}

.cases svg {
    width: 100%;
    max-height: 250px;
    border-radius: 12px;
}

/* 合作伙伴 */
.partners {
    background: #f5f5f5;
}

body.dark .partners {
    background: #1a1a1a;
}

.partners .grid-4 svg {
    width: 100%;
    max-height: 80px;
}

/* 客户评价 */
.testimonials {
    background: #fff;
}

body.dark .testimonials {
    background: #181818;
}

.testimonials .card {
    position: relative;
}

.testimonials .card::before {
    content: '"';
    font-size: 60px;
    color: #e94560;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
}

/* 新闻资讯 */
.news {
    background: #f9f9f9;
}

body.dark .news {
    background: #1a1a1a;
}

/* 相关文章 */
.related-articles {
    background: #fff;
}

body.dark .related-articles {
    background: #181818;
}

/* FAQ */
.faq {
    background: #f5f5f5;
}

body.dark .faq {
    background: #1a1a1a;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    background: #fff;
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: 0.3s;
}

body.dark .faq-question {
    background: #2a2a2a;
}

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

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

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

body.dark .faq-answer {
    background: #2a2a2a;
}

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

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

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

/* HowTo */
.howto {
    background: #fff;
}

body.dark .howto {
    background: #181818;
}

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

.howto-step-number {
    width: 40px;
    height: 40px;
    background: #e94560;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* 联系我们 */
.contact {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #fff;
}

.contact .card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact .card:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* 友情链接 */
.friend-links {
    background: #f5f5f5;
    padding: 30px 0;
}

body.dark .friend-links {
    background: #1a1a1a;
}

.friend-links .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.friend-links a {
    color: #666;
    transition: color 0.3s;
}

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

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

/* 网站地图 */
.sitemap {
    background: #fff;
    padding: 30px 0;
}

body.dark .sitemap {
    background: #181818;
}

.sitemap .grid-4 {
    gap: 20px;
}

.sitemap h4 {
    margin-bottom: 15px;
    color: #e94560;
}

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

.sitemap a {
    color: #666;
    transition: color 0.3s;
}

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

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

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

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

footer a {
    color: #e94560;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

/* 暗黑模式切换 */
.dark-toggle {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    z-index: 999;
}

.dark-toggle:hover {
    transform: scale(1.1);
}

/* 响应式 */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #1a1a2e;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .dark-toggle {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 数字动画 */
.number-animate {
    display: inline-block;
    font-size: 48px;
    font-weight: 800;
    color: #e94560;
}

/* 面包屑 */
.breadcrumb {
    background: #f5f5f5;
    padding: 15px 0;
    font-size: 14px;
}

body.dark .breadcrumb {
    background: #1a1a1a;
}

.breadcrumb a {
    color: #666;
}

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

.breadcrumb span {
    color: #e94560;
}

/* 搜索入口 */
.search-entry {
    background: #fff;
    padding: 20px 0;
}

body.dark .search-entry {
    background: #181818;
}

.search-entry .container {
    display: flex;
    justify-content: center;
}

.search-entry input {
    width: 60%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 16px;
}

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

.search-entry button {
    padding: 12px 30px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.search-entry button:hover {
    background: #d6384e;
}

/* 相关推荐 */
.recommend {
    background: #f9f9f9;
    padding: 30px 0;
}

body.dark .recommend {
    background: #1a1a1a;
}

/* 上一篇下一篇 */
.prev-next {
    background: #fff;
    padding: 20px 0;
}

body.dark .prev-next {
    background: #181818;
}

.prev-next .container {
    display: flex;
    justify-content: space-between;
}

.prev-next a {
    color: #666;
    transition: color 0.3s;
}

body.dark .prev-next a {
    color: #aaa;
}

.prev-next a:hover {
    color: #e94560;
}