/* 千知 App 介绍页 — 原型一比一复刻 */

.page-qianzhi {
    --qz-green: #287D54;
    --qz-green-dark: #1A5336;
    --qz-green-light: #edf7f1;
    --qz-green-soft: #d4ebe0;
    --qz-ink: #111827;
    --qz-muted: #6b7280;
    --qz-border: #e5e7eb;
    --qz-bg: #ffffff;
    --qz-max: 1120px;
    background: var(--qz-bg);
    color: var(--qz-ink);
}

/* 二级锚点导航 */
.qz-subnav {
    position: sticky;
    top: 57px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--qz-border);
    backdrop-filter: blur(8px);
}

.qz-subnav-inner {
    max-width: var(--qz-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.qz-subnav a {
    display: inline-block;
    padding: 0.85rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--qz-muted);
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.qz-subnav a:hover {
    color: var(--qz-ink);
}

.qz-subnav a.is-active {
    color: var(--qz-green);
    font-weight: 600;
    border-bottom-color: var(--qz-green);
}

/* Hero */
.qz-main {
    flex: 1;
}

.qz-hero {
    max-width: var(--qz-max);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.qz-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    align-items: center;
}

.qz-hero-content {
    min-width: 0;
}

.qz-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: block;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(40, 125, 84, 0.2);
}

.qz-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qz-hero-meta {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--qz-muted);
}

.qz-hero-meta li strong {
    color: var(--qz-ink);
}

.qz-hero-title {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--qz-ink);
    letter-spacing: -0.02em;
}

.qz-hero-tagline {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--qz-muted);
}

.qz-hero-desc {
    margin: 0 0 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--qz-muted);
    max-width: 420px;
}

.qz-hero-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.qz-platform-download,
.qz-ios-download {
    text-align: center;
    flex-shrink: 0;
}

.qz-platform-download__qr,
.qz-ios-download__qr {
    width: 108px;
    height: 108px;
    border-radius: 12px;
    border: 1px solid var(--qz-border);
    background: #fff;
    object-fit: contain;
}

.qz-platform-download__hint,
.qz-ios-download__hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--qz-muted);
}

.qz-hero-btns__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.qz-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s;
}

.qz-dl-btn--android {
    background: var(--qz-green);
    color: #fff !important;
}

.qz-dl-btn--android:hover {
    filter: brightness(0.95);
    color: #fff !important;
    text-decoration: none;
}

.qz-dl-btn--android:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.qz-dl-btn--ios {
    background: #111827;
    color: #fff !important;
}

.qz-dl-btn--ios:hover {
    background: #1f2937;
    color: #fff !important;
    text-decoration: none;
}

.qz-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.qz-hero-phone-wrap {
    position: relative;
    z-index: 2;
}

.qz-float-icon {
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.25));
}

.qz-float-icon--chat {
    top: 8%;
    left: 5%;
    animation: qz-float 4s ease-in-out infinite;
}

.qz-float-icon--play {
    top: 18%;
    right: 0;
    animation: qz-float 4.5s ease-in-out infinite 0.5s;
}

.qz-float-icon--star {
    bottom: 15%;
    left: 0;
    animation: qz-float 3.8s ease-in-out infinite 1s;
}

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

/* 手机框架 */
.qz-phone {
    width: 200px;
    background: #111827;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.qz-phone--sm {
    width: 168px;
    border-radius: 22px;
    padding: 8px;
}

.qz-phone--lg {
    width: 220px;
}

.qz-phone__screen {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    min-height: 360px;
}

.qz-phone--sm .qz-phone__screen {
    border-radius: 16px;
    min-height: 300px;
}

.qz-phone--lg .qz-phone__screen {
    min-height: 400px;
}

.qz-phone__notch {
    height: 22px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--qz-ink);
    border-bottom: 1px solid #f3f4f6;
}

.qz-phone__body {
    padding: 0;
    font-size: 0.55rem;
}

/* 手机 UI — 推荐页 */
.qz-ui-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.5rem;
}

.qz-ui-tabs span {
    color: var(--qz-muted);
    padding-bottom: 0.2rem;
}

.qz-ui-tabs span.is-active {
    color: var(--qz-green);
    font-weight: 700;
    border-bottom: 2px solid var(--qz-green);
}

