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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* 头部导航 */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark header {
    background: linear-gradient(135deg, #0a0a15, #101020);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

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

.logo svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.logo:hover svg {
    transform: rotate(-5deg);
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: #e94560;
    transition: transform 0.3s;
    border-radius: 1px;
}

.nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-1px);
}

.nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: #888;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background: rgba(26,26,46,0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }
    body.dark .nav {
        background: rgba(10,10,21,0.95);
    }
    .nav.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .nav a {
        padding: 10px 15px;
        border-radius: 8px;
    }
    .nav a::after {
        display: none;
    }
}

.search-box {
    display: flex;
    gap: 6px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1f1f3a;
    color: #fff;
    width: 180px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.search-box button {
    padding: 8px 14px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.search-box button:hover {
    background: #d63850;
    transform: scale(1.02);
}

.dark-toggle {
    background: none;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.dark-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: #888;
    transform: rotate(15deg);
}

/* Hero / Banner */
.hero {
    background: linear-gradient(135deg, #0f3460, #533483);
    color: #fff;
    padding: 60px 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 at 30% 50%, rgba(233,69,96,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(83,52,131,0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

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

body.dark .hero {
    background: linear-gradient(135deg, #0a0a20, #2a1a40);
}

.hero h1 {
    font-size: 2.8rem;
    margin: 0 0 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero .cta {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.hero .cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(233,69,96,0.4);
    background: #d63850;
}

/* 通用节 */
.section {
    padding: 50px 0;
    border-bottom: 1px solid #e0e0e8;
}

body.dark .section {
    border-bottom-color: #2a2a3a;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e94560;
    margin: 10px auto 0;
    border-radius: 2px;
    transition: width 0.4s;
}

.section-title:hover::after {
    width: 100px;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

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

/* 卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.9);
}

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

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

body.dark .card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.card h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.card h4 {
    font-size: 1.1rem;
    margin: 10px 0 5px;
}

/* FAQ */
.faq-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.9);
}

body.dark .faq-item {
    background: rgba(26,26,46,0.9);
}

.faq-item:hover {
    background: #f0f0f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.dark .faq-item:hover {
    background: #22223a;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 10px;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 15px 10px 5px;
}

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

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.article-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.9);
}

body.dark .article-card {
    background: rgba(26,26,46,0.9);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.article-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    transition: color 0.2s;
}

.article-card:hover h3 {
    color: #e94560;
}

.article-card .meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.article-card p {
    margin: 0 0 12px;
}

.read-more {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.read-more:hover {
    color: #d63850;
    padding-left: 5px;
}

/* HowTo 步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: #e94560;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

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

.footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

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

.footer-grid h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin-bottom: 6px;
}

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

.back-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(233,69,96,0.4);
}

/* 横幅轮播 */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    height: 380px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    transition: opacity 0.8s, transform 0.8s;
    opacity: 0;
    transform: scale(1.05);
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner-slide:nth-child(1) {
    background: linear-gradient(135deg, #0f3460, #533483);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #16213e, #0f3460);
}

/* 统计数字 */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e94560;
    display: inline-block;
}

/* 面包屑 */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    padding: 10px 0;
}

.breadcrumb a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #d63850;
}

.breadcrumb span {
    margin: 0 5px;
}

/* EEAT信息 */
.eeat-info {
    background: #f9f9ff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(249,249,255,0.9);
    transition: box-shadow 0.3s;
}

.eeat-info:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.dark .eeat-info {
    background: rgba(26,26,46,0.9);
}

.eeat-info p {
    margin: 6px 0;
}

/* 标签 */
.tag {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 5px;
    transition: background 0.2s;
}

.tag:hover {
    background: #d63850;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* 客户标志 */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.client-logo {
    background: #eee;
    border-radius: 10px;
    padding: 15px 25px;
    font-weight: 600;
    color: #333;
    transition: transform 0.2s, box-shadow 0.3s, background 0.2s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(238,238,238,0.9);
}

body.dark .client-logo {
    background: rgba(42,42,58,0.9);
    color: #ccc;
}

.client-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* 新闻订阅 */
.newsletter {
    background: #e94560;
    color: #fff;
    padding: 40px;
    border-radius: 14px;
    text-align: center;
    transition: box-shadow 0.3s;
    box-shadow: 0 8px 30px rgba(233,69,96,0.2);
}

.newsletter:hover {
    box-shadow: 0 12px 40px rgba(233,69,96,0.3);
}

.newsletter input {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    width: 300px;
    max-width: 80%;
    margin-right: 10px;
    transition: box-shadow 0.3s;
}

.newsletter input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter button {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.newsletter button:hover {
    background: #2a2a4e;
    transform: scale(1.02);
}

/* 地图SVG占位 */
.map-svg {
    width: 100%;
    height: auto;
    max-height: 300px;
}

.map-svg svg {
    width: 100%;
    height: 100%;
}

/* 额外细节 */
::selection {
    background: #e94560;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d63850;
}

/* 响应式微调 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .banner-slider {
        height: 250px;
    }
    .banner-slide {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .newsletter {
        padding: 20px;
    }
}