:root{
    --accent: #2e5248;
    --accent-2: #22332e;
    --bg: #f5f3ee;
    --paper: #fffefb;
    --ink: #1e1e1b;
    --muted: #7a766d;
    --faint: #a8a294;
    --line: #e6e2d8;
}
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }

body{
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ========== 页面布局 ========== */
.page{
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== 微信提示 ========== */
.wx-tip{
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8a6d1f;
    background: #faf3df;
    border: 1px solid #eadfc0;
}
.wx-tip svg{ flex: none; margin-top: 1px; }

/* ========== 主体卡片 ========== */
.card{
    padding: 48px 40px 34px;
    border-radius: 14px;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(30, 30, 27, .04), 0 16px 40px -24px rgba(30, 30, 27, .12);
    animation: rise .4s ease-out both;
}

/* ========== 标记 ========== */
.logo{
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    background: var(--accent);
}
.logo img{
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.logo svg{ width: 26px; height: 26px; }

/* ========== 文案 ========== */
.badge{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
}
.badge .dot{
    width: 16px;
    height: 1px;
    background: var(--accent);
}
.badge::after{
    content: "";
    width: 16px;
    height: 1px;
    background: var(--accent);
}
.title{
    margin: 0 0 16px;
    font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 1px;
    color: var(--ink);
}
.desc{
    margin: 0 auto 30px;
    max-width: 340px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
}
.desc-line{ display: block; }
.desc-line + .desc-line{ margin-top: 3px; }

/* ========== 公告 ========== */
.notice{
    margin: 0 0 28px;
    text-align: left;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.notice-head{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 2px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.notice-head:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.notice-icon{ display: flex; flex: none; color: var(--accent); }
.notice-text{
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    color: #4c4a44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .2s ease;
}
.notice-text.fade-out{ opacity: 0; }
.chev{ flex: none; color: var(--faint); transition: transform .25s ease; }
.notice.open .chev{ transform: rotate(180deg); }
.notice-list{
    max-height: 0;
    overflow: hidden auto;
    transition: max-height .3s ease;
}
.notice.open .notice-list{ max-height: 220px; }
.notice-item{
    display: flex;
    gap: 12px;
    padding: 11px 2px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
}
.notice-item time{
    flex: none;
    padding-top: 1px;
    font-size: 11px;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

/* ========== 目标路径预览 ========== */
.target-preview{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    margin: 0 0 16px;
    font-size: 11.5px;
    color: var(--faint);
}
.target-preview code{
    min-width: 0;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    color: #6b675e;
    background: #f0ede5;
    border: 1px solid var(--line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 跳转按钮 ========== */
.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #f5f3ee;
    text-decoration: none;
    background: var(--accent-2);
    transition: background .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover{ background: var(--accent); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.btn .arrow{ transition: transform .2s ease; }
.btn:hover .arrow{ transform: translateX(4px); }
.btn.is-disabled{ opacity: .4; pointer-events: none; }

.btn-tip{
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--faint);
}

/* ========== 页脚 ========== */
.foot{
    text-align: center;
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--faint);
}
.foot p{ margin: 0; }

/* ========== 动画（仅入场一次） ========== */
@keyframes rise{
    from{ opacity: 0; transform: translateY(10px); }
    to{ opacity: 1; transform: none; }
}

/* ========== 移动端 ========== */
@media (max-width: 520px){
    body{ padding: 24px 16px; }
    .card{ padding: 38px 24px 28px; border-radius: 12px; }
    .logo{ width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; font-size: 22px; }
    .logo svg{ width: 22px; height: 22px; }
    .title{ font-size: 24px; }
    .desc{ margin-bottom: 24px; font-size: 13px; }
    .notice{ margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
