/* ===== 基础重置与变量 ===== */
:root {
    --primary: #ff6b35;
    --primary-hover: #e55a2b;
    --bg: #f8f9fa;
    --bg-alt: #ffffff;
    --text: #1a1a2e;
    --text-light: #555;
    --header-bg: #1a1a2e;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.05);
    --border-radius: 16px;
    --transition: 0.3s ease;
    --glass-bg: rgba(255,255,255,0.15);
    --glass-border: rgba(255,255,255,0.2);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.1);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1200px;
}

body.dark-mode {
    --bg: #0f0f1a;
    --bg-alt: #1a1a2e;
    --text: #e0e0e0;
    --text-light: #aaa;
    --header-bg: #0a0a14;
    --card-bg: #1a1a2e;
    --card-shadow: rgba(0,0,0,0.3);
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ===== 键盘快捷键提示 ===== */
kbd {
    background: var(--card-bg);
    border: 1px solid var(--text-light);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.9em;
}

/* ===== 头部导航 ===== */
header {
    background: var(--header-bg);
    color: #fff;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

nav ul {
    display: flex;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    position: relative;
    padding: 0.3rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

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

.dark-mode-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover,
.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
}

/* ===== Hero 主横幅 ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0a0a14 0%, #12121e 50%, #0a0a20 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,107,53,0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(255,107,53,0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 5%) rotate(3deg); }
}

.hero-slider {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.slide {
    display: none;
    animation: fadeInUp 0.6s ease forwards;
}

.slide.active {
    display: block;
}

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

.slide h1,
.slide h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-block;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.slider-controls {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    z-index: 2;
    position: relative;
}

.prev,
.next {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev:hover,
.next:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.dots {
    display: flex;
    gap: 0.6rem;
}

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

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255,255,255,0.6);
}

/* ===== 通用 Section 样式 ===== */
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFadeIn 0.8s ease forwards;
}

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

section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }
section:nth-of-type(7) { animation-delay: 0.7s; }
section:nth-of-type(8) { animation-delay: 0.8s; }
section:nth-of-type(9) { animation-delay: 0.9s; }
section:nth-of-type(10) { animation-delay: 1s; }

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== 特性卡片 ===== */
.features {
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    margin-top: 2rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--card-shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: rgba(255,107,53,0.2);
}

body.dark-mode .feature-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.feature-card svg {
    margin: 0 auto 1.2rem;
    width: 56px;
    height: 56px;
}

.feature-card h3 {
    margin: 0.8rem 0 0.6rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== 关于我们 ===== */
.about {
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--card-shadow);
    min-width: 160px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    display: block;
}

/* ===== 服务列表 ===== */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.service-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary);
}

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

body.dark-mode .service-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.service-item p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.service-item a {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.service-item a::after {
    content: '→';
    margin-left: 4px;
    transition: margin-left 0.2s;
}

.service-item a:hover::after {
    margin-left: 8px;
}

/* ===== 平台优势 ===== */
.advantages ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    padding: 0;
}

.advantages li {
    background: var(--card-bg);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--card-shadow);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.advantages li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.advantages li:hover {
    transform: translateX(5px);
    background: var(--bg-alt);
}

.advantages strong {
    color: var(--primary);
}

/* ===== 用户评价 ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

blockquote {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    margin: 0;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: transform 0.3s;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
}

blockquote:hover {
    transform: translateY(-4px);
}

blockquote p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

blockquote footer {
    color: var(--text-light);
    font-size: 0.9rem;
    background: none;
    padding: 0;
    margin: 0;
}

/* ===== 知识中心 ===== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-list article {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

body.dark-mode .article-list article:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.article-list h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.article-list h3 a {
    color: var(--text);
    transition: color 0.2s;
}

.article-list h3 a:hover {
    color: var(--primary);
}

.article-list p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== FAQ 手风琴 ===== */
.faq-list details {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--card-shadow);
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.faq-list details:hover {
    border-color: rgba(255,107,53,0.2);
}

.faq-list details[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(255,107,53,0.1);
}

.faq-list summary {
    font-weight: 600;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-list details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-list details p {
    padding-top: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    border-top: 1px solid rgba(255,107,53,0.1);
    margin-top: 0.5rem;
}

/* ===== HowTo ===== */
.howto ol {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--card-shadow);
    counter-reset: step;
    max-width: 700px;
    margin: 0 auto;
}

.howto li {
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
    counter-increment: step;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    line-height: 1.7;
}

.howto li::before {
    content: counter(step);
    background: var(--primary);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.howto li strong {
    color: var(--primary);
}

/* ===== 联系我们 ===== */
.contact address {
    font-style: normal;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact address p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.contact a {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s;
}

.contact a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ===== 页脚 ===== */
footer {
    background: var(--header-bg);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-links h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-info {
    text-align: right;
    font-size: 0.9rem;
}

.footer-info p {
    margin-bottom: 0.3rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

/* ===== 移动菜单 ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 5rem 2rem;
    text-align: center;
    animation: menuFadeIn 0.3s ease;
}

@keyframes menuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu ul {
    padding: 0;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.5rem;
    display: block;
    padding: 1rem 0;
    transition: color 0.2s, transform 0.2s;
}

.mobile-menu a:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.close-menu {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-menu:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    section {
        padding: 3rem 1.5rem;
    }
    
    .stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-inner {
        padding: 0.5rem 0;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 3rem 1.5rem 2.5rem;
        min-height: 400px;
    }
    
    .slide h1,
    .slide h2 {
        font-size: 1.6rem;
    }
    
    .slide p {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 280px;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .advantages ul {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }
    
    .hero {
        padding: 2rem 1rem 2rem;
        min-height: 350px;
    }
    
    .slide h1,
    .slide h2 {
        font-size: 1.3rem;
    }
    
    .feature-card {
        padding: 1.8rem 1.2rem;
    }
    
    .howto ol {
        padding: 1.5rem;
    }
}

/* ===== 减少运动偏好 ===== */
@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;
    }
    
    .slide {
        animation: none !important;
    }
    
    section {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .feature-card:hover,
    .service-item:hover,
    .article-list article:hover,
    blockquote:hover,
    .stat-item:hover {
        transform: none !important;
    }
}

/* ===== 打印样式 ===== */
@media print {
    header,
    .back-to-top,
    .mobile-menu,
    .slider-controls,
    .dark-mode-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    section {
        page-break-inside: avoid;
    }
}