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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

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

ul {
    list-style: none;
}

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

/* ===== 容器与布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1a1a2e, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560, #0f3460);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.3);
}

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

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

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px 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);
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

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

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

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

/* ===== 面包屑 ===== */
.breadcrumb {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #f0c040;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: background 0.3s;
}

body.dark .navbar {
    background: rgba(15, 15, 35, 0.95);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f0c040;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

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

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

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

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

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

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

.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%),
        radial-gradient(circle at 70% 50%, rgba(15, 52, 96, 0.15) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero .btn-group {
    display: flex;
    gap: 20px;
}

.hero-banner {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 550px;
    z-index: 1;
}

.hero-banner svg {
    width: 100%;
    height: auto;
}

.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

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

.banner-indicators span.active {
    background: #e94560;
    transform: scale(1.3);
}

/* ===== 关于我们 ===== */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

body.dark .about-text p {
    color: #ccc;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e94560;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

/* ===== 品牌故事时间线 ===== */
.story-timeline {
    position: relative;
    padding-left: 40px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e94560, #0f3460);
}

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

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

body.dark .story-item::before {
    border-color: #0f0f23;
}

.story-year {
    font-weight: 700;
    color: #e94560;
    font-size: 1.1rem;
}

/* ===== 企业文化 ===== */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.culture-card {
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.culture-card:hover {
    border-color: #e94560;
    transform: translateY(-5px);
}

.culture-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.culture-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ===== 核心产品 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

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

body.dark .product-card {
    background: rgba(255, 255, 255, 0.05);
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 25px;
}

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

.product-card p {
    color: #666;
    margin-bottom: 15px;
}

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

/* ===== 产品优势 ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.advantage-card:hover {
    border-color: #f0c040;
    transform: translateY(-5px);
}

.advantage-card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* ===== 服务体系 ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.05), rgba(15, 52, 96, 0.05));
    border: 1px solid rgba(233, 69, 96, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: #e94560;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ===== 行业解决方案 ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.solution-card {
    position: relative;
    padding: 30px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    transition: all 0.3s;
}

.solution-card:hover {
    transform: scale(1.02);
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.solution-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 应用场景 ===== */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.scenario-card {
    padding: 30px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.scenario-card:hover {
    border-color: #f0c040;
}

.scenario-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* ===== 数据展示 ===== */
.data-section {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    text-align: center;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.data-item h3 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0c040, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.data-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 成功案例 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

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

body.dark .case-card {
    background: rgba(255, 255, 255, 0.05);
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card .card-body {
    padding: 25px;
}

.case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

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

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

/* ===== 合作客户 ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s;
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.client-logo svg {
    width: 100px;
    height: 50px;
}

/* ===== 客户评价 ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    padding: 30px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

body.dark .testimonial-card {
    background: rgba(255, 255, 255, 0.05);
}

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

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

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* ===== 新闻中心 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

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

body.dark .news-card {
    background: rgba(255, 255, 255, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 25px;
}

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

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

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

/* ===== 热门推荐 ===== */
.hot-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hot-article {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.hot-article:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hot-article .rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e94560;
    width: 40px;
}

/* ===== 常见问题 FAQ ===== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #666;
    padding-top: 10px;
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* ===== 使用指南 HowTo ===== */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.howto-step {
    text-align: center;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.howto-step h3 {
    margin-top: 10px;
    margin-bottom: 8px;
}

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

.contact-card {
    padding: 30px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: #e94560;
}

.contact-card svg {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 8px;
}

/* ===== 网站地图 ===== */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.sitemap-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #e94560;
}

.sitemap-col a {
    display: block;
    color: #666;
    margin-bottom: 8px;
    transition: color 0.3s;
}

body.dark .sitemap-col a {
    color: #bbb;
}

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

/* ===== 友情链接 ===== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links a {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    font-size: 0.9rem;
}

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

/* ===== 页脚 ===== */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer a {
    color: #f0c040;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #0f3460);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: none;
}

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

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

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

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

.search-modal input {
    width: 80%;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-modal .close-search {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ===== 滚动动画 ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式布局 ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-banner {
        display: none;
    }
    .hero .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        flex-direction: column;
    }
    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .data-item h3 {
        font-size: 2rem;
    }
}