/* === 全局重置 & 基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* === 渐变色 & 玻璃拟态 & 通用组件 === */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #e94560, #0f3460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #e94560, #0f3460);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

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

body.dark .card {
    background: #2d2d4a;
}

/* === 导航栏 === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e94560;
    border-radius: 2px;
}

.dark-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.dark-toggle:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.2);
}

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero .btn-outline:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
}

/* === 轮播 === */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1000px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 60px 40px;
    background: linear-gradient(135deg, #2d2d4a, #1a1a2e);
    color: #fff;
    text-align: center;
    border-radius: 20px;
}

.carousel-slide h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.carousel-slide p {
    color: rgba(255, 255, 255, 0.7);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(233, 69, 96, 0.5);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

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

.carousel-dot.active {
    background: #e94560;
}

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

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #e94560, #0f3460);
    margin: 12px auto 0;
    border-radius: 2px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

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

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

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

/* === 品牌介绍 === */
.brand-intro {
    background: #fff;
}

body.dark .brand-intro {
    background: #2d2d4a;
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-text {
    flex: 1;
    min-width: 300px;
}

.brand-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.brand-text p {
    color: #636e72;
    margin-bottom: 16px;
    font-size: 16px;
}

body.dark .brand-text p {
    color: #b2bec3;
}

.brand-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, #e94560, #0f3460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #636e72;
    font-size: 14px;
}

body.dark .stat-label {
    color: #b2bec3;
}

.brand-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

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

/* === 产品中心 === */
.product-center {
    background: #f8f9fa;
}

body.dark .product-center {
    background: #1a1a2e;
}

.product-card {
    text-align: center;
    padding: 32px 20px;
}

.product-card svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-card p {
    color: #636e72;
    font-size: 14px;
}

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

/* === 企业介绍 === */
.enterprise {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
}

.enterprise .section-title::after {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
}

.enterprise-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.enterprise-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
}

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

body.dark .team {
    background: #2d2d4a;
}

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

.team-card svg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.team-card h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

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

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

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

body.dark .solutions {
    background: #1a1a2e;
}

.solution-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
}

.solution-item svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.solution-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.solution-item p {
    color: #636e72;
    font-size: 14px;
}

body.dark .solution-item p {
    color: #b2bec3;
}

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

body.dark .cases {
    background: #2d2d4a;
}

.case-card {
    overflow: hidden;
}

.case-card svg {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 16px;
}

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

.case-card p {
    color: #636e72;
    font-size: 14px;
}

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

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

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

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-logos svg {
    width: 100px;
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.partner-logos svg:hover {
    opacity: 1;
}

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

body.dark .testimonials {
    background: #2d2d4a;
}

.testimonial-card {
    text-align: center;
    padding: 32px 20px;
}

.testimonial-card svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #636e72;
    margin-bottom: 16px;
    font-size: 15px;
}

body.dark .testimonial-card blockquote {
    color: #b2bec3;
}

.testimonial-card cite {
    font-weight: 600;
    color: #2d3436;
}

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

/* === 新闻 === */
.news {
    background: #f8f9fa;
}

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

.news-card {
    padding: 20px;
}

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

.news-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-card p {
    color: #636e72;
    font-size: 14px;
}

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

/* === FAQ === */
.faq {
    background: #fff;
}

body.dark .faq {
    background: #2d2d4a;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 0;
}

body.dark .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.faq-question span {
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    color: #636e72;
    font-size: 14px;
    padding-top: 0;
}

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

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

/* === 联系我们 === */
.contact {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
}

.contact .section-title::after {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
}

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

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

.contact-item svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

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

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* === 相关推荐/文章 === */
.related {
    background: #f8f9fa;
}

body.dark .related {
    background: #1a1a2e;
}

.related-card {
    padding: 20px;
}

.related-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.related-card p {
    color: #636e72;
    font-size: 13px;
}

body.dark .related-card p {
    color: #b2bec3;
}

/* === 友情链接 === */
.friend-links {
    background: #fff;
    padding: 40px 0;
}

body.dark .friend-links {
    background: #2d2d4a;
}

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

.friend-links a {
    color: #636e72;
    font-size: 14px;
    transition: color 0.3s;
}

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

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

/* === 网站地图 === */
.sitemap {
    background: #f8f9fa;
    padding: 40px 0;
}

body.dark .sitemap {
    background: #1a1a2e;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.sitemap-grid h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #2d3436;
}

body.dark .sitemap-grid h4 {
    color: #e0e0e0;
}

.sitemap-grid a {
    display: block;
    color: #636e72;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.3s;
}

body.dark .sitemap-grid a {
    color: #b2bec3;
}

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

/* === Footer === */
footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
}

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

footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}

footer a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.3s;
}

footer a:hover {
    color: #e94560;
}

footer .copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
}

/* === 返回顶部 === */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #0f3460);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

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

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

.search-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
}

body.dark .search-modal-content {
    background: #2d2d4a;
    color: #e0e0e0;
}

.search-modal input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
    background: #f8f9fa;
}

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

.search-modal input:focus {
    border-color: #e94560;
}

.search-modal .close-search {
    margin-top: 16px;
    display: block;
    text-align: center;
    color: #636e72;
    cursor: pointer;
}

/* === 响应式 === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        padding: 20px;
        gap: 16px;
    }

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

    .hamburger {
        display: flex;
    }

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

    .hero p {
        font-size: 16px;
    }

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

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

    .brand-content {
        flex-direction: column;
    }

    .brand-stats {
        justify-content: center;
    }

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

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

    .container {
        padding: 0 12px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* === 动画 === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

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