/* ==========================================================================
   找我学习 · 官网首页样式
   设计规范全部取自 App 自身（主色 #667eea / 圆角 10px / 阴影带品牌色）
   ========================================================================== */

:root {
    --brand: #667eea;
    --brand-deep: #5a6fd8;
    --brand-grad-v: linear-gradient(180deg, #667eea 0%, #7b8bf0 100%);
    --brand-grad-d: linear-gradient(135deg, #667eea 0%, #8a97f2 100%);
    --brand-light: #eef1fd;
    --title: #1a1a2e;
    --text: #333333;
    --muted: #999999;
    --muted-2: #666666;
    --line: #eceef4;
    --bg: #f5f6fa;
    --card: #ffffff;
    --success: #12b76a;
    --danger: #e94f4f;
    --r-card: 10px;
    --r-pill: 22px;
    --r-sm: 6px;
    --shadow: 0 2px 8px rgba(102, 126, 234, .10);
    --shadow-hover: 0 8px 22px rgba(102, 126, 234, .18);
    --wrap: 1120px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: all .2s;
}

img {
    border: 0;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--title);
    font-size: 17px;
    font-weight: 700;
    flex: 0 0 auto;
}

.brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
}

.nav-links a {
    color: var(--muted-2);
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-btn {
    flex: 0 0 auto;
    background: var(--brand-grad-d);
    color: #fff;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow);
}

.nav-btn:hover {
    color: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* ---------- 首屏 ---------- */
.hero {
    background: var(--brand);
    background-image: var(--brand-grad-v);
    color: #fff;
    padding: 54px 0 62px;
}

.hero-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 46px;
}

.hero-icon {
    width: 136px;
    height: 136px;
    border-radius: 26px;
    flex: 0 0 auto;
    box-shadow: 0 14px 34px rgba(26, 26, 46, .28);
}

.hero-text {
    min-width: 0;
}

.hero-text h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.25;
}

.hero-slogan {
    font-size: 16px;
    color: rgba(255, 255, 255, .9);
    margin-top: 8px;
}

.hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    margin-top: 12px;
    max-width: 520px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: 16px;
}

.hero-meta li {
    font-size: 12px;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .16);
    border-radius: var(--r-sm);
    padding: 4px 11px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.btn-main {
    background: #fff;
    color: var(--brand);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 18px rgba(26, 26, 46, .18);
}

.btn-main:hover {
    color: var(--brand-deep);
    transform: translateY(-2px);
}

.btn-sub {
    color: #fff;
    font-size: 15px;
    padding: 11px 26px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, .6);
}

.btn-sub:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 52px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--title);
}

.section-head p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

/* ---------- 下载 ---------- */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.dl-card {
    background: var(--card);
    border-radius: var(--r-card);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all .22s;
}

.dl-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.dl-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-plat {
    font-size: 17px;
    font-weight: 700;
    color: var(--title);
}

.dl-badge {
    font-size: 11px;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: var(--r-sm);
    padding: 2px 8px;
    font-weight: 700;
}

.dl-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.dl-info {
    list-style: none;
    margin: 16px 0 4px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.dl-info li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.dl-info span {
    color: var(--muted);
}

.dl-info b {
    color: var(--title);
    font-weight: 500;
}

.dl-log {
    margin-top: 12px;
    background: var(--bg);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--muted-2);
    max-height: 96px;
    overflow: auto;
}

.dl-log b {
    display: block;
    color: var(--title);
    font-size: 12px;
    margin-bottom: 3px;
}

.dl-btn {
    display: block;
    text-align: center;
    margin-top: auto;
    padding-top: 0;
    background: var(--brand-grad-d);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 0;
    border-radius: var(--r-pill);
    margin-top: 18px;
}

.dl-btn:hover {
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.dl-btn.is-disabled {
    background: #d8dae4;
    cursor: not-allowed;
    pointer-events: none;
}

.dl-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.6;
}

.dl-empty {
    text-align: center;
    color: var(--muted);
    background: var(--card);
    border-radius: var(--r-card);
    padding: 40px 20px;
    box-shadow: var(--shadow);
}

/* ---------- 功能特性 ---------- */
.features {
    background: #fff;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feat-item {
    background: var(--card);
    border-radius: var(--r-card);
    padding: 22px 18px;
    box-shadow: var(--shadow);
    transition: all .22s;
}

.feat-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.feat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.feat-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--title);
    margin-top: 14px;
}

.feat-item p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.65;
}

/* ---------- 应用截图 ---------- */
.shots-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    -webkit-overflow-scrolling: touch;
}

.shots-scroll img {
    height: 380px;
    border-radius: 14px;
    flex: 0 0 auto;
    box-shadow: var(--shadow);
}

/* ---------- 应用介绍 ---------- */
.intro {
    background: #fff;
}

.intro-box {
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    padding: 30px 32px;
}

.intro-box p {
    font-size: 14px;
    color: var(--muted-2);
    margin-bottom: 12px;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

.intro-box b {
    color: var(--title);
}

/* ---------- 页脚 ---------- */
.footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 40px 0 26px;
    margin-top: 8px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 240px;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-brand .fb-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--title);
}

.footer-brand .fb-slogan {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.footer-col {
    flex: 0 1 180px;
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
}

.footer-bottom a {
    color: var(--muted);
}

.footer-bottom a:hover {
    color: var(--brand);
}

.todo-fill {
    color: var(--danger);
    border-bottom: 1px dashed var(--danger);
}

/* ---------- 微信内提示 ---------- */
.wx-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .82);
    padding: 18px 22px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.wx-mask[hidden] {
    display: none;
}

.wx-mask-inner {
    color: #fff;
    text-align: right;
    max-width: 340px;
}

.wx-mask-arrow {
    font-size: 40px;
    line-height: 1;
}

.wx-mask-title {
    font-size: 19px;
    font-weight: 700;
    margin-top: 10px;
}

.wx-mask-text {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin-top: 10px;
    line-height: 1.8;
}

.wx-mask-text b {
    color: #ffd666;
}

.wx-mask-close {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: var(--r-pill);
    padding: 7px 20px;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1024px) {
    .feat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 40px 0 46px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .hero-icon {
        width: 108px;
        height: 108px;
        border-radius: 22px;
    }

    .hero-text h1 {
        font-size: 27px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .feat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 38px 0;
    }

    .section-head h2 {
        font-size: 20px;
    }

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

    .intro-box {
        padding: 22px 18px;
    }

    .shots-scroll img {
        height: 300px;
    }
}

@media (max-width: 520px) {
    .wrap,
    .nav-inner,
    .hero-inner {
        padding: 0 16px;
    }

    .brand {
        font-size: 16px;
    }

    .nav-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-slogan {
        font-size: 14px;
    }

    .btn-main,
    .btn-sub {
        flex: 1 1 100%;
        text-align: center;
    }

    .feat-item {
        padding: 18px 14px;
    }

    .footer-top {
        gap: 24px;
    }

    .footer-col {
        flex: 1 1 100%;
    }
}
