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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
    position: relative;
    padding-bottom: 4px;
}

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

.nav-menu a:hover {
    color: #e94560;
    transform: translateY(-1px);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #e0e0e0;
    transition: 0.3s;
    display: block;
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* 主内容 */
main {
    padding-top: 60px;
}

section {
    padding: 4rem 1rem;
    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; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1.0s; }

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

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

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    margin-top: 8px;
    border-radius: 3px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

p {
    margin-bottom: 1rem;
    color: #b0b0b0;
    line-height: 1.7;
}

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

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

/* Hero 区域 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 70vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #e94560 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
    text-decoration: none;
    color: #fff;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: 2px solid #e94560;
    color: #e94560;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(233, 69, 96, 0.15);
    color: #ff6b81;
    border-color: #ff6b81;
    transform: translateY(-3px);
    text-decoration: none;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: rgba(30, 30, 50, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(42, 42, 64, 0.5);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card p {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.card h3 {
    position: relative;
    z-index: 1;
}

.card svg {
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.card:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* 下载区域 */
.download-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.note {
    font-size: 0.9rem;
    color: #707070;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 关于区域 */
.about-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.about-meta div {
    background: rgba(30, 30, 50, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 42, 64, 0.3);
    transition: transform 0.3s;
}

.about-meta div:hover {
    transform: translateY(-3px);
}

/* FAQ 手风琴 */
.faq-list details {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(42, 42, 64, 0.4);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-list details:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateX(4px);
}

.faq-list summary {
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.faq-list summary::after {
    content: '+';
    font-size: 1.2rem;
    color: #e94560;
    transition: transform 0.3s;
}

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

.faq-list details[open] summary {
    margin-bottom: 0.75rem;
}

.faq-list details[open] {
    background: rgba(30, 30, 50, 0.8);
}

.faq-list p {
    padding-left: 0.5rem;
    border-left: 2px solid #e94560;
    padding-left: 1rem;
    animation: slideDown 0.3s ease;
}

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

/* HowTo 步骤 */
.howto-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.howto-steps li {
    counter-increment: step;
    margin-bottom: 1rem;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(30, 30, 50, 0.5);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    border: 1px solid rgba(42, 42, 64, 0.3);
    position: relative;
    transition: all 0.3s;
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.howto-steps li:hover {
    transform: translateX(6px);
    border-color: rgba(233, 69, 96, 0.3);
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-info div {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 42, 64, 0.3);
    transition: all 0.3s;
}

.contact-info div:hover {
    transform: translateY(-3px);
    border-color: rgba(233, 69, 96, 0.3);
}

.contact-info strong {
    display: block;
    color: #e94560;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 用户评价 */
blockquote.card {
    font-style: italic;
    position: relative;
}

blockquote.card::before {
    content: '"';
    font-size: 3rem;
    color: #e94560;
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
}

blockquote.card p {
    padding-left: 1.5rem;
}

blockquote.card footer {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #b0b0b0;
    font-style: normal;
    border-top: 1px solid rgba(42, 42, 64, 0.3);
    padding-top: 0.75rem;
}

/* 知识中心 */
#knowledge .card a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e94560;
    transition: all 0.3s;
}

#knowledge .card a:hover {
    color: #ff6b81;
    transform: translateX(4px);
}

/* 页脚 */
footer {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(12px);
    padding: 2.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(42, 42, 64, 0.3);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #b0b0b0;
    font-size: 0.9rem;
    transition: color 0.2s;
    position: relative;
}

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

.footer-links a:hover {
    color: #e94560;
    text-decoration: none;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    color: #707070;
    font-size: 0.85rem;
}

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

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

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

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e94560, #ff6b81);
    border-radius: 4px;
}

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

/* 选中文本样式 */
::selection {
    background: rgba(233, 69, 96, 0.3);
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(15px);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 16px 16px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .nav-menu a:hover {
        background: rgba(233, 69, 96, 0.1);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: 50vh;
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        margin: 0 auto 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual svg {
        width: 280px;
        height: auto;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    section {
        padding: 3rem 1rem;
    }

    .about-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .howto-steps li {
        padding: 1rem 1rem 1rem 3.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-visual svg {
        width: 220px;
    }

    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .download-options {
        flex-direction: column;
        align-items: stretch;
    }

    .download-options .btn-primary, .download-options .btn-secondary {
        text-align: center;
    }
}

/* 暗色模式支持 - 基于 prefers-color-scheme */
@media (prefers-color-scheme: light) {
    body {
        background: #f0f2f5;
        color: #333;
    }

    header {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu a {
        color: #333;
    }

    .nav-toggle span {
        background: #333;
    }

    .hero {
        background: linear-gradient(135deg, #ffffff 0%, #f0f0f5 40%, #e8e8f0 70%, #ffffff 100%);
    }

    .hero-content h1 {
        background: linear-gradient(135deg, #1a1a2e 0%, #e94560 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    h1, h2, h3 {
        color: #1a1a2e;
    }

    h2::after {
        background: linear-gradient(90deg, #e94560, #ff6b81);
    }

    p {
        color: #555;
    }

    .card {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .card:hover {
        border-color: rgba(233, 69, 96, 0.3);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

    .faq-list details {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .faq-list summary {
        color: #1a1a2e;
    }

    .faq-list details[open] {
        background: rgba(255, 255, 255, 0.9);
    }

    .about-meta div {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .howto-steps li {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .contact-info div {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(0, 0, 0, 0.1);
    }

    footer {
        background: rgba(255, 255, 255, 0.9);
        border-top-color: rgba(0, 0, 0, 0.1);
    }

    .footer-links a {
        color: #555;
    }

    .copyright {
        color: #999;
    }

    .btn-secondary {
        border-color: #e94560;
        color: #e94560;
    }

    .btn-secondary:hover {
        background: rgba(233, 69, 96, 0.1);
    }

    blockquote.card footer {
        color: #777;
    }

    .note {
        color: #999;
    }

    ::-webkit-scrollbar-track {
        background: #f0f2f5;
    }

    ::selection {
        background: rgba(233, 69, 96, 0.2);
    }

    .hero::before {
        background: radial-gradient(circle, rgba(233, 69, 96, 0.05) 0%, transparent 60%);
    }
}

/* 暗色模式手动切换支持（如果未来需要） */
.dark-mode {
    background: #0f0f1a;
    color: #e0e0e0;
}

.dark-mode header {
    background: rgba(26, 26, 46, 0.85);
}

/* 打印样式 */
@media print {
    header, .back-to-top, .nav-toggle {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    section {
        opacity: 1;
        transform: none;
        animation: none;
        padding: 1rem 0;
    }

    .card, .faq-list details, .about-meta div, .contact-info div, .howto-steps li {
        background: #fff;
        border: 1px solid #ddd;
        backdrop-filter: none;
    }
}