.qz-ui-video {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qz-ui-video__play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qz-ui-video__play svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    margin-left: 2px;
}

.qz-ui-meta {
    padding: 0.45rem 0.5rem;
}

.qz-ui-meta__user {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.qz-ui-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--qz-green-soft);
}

.qz-ui-meta__name {
    font-weight: 600;
    color: var(--qz-ink);
    font-size: 0.52rem;
}

.qz-ui-meta__text {
    margin: 0;
    color: var(--qz-muted);
    line-height: 1.4;
    font-size: 0.48rem;
}

.qz-ui-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-top: 1px solid #f3f4f6;
    color: var(--qz-muted);
    font-size: 0.48rem;
}

/* 手机 UI — 详情页 */
.qz-ui-detail-video {
    height: 140px;
    background: linear-gradient(135deg, #4b5563, #1f2937);
}

.qz-ui-comments {
    padding: 0.4rem 0.5rem;
}

.qz-ui-comment {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
    font-size: 0.46rem;
    line-height: 1.35;
}

/* 手机 UI — 关注列表 */
.qz-ui-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #f9fafb;
}

.qz-ui-follow-btn {
    font-size: 0.42rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: var(--qz-green);
    color: #fff;
    border: none;
}

/* 手机 UI — 发布页 */
.qz-ui-upload {
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.qz-ui-upload-box {
    height: 80px;
    border: 2px dashed var(--qz-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qz-muted);
    margin-bottom: 0.5rem;
    font-size: 0.48rem;
}

.qz-ui-upload-btn {
    width: 100%;
    padding: 0.35rem;
    border-radius: 8px;
    background: var(--qz-green);
    color: #fff;
    border: none;
    font-size: 0.48rem;
    font-weight: 600;
}

/* 手机 UI — 我的 */
.qz-ui-profile-head {
    padding: 0.6rem 0.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--qz-green-light), #fff);
}

.qz-ui-profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--qz-green);
    margin: 0 auto 0.35rem;
}

.qz-ui-stats {
    display: flex;
    justify-content: space-around;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.44rem;
}

.qz-ui-stats strong {
    display: block;
    color: var(--qz-ink);
    font-size: 0.52rem;
}

.qz-ui-menu-item {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #f9fafb;
    font-size: 0.48rem;
    color: var(--qz-ink);
}

/* 通用区块 */
.qz-section {
    padding: 3rem 1.5rem;
}

.qz-section--gray {
    background: #f9fafb;
}

.qz-section-inner {
    max-width: var(--qz-max);
    margin: 0 auto;
}

.qz-section-title {
    margin: 0 0 2rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--qz-ink);
    text-align: center;
}

/* 功能亮点 5 列 */
.qz-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.qz-feature-card {
    background: #fff;
    border: 1px solid var(--qz-border);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.qz-section--gray .qz-feature-card {
    background: #fff;
}

.qz-feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.qz-feature-card__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    background: var(--qz-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qz-green);
}

.qz-feature-card h3 {
    margin: 0 0 0.45rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--qz-ink);
}

.qz-feature-card p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--qz-muted);
}

/* App 预览 5 手机 */
.qz-preview-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.qz-preview-item {
    text-align: center;
}

.qz-phone--shot .qz-phone__screen {
    padding: 0;
    min-height: auto;
    border-radius: 18px;
    overflow: hidden;
}

.qz-phone__shot {
    width: 100%;
    height: auto;
    display: block;
}

/* App 预览截图 */
.qz-preview-note {
    margin: -0.75rem 0 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--qz-muted);
}

.qz-shot-card {
    width: 156px;
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid #1a1a2e;
    background: #1a1a2e;
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.14);
}

.qz-shot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.qz-preview-label {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--qz-ink);
    max-width: 156px;
    line-height: 1.4;
}

/* 用户评价 */
.qz-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.qz-review-card {
    background: #fff;
    border: 1px solid var(--qz-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.qz-review-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.qz-reviews--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.qz-review-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.qz-review-sub {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--qz-ink);
}

.qz-review-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--qz-ink);
}

.qz-review-text {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--qz-muted);
}

