/* udmer.cn — 官方服务站视觉规范 */
:root {
    --brand: #07c160;
    --brand-dark: #059a4c;
    --brand-soft: rgba(7, 193, 96, 0.08);
    --ink: #111827;
    --ink-soft: #4b5563;
    --muted: #9ca3af;
    --line: #e5e7eb;
    --surface: #ffffff;
    --canvas: #f3f4f6;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.06);
    --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.1);
    --header-h: 72px;
    --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
button { font-family: inherit; }

.wrap {
    width: min(100% - 40px, var(--max-w));
    margin-inline: auto;
}

/* ===== 顶栏 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}
.brand__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.brand__sub {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .25s;
}
.nav-burger span + span { margin-top: 5px; }
.nav-check:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-check:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-check:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: 999px;
}
.site-nav a:hover,
.site-nav a.is-active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

/* ===== 主内容区 ===== */
.page-main { padding: 28px 0 56px; }

/* Hero 充值区 */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 64px 40px 48px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(255,255,255,.22), transparent 60%),
        linear-gradient(160deg, #08c962 0%, #059a4c 52%, #047a3d 100%);
    box-shadow: var(--shadow-lg);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(0,0,0,.12), transparent 55%);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
.hero h2 {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 auto 14px;
    max-width: 16em;
}
.hero__desc {
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.92;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 640px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero__meta > div {
    padding: 4px 8px;
    font-size: 13px;
    opacity: 0.95;
}
.hero__meta strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    background: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.cta-btn img { width: 22px; height: 22px; }

/* 区块通用 */
.block { margin-top: 48px; }
.block__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.block__head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.block__head p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

/* 指南卡片：网格替代瀑布流 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.guide-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.guide-card:hover {
    border-color: rgba(7, 193, 96, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.guide-card a {
    display: block;
    padding: 24px;
    height: 100%;
}
.guide-card__tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 6px;
}
.guide-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}
.guide-card p {
    font-size: 13px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 流程 */
.flow-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
}
.flow-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
}
.flow-row::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
    z-index: 0;
}
.flow-item {
    position: relative;
    z-index: 1;
    text-align: center;
}
.flow-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.25);
}
.flow-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.flow-item p {
    font-size: 13px;
    color: var(--muted);
}

/* 双栏说明 */
.split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.panel h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.faq-list { display: flex; flex-direction: column; gap: 18px; }
.faq-item dt {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.faq-item dd {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.panel-note {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.85;
}

/* ===== 详情页 ===== */
.crumb {
    padding: 8px 0 20px;
    font-size: 13px;
    color: var(--muted);
}
.crumb a:hover { color: var(--brand); }
.crumb__sep { margin: 0 8px; opacity: 0.5; }

.article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.article__head {
    padding: 36px 40px 20px;
    border-bottom: 1px solid var(--line);
}
.article__head h1 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}
.article__body {
    padding: 28px 40px;
    font-size: 16px;
    line-height: 1.9;
    color: #1f2937;
}
.article__body p { margin-bottom: 1.15em; }
.article__body p:last-child { margin-bottom: 0; }
.article__foot {
    padding: 0 40px 36px;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-dark);
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    background: transparent;
}
.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 48px 0 40px;
    text-align: center;
    font-size: 13px;
}
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 24px;
}
.site-footer__links a:hover { color: #fff; }
.site-footer__advice {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
    color: #6b7280;
    line-height: 1.8;
    font-size: 12px;
}
.site-footer__copy {
    margin-top: 20px;
    font-size: 12px;
    color: #6b7280;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .guide-grid { grid-template-columns: 1fr; }
    .split-grid { grid-template-columns: 1fr; }
    .flow-row { grid-template-columns: 1fr; gap: 0; }
    .flow-row::before {
        top: 28px;
        bottom: 28px;
        left: 27px;
        right: auto;
        width: 2px;
        height: auto;
        background: var(--line);
    }
    .flow-item {
        display: flex;
        text-align: left;
        align-items: center;
        gap: 16px;
        padding: 10px 0;
    }
    .flow-num { margin: 0; flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px; }
}

@media (max-width: 768px) {
    :root { --header-h: auto; }
    .wrap { width: min(100% - 32px, var(--max-w)); }
    .site-header { height: auto; }
    .site-header__inner {
        flex-wrap: wrap;
        padding: 12px 0;
        position: relative;
    }
    .nav-burger { display: grid; }
    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }
    .nav-check:checked ~ .site-nav { display: flex; }
    .site-nav a {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        min-height: 44px;
    }
    .hero {
        padding: 40px 22px 32px;
        border-radius: var(--radius-md);
    }
    .hero__meta {
        gap: 8px;
        max-width: 100%;
    }
    .hero__meta > div {
        padding: 0 4px;
        font-size: 12px;
    }
    .hero__meta strong { font-size: 17px; }
    .block { margin-top: 36px; }
    .block__head { flex-direction: column; align-items: flex-start; }
    .flow-panel { padding: 28px 20px; }
    .article__head,
    .article__body,
    .article__foot { padding-left: 20px; padding-right: 20px; }
    .article__head { padding-top: 28px; }
    .article__body { padding-top: 22px; padding-bottom: 24px; }
}
