/* ------------------------------------------------------------------
   MeeUme 局猫 · 官网样式
   品牌色取自 logo：主橙 #FE6C00，点缀青绿 #30C0C0
   ------------------------------------------------------------------ */

:root {
    --font-sans: "PingFang SC", "SF Pro Text", "Helvetica Neue",
        "Hiragino Sans GB", "MiSans", "HarmonyOS Sans SC",
        "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;

    /* 品牌色 */
    --brand: #fe6c00;
    --brand-strong: #e05f00;
    --brand-soft: #fff4ec;
    --brand-line: rgba(254, 108, 0, 0.18);
    --accent: #30c0c0;

    /* 中性色（暖调，避免和橙冲突） */
    --page: #ffffff;
    --tint: #fdfaf7;
    --text: #1f1b18;
    --text-mid: #6b625c;
    --text-soft: #9a908a;
    --line: rgba(31, 27, 24, 0.08);
    --line-strong: rgba(31, 27, 24, 0.14);

    --shadow-sm: 0 4px 14px rgba(31, 27, 24, 0.05);
    --shadow-md: 0 14px 34px rgba(31, 27, 24, 0.07);
    --radius: 18px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--page);
    color: var(--text);
    line-height: 1.62;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-shell {
    min-height: 100vh;
    /* 手机浏览器地址栏会占掉一部分 100vh，用 dvh 避免底部留白 */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(var(--content-width), calc(100% - 48px));
    margin: 0 auto;
}

.page-anchor {
    scroll-margin-top: 96px;
}

/* 中文标题按语义断行，避免「唯一的出 / 路」这种把词拆开的情况 */
.section-intro h2,
.hero-tagline,
.truth-block h3 {
    text-wrap: balance;
}

.nowrap {
    white-space: nowrap;
}

/* ---------------- 顶栏 ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 34px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.site-nav a {
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.site-nav a.is-active {
    background: var(--brand);
    color: #ffffff;
}

.site-nav a.nav-cta {
    border: 1px solid var(--brand-line);
    color: var(--brand-strong);
}

.site-nav a.nav-cta:hover {
    background: var(--brand-soft);
}

.site-nav a.nav-cta.is-active {
    background: var(--brand);
    border-color: transparent;
    color: #ffffff;
}

/* ---------------- 首页 ---------------- */

.hero {
    padding: 52px 0 60px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 44px;
    align-items: center;
}

.hero-heading {
    margin: 0;
}

.hero-logo {
    width: min(268px, 62%);
    height: auto;
    margin-bottom: 20px;
}

.hero-tagline {
    display: block;
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 700;
    line-height: 1.28;
    color: var(--text);
}

.hero-lead {
    margin: 0;
    max-width: 620px;
    font-size: 1.08rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tint);
    box-shadow: var(--shadow-sm);
}

.hero-panel h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    color: var(--text);
}

.hero-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hero-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-mid);
    font-size: 0.98rem;
    line-height: 1.6;
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
}

/* ---------------- 通用区块 ---------------- */

.section-block {
    padding: 60px 0;
}

.section-tint {
    background: var(--tint);
}

.section-intro {
    max-width: 760px;
    margin-bottom: 28px;
}

/* 主张那句要一行读完才有冲击力，所以单独放宽并放大 */
.section-intro.is-wide {
    max-width: none;
}

.section-intro.is-wide h2 {
    font-size: clamp(1.55rem, 3.4vw, 3rem);
    white-space: nowrap;
}

.section-intro.is-wide p {
    max-width: 720px;
}

/* 窄屏放不下 20 个字，回退成按语义折行 */
@media (max-width: 900px) {
    .section-intro.is-wide h2 {
        white-space: normal;
        text-wrap: balance;
    }
}

.section-intro h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    line-height: 1.22;
}

.section-intro p {
    margin: 0;
    color: var(--text-mid);
    font-size: 1.02rem;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.86rem;
    font-weight: 600;
}

.kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ---------------- 按钮 ---------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

button.button {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary,
.button-accent {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(254, 108, 0, 0.22);
}

.button-primary:hover,
.button-accent:hover {
    background: var(--brand-strong);
}

.button-secondary {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--brand);
    color: var(--brand-strong);
}

/* ---------------- 产品能力 ---------------- */

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

.feature-card {
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin: 14px 0 8px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.feature-card p {
    margin: 0;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.66;
}

/* ---------------- 我们的判断 ---------------- */

.why-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 36px;
    align-items: start;
}

.why-body p {
    margin: 0 0 16px;
    color: var(--text-mid);
    font-size: 1.02rem;
    line-height: 1.8;
}

.why-body p:last-child {
    margin-bottom: 0;
}

.why-body strong,
.about-story strong {
    color: var(--text);
    font-weight: 600;
}

.why-side {
    display: grid;
    gap: 16px;
}

.trend-list {
    display: grid;
    gap: 12px;
}

.trend-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.trend-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--brand-strong);
}

.trend-item p {
    margin: 0;
    color: var(--text-mid);
    font-size: 0.94rem;
    line-height: 1.6;
}

.why-callout {
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(254, 108, 0, 0.22);
}

.why-callout p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.92);
}

.why-callout strong {
    color: #ffffff;
    font-weight: 700;
}

/* ---------------- 七句实话 ---------------- */

.truth-block {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line-strong);
}

