/* Microsoft-inspired Modern Design */
:root {
    --primary: #0067B8;
    --primary-hover: #005A9E;
    --accent: #00C7B7;
    --bg: #FFFFFF;
    --bg-alt: #F5F5F5;
    --text: #1F1F1F;
    --text-secondary: #605E5C;
    --border: #EDEBE9;
    --shadow: 0 3.2px 7.2px 0 rgba(0,0,0,0.132), 0 0.6px 1.8px 0 rgba(0,0,0,0.108);
    --max-width: 1600px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: background 0.3s ease, border-bottom-color 0.3s ease, box-shadow 0.3s ease, -webkit-backdrop-filter 0.3s ease, backdrop-filter 0.3s ease;
}

.header.header-transparent {
    /* 滚动时使用毛玻璃效果：既保留导航区域，又能看到下层内容 */
    /* 参考 Rinro 网站实现：适度的透明度和模糊效果 */
    background: rgba(255,255,255,0.65);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom-color: rgba(237,235,233,0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    /* 顶部主视觉背景：由原来的纯蓝色改为紫色渐变 */
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%);
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(20px, 2vw, 28px);
    margin-bottom: 48px;
    opacity: 0.95;
}

.buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Download Section */
.download-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.download-section h2 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
}

.card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    padding: 48px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,103,184,0.15);
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FCFF 100%);
}

.card .icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-download {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--primary-hover);
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
}

.features-section h2 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    padding: 40px 32px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,103,184,0.12);
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FCFF 100%);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Section Enhancements */
.feature-list {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: '✓';
    color: #107C10;
    font-weight: 700;
    font-size: 16px;
}

.qr-placeholder {
    font-size: 80px;
    color: var(--text-muted);
}

.qr-hint {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Content Section (EULA & Guide) */
.content-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #F0F4FF 0%, #E8F1FF 100%);
}

.content-section.alt {
    background: linear-gradient(180deg, #F9F0FF 0%, #F3E8FF 100%);
}

.content-section h2 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
}

.content-box h3 {
    font-size: 28px;
    margin: 40px 0 20px 0;
    color: var(--text);
}

.content-box h3:first-child {
    margin-top: 0;
}

.content-box p {
    line-height: 1.8;
    margin: 16px 0;
    color: var(--text-secondary);
}

.content-box ul {
    margin: 16px 0;
    padding-left: 24px;
}

.content-box li {
    margin: 12px 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.notice-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,103,184,0.08);
    border: 1px solid rgba(0,103,184,0.1);
    border-left: 4px solid var(--primary);
}

.warning-box {
    background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%);
    border-left: 4px solid #DC2626;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.1);
    border-left: 4px solid #DC2626;
}

.warning-box ul {
    margin-top: 12px;
}

.more-link {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

.more-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.more-link a:hover {
    opacity: 0.8;
}

/* Guide Steps */
.guide-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.guide-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.guide-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.guide-steps strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.guide-item {
    padding: 24px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.guide-item:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guide-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.guide-item p {
    font-size: 14px;
    margin: 0;
}

/* FAQ */
.faq {
    margin: 32px 0;
}

.faq details {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.faq details:hover {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.faq summary {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.faq details[open] summary {
    margin-bottom: 16px;
    color: var(--primary);
}

.faq p {
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0067B8 0%, #0078D4 50%, #1890FF 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 48px;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #F5F5F5 0%, #FAFAFA 100%);
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    white-space: nowrap;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--text);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}

/* Active Navigation */
nav a.active {
    color: var(--primary);
    font-weight: 600;
}

/* WeChat Contact Modal */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wechat-modal.active {
    display: flex;
    opacity: 1;
}

.wechat-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.wechat-modal.active .wechat-modal-content {
    transform: scale(1);
}

.wechat-modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.wechat-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.wechat-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.wechat-modal-body {
    padding: 32px;
    text-align: center;
}

.wechat-qr-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin: 0 auto 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wechat-qr-code {
    width: 240px;
    height: 240px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.wechat-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.wechat-qr-code::before {
    display: none;
}

.wechat-logo {
    display: none;
}

.wechat-qr-placeholder {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.wechat-modal-body p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.wechat-modal-footer {
    padding: 0 32px 32px;
    text-align: center;
}

.wechat-modal-close {
    display: inline-block;
    padding: 12px 48px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.wechat-modal-close:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 103, 184, 0.3);
}

@media (max-width: 768px) {
    .wechat-modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .wechat-modal-header {
        padding: 24px 24px 20px;
    }

    .wechat-modal-header h3 {
        font-size: 20px;
    }

    .wechat-modal-body {
        padding: 24px;
    }

    .wechat-qr-code {
        width: 200px;
        height: 200px;
    }

    .wechat-modal-footer {
        padding: 0 24px 24px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 70vh;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .download-section {
        padding: 80px 0;
    }

    .content-box {
        padding: 32px 24px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .features-section,
    .download-section,
    .content-section,
    .cta-section {
        padding: 80px 0;
    }
}
