/* 夸克官网风格:浅色、大留白、黑字 + 黑色胶囊下载按钮(对齐 quark.cn 首屏气质) */

:root {
    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --line: rgba(0, 0, 0, 0.08);
    --blue: #2b7fff;
    --blue-dark: #1a6ae6;
    --bg: #fafbff;
    --card: #ffffff;
    --shadow-soft: 0 24px 80px rgba(80, 120, 200, 0.12);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --header-h: 64px;
    --max-w: 1200px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 10px 16px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

::selection {
    background: rgba(43, 127, 255, 0.18);
    color: var(--text);
}

/* 背景:淡蓝 + 淡紫弥散渐变 */
.bg-mesh {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(200, 220, 255, 0.75) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 85% 30%, rgba(235, 225, 255, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 10% 60%, rgba(220, 240, 255, 0.5) 0%, transparent 45%),
        linear-gradient(180deg, #f5f8ff 0%, #fafbff 45%, #f7f9fc 100%);
}

/* ========== 顶栏 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    min-width: 0;
}

.site-nav a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--text);
}

.header-platforms {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.platform-slot {
    position: relative;
}

.platform-trigger,
.platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.platform-trigger:hover,
.platform-link:hover {
    color: var(--text);
}

.platform-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.platform-trigger:hover .platform-ico,
.platform-link:hover .platform-ico {
    color: var(--text-secondary);
}

.platform-pop {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    padding: 20px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.platform-slot.has-pop:hover .platform-pop,
.platform-slot.has-pop:focus-within .platform-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.platform-pop-inner {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.qr-block span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.qr-block small {
    font-size: 12px;
    color: var(--text-muted);
}

.qr-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: repeating-linear-gradient(
        45deg,
        #f0f3f8,
        #f0f3f8 4px,
        #e8ecf4 4px,
        #e8ecf4 8px
    );
    border: 1px solid var(--line);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== 首屏 ========== */
main {
    padding-top: var(--header-h);
}

.hero-landing {
    padding: 48px 24px 56px;
}

.hero-landing-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-download-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.hero-meta a:hover {
    color: var(--blue);
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-pill--dark {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-pill--dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    background: #1a1a1a;
}

.btn-pill--ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-pill--ghost:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.btn-pill-ico {
    display: flex;
    opacity: 0.95;
}

.hero-figure {
    margin: 0;
    padding: 0 8px;
}

.hero-figure-frame {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 12px 0;
    background: linear-gradient(180deg, rgba(200, 225, 255, 0.45) 0%, rgba(230, 240, 255, 0.35) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-figure-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    vertical-align: middle;
}

.scroll-hint {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scroll-hint-arrow {
    font-size: 14px;
    animation: hint-bob 1.6s ease-in-out infinite;
}

@keyframes hint-bob {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* ========== 次级说明区 ========== */
.block-muted {
    padding: 56px 24px 64px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.section-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.device-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.chip {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--line);
}

.section-lead {
    font-size: 15px;
    color: var(--text-muted);
}

/* ========== 产品网格 ========== */
.products {
    background: var(--bg);
}

.product-block {
    padding: 72px 24px;
}

.product-block--alt {
    background: rgba(255, 255, 255, 0.65);
}

.product-header {
    max-width: 960px;
    margin: 0 auto 16px;
    text-align: center;
}

.product-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.product-intro {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.product-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(43, 127, 255, 0.2);
    transform: translateY(-2px);
}

.product-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ========== 对比表格 ========== */
.compare {
    padding: 72px 24px;
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.compare-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.compare-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.compare-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.compare-table-wrap {
    max-width: 960px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-width: 640px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.compare-table th {
    background: #f6f8fc;
    color: var(--text);
    font-weight: 600;
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
    text-align: center;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table .col-highlight {
    background: rgba(43, 127, 255, 0.05);
    color: var(--text);
    font-weight: 600;
}

.check {
    color: var(--blue);
    font-weight: 700;
}

.dash {
    color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq {
    padding: 72px 24px;
}

.faq-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.faq-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.faq-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
    border-color: rgba(43, 127, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.faq-question::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    content: "−";
    color: var(--blue);
}

.faq-answer {
    padding: 0 22px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.faq-answer a {
    color: var(--blue);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ========== 奖项 ========== */
.awards {
    padding: 72px 24px;
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid var(--line);
}

.awards-header {
    text-align: center;
    margin-bottom: 40px;
}

.awards-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.awards-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.award-item {
    padding: 20px 22px;
    background: var(--card);
    border-radius: 14px;
    border: 1px solid var(--line);
}

.award-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 6px;
}

.award-content p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 评价 ========== */
.reviews {
    padding: 72px 24px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.reviews-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.reviews-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.review-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.review-user {
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.user-title {
    font-size: 12px;
    color: var(--text-muted);
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ========== 反馈 ========== */
.feedback {
    padding: 56px 24px 72px;
    text-align: center;
    background: rgba(255, 255, 255, 0.45);
    border-top: 1px solid var(--line);
}

.feedback-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #000;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: background 0.2s, transform 0.2s;
}

.feedback-btn:hover {
    background: #222;
    transform: translateY(-1px);
}

/* ========== 页脚 ========== */
.site-footer {
    padding: 32px 24px 40px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.company-info {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
}

.company-info a {
    color: var(--text-muted);
    text-decoration: none;
}

.company-info a:hover {
    color: var(--blue);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-links span {
    color: var(--text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .site-header {
        height: auto;
    }

    .header-wrap {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 12px 16px;
        gap: 0 12px;
    }

    .brand {
        grid-column: 1;
    }

    .nav-toggle {
        display: flex;
        grid-column: 2;
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0 8px;
        border-top: 1px solid var(--line);
        margin-top: 12px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-platforms {
        display: none;
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: wrap;
        padding-bottom: 4px;
    }

    .header-platforms.is-open {
        display: flex;
    }

    .hero-landing {
        padding-top: 32px;
    }

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

@media (max-width: 480px) {
    .hero-download-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-pill {
        width: 100%;
    }
}

/* ========== 减少动效偏好 ========== */
@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;
    }
}