.truth-block h3 {
    margin: 0 0 20px;
    font-size: 1.3rem;
}

.truth-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.truth-item {
    position: relative;
    padding: 22px 22px 22px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* 第七条收尾，独占一行 */
.truth-item:last-child {
    grid-column: 1 / -1;
    background: var(--brand-soft);
    border-color: var(--brand-line);
}

.truth-num {
    display: block;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.truth-item h4 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
}

.truth-item p {
    margin: 0;
    color: var(--text-mid);
    font-size: 0.93rem;
    line-height: 1.68;
}

/* ---------------- 使用场景 ---------------- */

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

.scenario-card {
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.scenario-card h3 {
    margin: 14px 0 8px;
    font-size: 1.08rem;
}

.scenario-card > p {
    margin: 0;
    color: var(--text-mid);
    font-size: 0.94rem;
    line-height: 1.66;
}

.feature-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-mid);
    font-size: 0.94rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

/* ---------------- 下载 ---------------- */

/* 设备识别结果压成一行，避免把下载按钮挤出首屏 */
.device-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 14px 20px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
}

.device-bar-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.device-bar-label {
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 600;
}

.device-bar-value {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
}

.device-bar-hint {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.device-bar-tip {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.device-bar-tip span {
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 600;
}

.device-bar-tip strong {
    color: var(--brand-strong);
    font-size: 1.02rem;
    font-weight: 700;
}

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

.download-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.download-card.recommended {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand-line), var(--shadow-md);
}

.download-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    min-height: 64px;
}

.download-head > div {
    display: grid;
    gap: 8px;
    align-content: start;
}

.download-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.download-card p {
    margin: 10px 0 0;
    color: var(--text-mid);
    font-size: 0.94rem;
    line-height: 1.62;
}

.download-meta {
    margin-top: 14px;
    display: grid;
    gap: 4px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.download-link {
    margin-top: auto;
    padding-top: 18px;
}

.download-card .button {
    width: 100%;
}

/* 暂未提供的平台：灰掉展示，保留位置说明「有这个平台，只是还没上」 */
.download-card.is-unavailable {
    background: var(--tint);
    border-style: dashed;
    box-shadow: none;
}

.download-card.is-unavailable .kicker {
    background: rgba(31, 27, 24, 0.06);
    color: var(--text-soft);
}

.download-card.is-unavailable h3 {
    color: var(--text-mid);
}

.download-card.is-unavailable p,
.download-card.is-unavailable .download-meta {
    color: var(--text-soft);
}

.download-badge.is-muted {
    background: rgba(31, 27, 24, 0.08);
    color: var(--text-soft);
}

.download-link .button[disabled],
.download-link .button[disabled]:hover {
    cursor: not-allowed;
    color: var(--text-soft);
    border-color: var(--line-strong);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.download-note {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--tint);
    border: 1px solid var(--line);
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.68;
}

/* ---------------- 常见问题 ---------------- */

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

.faq-item {
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    margin: 0 0 10px;
    font-size: 1.06rem;
    line-height: 1.5;
    color: var(--text);
}

.faq-item p {
    margin: 0;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.72;
}

/* ---------------- 关于我们 ---------------- */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 32px;
    align-items: start;
}

.about-story p {
    margin: 0 0 14px;
    color: var(--text-mid);
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-cards {
    display: grid;
    gap: 14px;
}

.info-card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.info-card p {
    margin: 12px 0 0;
    color: var(--text-mid);
    font-size: 0.96rem;
    line-height: 1.66;
}

/* ---------------- 联系我们（并入关于我们） ---------------- */

.contact-block {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line-strong);
}

.contact-block h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.contact-block > p {
    margin: 0 0 20px;
    color: var(--text-mid);
    font-size: 0.98rem;
}

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

.contact-item {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 8px;
}

.contact-label {
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-value {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
    margin-top: auto;
    padding: 32px 0 40px;
    background: var(--tint);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.footer-inner a {
    color: var(--text-soft);
    transition: color 0.18s ease;
}

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

/* ---------------- 弹窗 ---------------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 27, 24, 0.36);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 40;
}

.modal-card {
    width: min(460px, 100%);
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(31, 27, 24, 0.22);
}

.modal-card h3 {
    margin: 16px 0 10px;
    font-size: 1.2rem;
}

.modal-card p {
    margin: 0;
    color: var(--text-mid);
    line-height: 1.66;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
    .feature-grid,
    .scenario-grid,
    .download-grid,
    .truth-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .about-layout,
    .why-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .section-block {
        padding: 46px 0;
    }

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

    .contact-block {
        margin-top: 30px;
        padding-top: 24px;
    }

    /* 地址较长，三列在平板宽度下会挤，提前降到两列 */
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: auto;
        padding: 12px 0;
        row-gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }

    .header-inner > .brand {
        order: 1;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    /* 触控目标高度提到约 43px */
    .site-nav a {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    /* 手机上导航折成两行，吸顶更高，锚点要留出更多空间，否则标题会被挡住 */
    .page-anchor {
        scroll-margin-top: 124px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--content-width), calc(100% - 32px));
    }

    .feature-grid,
    .scenario-grid,
    .download-grid,
    .contact-grid,
    .truth-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .trend-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hero-logo {
        width: min(220px, 70%);
    }

    .section-block {
        padding: 40px 0;
    }

    .hero-panel {
        padding: 20px;
    }

    .device-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .why-callout {
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