.qz-review-stars {
    display: flex;
    gap: 0.15rem;
    color: var(--qz-green);
}

.qz-review-stars svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* 隐藏激活入口（保留 #activate 锚点供弹窗） */
.qz-activate-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* —— 弹窗（保留业务逻辑） —— */
.qz-modal[hidden] { display: none !important; }

.qz-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qz-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.qz-modal__panel {
    position: relative;
    width: min(440px, 96vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.qz-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--qz-muted);
    z-index: 1;
}

.qz-checkout-card {
    padding: 1.5rem;
}

.qz-checkout-card__head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.qz-checkout-card__icon {
    font-size: 1.5rem;
}

.qz-hero-activate__title {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--qz-ink);
}

.qz-hero-activate__sub {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--qz-muted);
}

.qz-code-form__row {
    display: flex;
    gap: 0.5rem;
}

.qz-code-input {
    flex: 1;
    border: 1px solid var(--qz-border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    outline: none;
}

.qz-code-input:focus {
    border-color: var(--qz-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.qz-code-verify {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: var(--qz-green);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.qz-code-hint {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.qz-code-hint.is-ok { color: var(--qz-green-dark); }
.qz-code-hint.is-error { color: #dc2626; }
.qz-code-hint.is-hidden { display: none; }

.qz-user-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
}

.qz-user-panel.is-hidden,
.qz-pay-panel.is-hidden,
.qz-pay-polling.is-hidden,
.qz-pay-success.is-hidden,
.qz-pay-status.is-hidden {
    display: none !important;
}

.qz-user-panel__label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--qz-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qz-user-dl { margin: 0; }

.qz-user-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--qz-border);
}

.qz-user-row:last-child { border-bottom: none; }

.qz-user-row dt { color: var(--qz-muted); }
.qz-user-row dd { margin: 0; font-weight: 600; color: var(--qz-ink); }

.qz-user-note {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--qz-muted);
}

.qz-pay-panel { margin-top: 1.25rem; }

.qz-pay-label {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--qz-ink);
}

.qz-pay-methods {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qz-pay-method { cursor: pointer; }

.qz-pay-method input { display: none; }

.qz-pay-method__box {
    display: block;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--qz-border);
    border-radius: 10px;
    font-size: 0.8125rem;
    transition: border-color 0.15s, background 0.15s;
}

.qz-pay-method input:checked + .qz-pay-method__box {
    border-color: var(--qz-green);
    background: var(--qz-green-light);
    color: var(--qz-green-dark);
    font-weight: 600;
}

.qz-pay-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--qz-green);
    color: #fff;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.qz-pay-btn:hover { filter: brightness(0.95); }

.qz-pay-polling,
.qz-pay-success {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.qz-pay-polling {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.qz-pay-success {
    background: var(--qz-green-light);
    border: 1px solid var(--qz-green-soft);
    color: var(--qz-green-dark);
    text-align: center;
}

.qz-pay-success__title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 1rem;
}

.qz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8125rem;
}

.qz-btn--primary {
    background: var(--qz-green);
    color: #fff !important;
    margin-top: 0.65rem;
}

.qz-btn--sm { padding: 0.45rem 0.85rem; }

.qz-pay-status.is-error {
    display: block;
    margin-top: 0.65rem;
    color: #dc2626;
    font-size: 0.8125rem;
}

body.qz-modal-open { overflow: hidden; }

/* 响应式 */
@media (max-width: 1024px) {
    .qz-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .qz-subnav-inner {
        gap: 1.25rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .qz-subnav a {
        white-space: nowrap;
        font-size: 0.875rem;
    }

    .qz-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qz-app-icon,
    .qz-hero-desc,
    .qz-hero-btns {
        margin-left: auto;
        margin-right: auto;
    }

    .qz-hero-btns {
        justify-content: center;
    }

    .qz-hero-visual {
        order: -1;
        min-height: 320px;
    }

    .qz-phone--lg {
        width: 190px;
    }

    .qz-features {
        grid-template-columns: 1fr 1fr;
    }

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

    .qz-float-icon { display: none; }
}

@media (max-width: 480px) {
    .qz-features {
        grid-template-columns: 1fr;
    }

    .qz-hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .qz-dl-btn {
        width: 100%;
    }
}
