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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #d63851;
}

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

ul {
    list-style: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
    transition: background 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: #e94560;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    padding: 8px 0;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

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

.nav a:hover {
    color: #e94560;
    text-decoration: none;
    transform: translateY(-2px);
}

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

.nav a.active {
    color: #e94560;
}

.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(233, 69, 96, 0.2);
        animation: slideDown 0.3s ease;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 英雄区 - 渐变Banner */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 100px 0 80px;
    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 8s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    animation: fadeInUp 1.2s ease;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: fadeInUp 1.4s ease;
}

.hero .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 48px;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease;
}

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

/* 网格布局 */
.grid {
    display: grid;
    gap: 32px;
}

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

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

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

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* 圆角卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.dark .card {
    background: #1e1e32;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #0f3460);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e94560, #0f3460);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
}

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

.card p {
    color: #555;
    line-height: 1.7;
}

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

/* 关于我们 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    animation: fadeInUp 0.8s ease;
}

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

/* 产品与服务卡片居中 */
.products .card, .services .card {
    text-align: center;
}

.products .card .card-icon, .services .card .card-icon {
    margin: 0 auto 16px;
}

/* 核心优势 */
.advantages .grid {
    text-align: center;
}

.advantages .card-icon {
    margin: 0 auto 16px;
}

/* 用户评价 */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .testimonial-card {
    background: #1e1e32;
}

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

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
    color: #444;
}

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

.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    color: #e94560;
}

/* 案例研究 */
.case-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .case-card {
    background: #1e1e32;
}

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

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

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

.case-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

/* 资讯与知识 */
.insights .card .meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

body.dark .insights .card .meta {
    color: #aaa;
}

.insights .card p {
    margin-bottom: 16px;
}

.insights .card a {
    color: #e94560;
    font-weight: 600;
    transition: color 0.3s ease;
}

.insights .card a:hover {
    color: #d63851;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
    transition: background 0.3s ease;
}

body.dark .faq-item {
    border-color: #333;
}

.faq-item:hover {
    background: rgba(233, 69, 96, 0.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: inherit;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #e94560;
}

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

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

.faq-answer {
    padding: 8px 0 16px;
    color: #555;
    line-height: 1.7;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.faq-item.active .faq-answer {
    display: block;
}

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

/* 操作指南 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.howto-step:hover {
    transform: translateX(10px);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.howto-step:hover::before {
    transform: scale(1.2);
}

.howto-step h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.howto-step p {
    color: #555;
    line-height: 1.6;
}

body.dark .howto-step p {
    color: #bbb;
}

/* 联系我们 */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.contact-info strong {
    color: #e94560;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
}

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

@media (max-width: 768px) {
    .footer .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e94560;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer a:hover {
    color: #e94560;
    transform: translateX(5px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 32px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 4px;
}

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

.back-to-top.visible {
    display: flex;
}

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

/* 暗色模式切换 */
.dark-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background 0.3s ease, transform 0.3s ease;
}

body.dark .dark-toggle {
    background: #e94560;
}

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

/* Banner 轮播 */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.banner-slide {
    padding: 48px;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.banner-slide h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.banner-slide p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.banner-dots button.active {
    background: #e94560;
    border-color: #e94560;
    transform: scale(1.3);
}

.banner-dots button:hover {
    transform: scale(1.2);
}

/* 统计数字 */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e94560;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
}

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

/* 搜索框 */
.search-box {
    max-width: 500px;
    margin: 0 auto 48px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

body.dark .search-box input {
    background: #1e1e32;
    border-color: #333;
    color: #fff;
}

.search-box input:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

body.dark .search-results {
    background: #1e1e32;
}

.search-results.show {
    display: block;
}

.search-results a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

body.dark .search-results a {
    color: #ddd;
    border-color: #333;
}

.search-results a:hover {
    background: #f8f9fa;
    text-decoration: none;
}

body.dark .search-results a:hover {
    background: #2a2a40;
}

/* 滚动高亮 */
.scroll-highlight {
    transition: background 0.3s ease, padding 0.3s ease;
}

.scroll-highlight.active {
    background: rgba(233, 69, 96, 0.05);
    padding-left: 16px;
    border-left: 4px solid #e94560;
}

/* 响应式微调 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .banner-slide h2 {
        font-size: 1.5rem;
    }
    .banner-slide p {
        font-size: 1rem;
    }
}

/* 滚动动画支持 */
@media (prefers-reduced-motion: no-preference) {
    .section {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
    }

    .section:nth-child(2) { animation-delay: 0.1s; }
    .section:nth-child(3) { animation-delay: 0.2s; }
    .section:nth-child(4) { animation-delay: 0.3s; }
    .section:nth-child(5) { animation-delay: 0.4s; }
    .section:nth-child(6) { animation-delay: 0.5s; }
    .section:nth-child(7) { animation-delay: 0.6s; }
    .section:nth-child(8) { animation-delay: 0.7s; }
}

/* 暗色模式适配 */
body.dark .header {
    background: rgba(15, 15, 26, 0.95);
}

body.dark .hero {
    background: linear-gradient(135deg, #0f0f1a, #16213e, #0a0a1a);
}

body.dark .footer {
    background: #0f0f1a;
}