/* 全局重置与基础样式 */
*,
*::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, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #212529;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e0e0e0;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #003d80;
}

body.dark a {
    color: #80bfff;
}

body.dark a:hover {
    color: #b3d9ff;
}

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

.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;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560 0%, #d63851 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

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

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

.btn-outline:hover {
    background: #e94560;
    color: #fff;
    transform: translateY(-3px);
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #d63851);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 700px;
}

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

/* 卡片通用样式 */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .card {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

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

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

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

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

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

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

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

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

/* 响应式基础 */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===== 头部导航 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.3s, background 0.3s;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .site-header {
    background: rgba(18, 18, 18, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.dark .site-header.sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: inline-block;
    transition: transform 0.3s;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-list a {
    font-weight: 500;
    color: #333;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    position: relative;
}

body.dark .nav-list a {
    color: #ddd;
}

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

.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

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

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

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

body.dark .menu-toggle .bar {
    background: #ddd;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 6px;
    transition: transform 0.3s, color 0.3s;
}

.theme-toggle:hover {
    transform: rotate(20deg);
    color: #e94560;
}

body.dark .theme-toggle {
    color: #ddd;
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s;
        border-radius: 0 0 16px 16px;
    }
    body.dark .main-nav {
        background: rgba(30, 30, 30, 0.98);
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .nav-list {
        flex-direction: column;
        gap: 16px;
    }
    .menu-toggle {
        display: flex;
    }
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.2) translate(-30px, 30px);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

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

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

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

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-badge {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-badge span {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background 0.3s;
}

.hero-badge span:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero {
        padding: 100px 0 50px;
        min-height: auto;
    }
}

/* ===== 关于 About ===== */
#about .card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: #e94560;
}

/* ===== 服务 Services ===== */
#services {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
}

body.dark #services {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

#services .card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

/* ===== 优势 Advantages ===== */
.advantage-item h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

/* ===== 资讯 Insights ===== */
#insights {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
}

body.dark #insights {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.insight-card time {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.insight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.insight-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

.insight-card a {
    font-weight: 600;
    color: #e94560;
    transition: color 0.2s, padding-left 0.2s;
}

.insight-card a:hover {
    color: #d63851;
    padding-left: 4px;
}

/* ===== HowTo 步骤 ===== */
.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .step {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.step h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

/* ===== FAQ 常见问题 ===== */
#faq {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
}

body.dark #faq {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: background 0.3s;
}

body.dark .faq-item {
    border-bottom-color: #333;
    background: rgba(30, 30, 30, 0.5);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

body.dark .faq-item:hover {
    background: rgba(30, 30, 30, 0.8);
}

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

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-icon {
    font-size: 1.4rem;
    transition: transform 0.3s;
    color: #e94560;
}

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

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

.faq-answer p {
    margin-bottom: 12px;
}

/* ===== 联系 Contact ===== */
.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.contact-info li::before {
    content: '•';
    color: #e94560;
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #495057;
}

body.dark .form-group label {
    color: #ccc;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

body.dark .form-group input,
body.dark .form-group textarea {
    background: rgba(42, 42, 42, 0.9);
    border-color: #444;
    color: #eee;
}

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

/* ===== 页脚 Footer ===== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #ccc;
    padding: 60px 0 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #ff6b6b, #e94560);
}

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

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

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

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #aaa;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    color: #e94560;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== 返回顶部按钮 ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.6);
}

/* ===== 滚动动画（通用） ===== */
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFadeIn 0.8s ease-out 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;
}
.section:nth-child(9) {
    animation-delay: 0.8s;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 卡片悬停微动效 ===== */
.card,
.insight-card,
.step {
    will-change: transform;
}

/* ===== 辅助类 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}