/* =====================================================
 * site.css - 前端全站样式（v1.2 合并版）
 * 合并自：common/index/public/letter/tools/about
 * 暖色信纸 + 女性向：更柔阴影、玫瑰点缀、留白更多
 * ===================================================== */

:root {
    --primary:        #c97f4d;
    --primary-dk:     #a85f30;
    --primary-lt:     #e8b08a;
    --primary-soft:   #f0e3d4;
    --accent:         #d4a373;
    --rose:           #d98a8a;
    --rose-soft:      #faece8;
    --lavender:       #b8a4c9;
    --lavender-soft:  #ede8f3;
    --bg:             #faf6ef;
    --bg-card:        #ffffff;
    --bg-soft:        #f5f0e6;
    --text:           #3a342e;
    --text-soft:      #6b5f50;
    --muted:          #9b8e7e;
    --border:         #ebe2d4;
    --border-dk:      #d6c9b1;
    --success:        #7ba05b;
    --warn:           #d4a373;
    --danger:         #c84a3a;
    --radius:         12px;
    --radius-lg:      18px;
    --shadow:         0 10px 36px rgba(122, 90, 60, .08);
    --shadow-soft:    0 2px 12px rgba(122, 90, 60, .05);
    --shadow-rose:    0 8px 28px rgba(217, 138, 138, .18);
    --container:      1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Hiragino Sans", "Source Han Sans CN", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { color: var(--primary-dk); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

.icon { width: 18px; height: 18px; vertical-align: -3px; display: inline-block; fill: currentColor; }
.icon-mini { width: 14px; height: 14px; vertical-align: -3px; margin-right: 4px; color: var(--muted); }
.icon-lg { width: 48px; height: 48px; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============ 顶部导航 ============ */
.site-header {
    background: rgba(250, 246, 239, .88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 17px;
}
.brand:hover { color: var(--primary-dk); }
.brand-mark {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--rose) 100%);
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(217,138,138,.3);
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--primary-dk); }
.site-nav a.active {
    color: var(--primary-dk);
    background: var(--primary-soft);
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 38px; height: 38px;
    color: var(--text);
    align-items: center;
    justify-content: center;
}

/* ============ 公告条 ============ */
.site-notice {
    background: linear-gradient(90deg, var(--primary-soft), #fdf6ec);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-soft);
}
.site-notice .container { display: flex; align-items: center; gap: 8px; }
.notice-icon { color: var(--primary); flex-shrink: 0; }

/* ============ 主区 ============ */
.site-main { flex: 1; padding: 36px 0 52px; }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    transition: all .2s;
    white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(201,127,77,.28);
}
.btn-primary:hover {
    opacity: .94;
    color: #fff;
    box-shadow: 0 6px 18px rgba(201,127,77,.38);
}
.btn-rose {
    background: linear-gradient(135deg, var(--rose) 0%, var(--primary) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(217,138,138,.3);
}
.btn-rose:hover { opacity: .94; color: #fff; box-shadow: 0 6px 20px rgba(217,138,138,.42); }
.btn-ghost { background: transparent; border-color: var(--border-dk); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: transparent;
}
.btn-danger:hover { opacity: .9; color: #fff; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 10px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 4px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ============ 表单 ============ */
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: all .2s;
}
.form-row textarea {
    height: auto;
    padding: 12px 14px;
    line-height: 1.75;
    resize: vertical;
    min-height: 120px;
}
.form-row select { padding-right: 28px; cursor: pointer; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,127,77,.14);
}
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text-soft); user-select: none; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ============ 卡片 ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 18px; font-weight: 600; }
.card-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ============ 标签 ============ */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-soft);
    color: var(--text-soft);
}
.tag-success { background: #ecf4e0; color: var(--success); }
.tag-warn { background: #fdf6ec; color: var(--warn); }
.tag-danger { background: var(--rose-soft); color: var(--danger); }
.tag-primary { background: var(--primary-soft); color: var(--primary-dk); }
.tag-rose { background: var(--rose-soft); color: var(--rose); }

/* ============ 状态标签 ============ */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.status-0 { background: #fdf6ec; color: #9a7a3a; }
.status-1 { background: #ecf4e0; color: var(--success); }
.status-2 { background: var(--rose-soft); color: var(--danger); }
.status-3 { background: #ebe2d4; color: var(--muted); }

/* ============ 分页 ============ */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 28px 0 0;
    list-style: none;
}
.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-soft);
    font-size: 13px;
    background: #fff;
    transition: all .15s;
}
.pagination li a:hover { color: var(--primary); border-color: var(--primary); }
.pagination li.active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ 提示框 ============ */
.alert {
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
    border-left: 3px solid;
}
.alert-error { background: var(--rose-soft); color: var(--danger); border-color: var(--danger); }
.alert-success { background: #ecf4e0; color: var(--success); border-color: var(--success); }
.alert-warn { background: #fdf6ec; color: #9a7a3a; border-color: var(--warn); }
.alert-info { background: var(--bg-soft); color: var(--text-soft); border-color: var(--accent); }

/* ============ 模态框 ============ */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(58, 46, 38, .55);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: maskIn .2s ease;
}
.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 38px 34px;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
    text-align: center;
    animation: modalIn .25s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.modal-icon {
    width: 76px; height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose) 0%, var(--primary) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(217,138,138,.4);
}
.modal-box h3 { font-size: 22px; margin-bottom: 10px; }
.modal-box p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-info {
    background: var(--bg-soft);
    border: 1px dashed var(--border-dk);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-info span { font-size: 12px; color: var(--muted); }
.track-no {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 20px;
    color: var(--primary-dk);
    letter-spacing: 2px;
    font-weight: 600;
    user-select: all;
}
.modal-warn { color: var(--warn); font-size: 12px; margin-bottom: 18px; }
.modal-foot { display: flex; gap: 10px; justify-content: center; }

/* ============ Toast ============ */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    z-index: 300;
    opacity: 0;
    transition: all .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warn    { background: var(--warn); }

/* ============ 空状态 ============ */
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-icon { margin-bottom: 14px; color: var(--accent); opacity: .6; }
.empty-state p { font-size: 14px; }

/* ============ 返回顶部 ============ */
.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--rose) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(217,138,138,.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
    transition: transform .2s;
}
.back-top:hover { transform: translateY(-2px); }
.back-top.show { display: flex; }

/* ============ 页脚 ============ */
.site-footer {
    background: #2d2926;
    color: #c8b9a4;
    padding: 44px 0 22px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 36px;
    margin-bottom: 26px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-logo {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--rose) 100%);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-desc { font-size: 13px; line-height: 1.85; color: #a89880; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.footer-stats, .footer-links { list-style: none; }
.footer-stats li, .footer-links li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: #a89880;
    border-bottom: 1px dashed rgba(200, 185, 164, .15);
}
.footer-stats li:last-child, .footer-links li:last-child { border-bottom: none; }
.footer-stats b { color: #fff; font-weight: 500; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.footer-links a { color: #a89880; }
.footer-links a:hover { color: #fff; }
.footer-tip { font-size: 12px; color: #8a7a68; line-height: 1.7; }
.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(200, 185, 164, .12);
    font-size: 12px;
    color: #8a7a68;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.footer-bottom a { color: #8a7a68; }
.footer-bottom a:hover { color: #c8b9a4; }
.footer-tech { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ============ Hero 区（首页） ============ */
.hero {
    text-align: center;
    padding: 96px 24px 72px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(560px 300px at 10% -10%, rgba(212,163,115,.16), transparent 70%),
        radial-gradient(520px 280px at 92% 12%, rgba(217,138,138,.12), transparent 70%),
        radial-gradient(460px 260px at 50% 115%, rgba(184,164,201,.10), transparent 70%);
}
/* 旧的模糊圆形装饰在 overflow:hidden 下会被裁成方块，整体停用，改用上面的渐变光晕 */
.hero-deco { display: none; }
.hero-en {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}
.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    position: relative;
    letter-spacing: 2px;
    line-height: 1.3;
}
.hero-sub { font-size: 18px; color: var(--text-soft); margin-bottom: 14px; position: relative; }
.hero-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 30px;
    position: relative;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
}
.hero-quote {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    position: relative;
    padding: 14px 24px;
    background: rgba(255,255,255,.5);
    border-radius: 20px;
    display: inline-block;
}

/* ============ 首页统计条 ============ */
.stat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-dk);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    line-height: 1.2;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============ 首页写信区 ============ */
.write-section { margin-bottom: 60px; }
.write-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}
.write-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}
.write-card .card-head {
    text-align: center;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 22px;
    padding-bottom: 18px;
}
.write-card .card-head h2 { font-size: 22px; }
.write-card .card-head p { font-size: 13px; color: var(--muted); }
.quick-time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -8px 0 16px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border-radius: 8px;
}
.quick-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.quick-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    transition: all .15s;
}
.quick-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.form-tip { font-size: 12px; color: var(--muted); }

/* ============ 首页侧栏 ============ */
.write-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-soft);
}
.side-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dk);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.side-list { list-style: none; padding: 0; }
.side-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.7;
}
.side-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
}
.side-list.side-tips li::before { background: var(--accent); }
.side-quote {
    background: linear-gradient(135deg, #fdf6ec 0%, var(--rose-soft) 100%);
    border-color: var(--primary-soft);
    text-align: center;
}
.side-quote p {
    font-size: 14px;
    color: var(--text-soft);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 6px;
}
.side-quote small { font-size: 12px; color: var(--muted); }

/* ============ 公开信列表 + Section Head ============ */
.public-section { margin-bottom: 60px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-en {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-head h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.section-desc { font-size: 13px; color: var(--muted); }
.public-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.public-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all .25s;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.public-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-soft);
    color: inherit;
}
.public-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    font-size: 12px;
}
.public-author { color: var(--text-soft); font-weight: 500; }
.public-date { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.public-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.5;
}
.public-content, .public-excerpt {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.public-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.public-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-dk);
    font-size: 12px;
    font-weight: 500;
}
.section-foot { text-align: center; margin-top: 28px; }

/* ============ 特性区 ============ */
.feature-section { margin-bottom: 60px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
    width: 58px; height: 58px;
    margin: 0 auto 14px;
    background: var(--primary-soft);
    color: var(--primary-dk);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.feature-card:nth-child(2) .feature-icon { background: var(--rose-soft); color: var(--rose); }
.feature-card:nth-child(3) .feature-icon { background: var(--lavender-soft); color: var(--lavender); }
.feature-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text);
}
.feature-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

/* ============ 页面头 ============ */
.page-head { text-align: center; padding: 36px 0 24px; }
.page-head .page-en {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.page-head h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.page-head h2 svg { color: var(--primary); }
.page-head p { color: var(--muted); font-size: 14px; }

/* ============ 详情页 ============ */
.detail-head {
    padding: 32px 0 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 14px;
}
.back-link:hover { color: var(--primary); }
.detail-head h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--muted);
}
.detail-meta span { display: inline-flex; align-items: center; }
.detail-body {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    font-size: 15px;
    line-height: 2;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
}
.hr {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 28px 0;
}

/* ============ 评论 ============ */
.comment-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
}
.comment-section h3 svg { color: var(--primary); }
.comment-form {
    background: #fdfaf5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 22px;
}
.comment-form .btn { margin-top: 4px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment-list li:last-child { border-bottom: none; }
.comment-list li.empty {
    color: var(--muted);
    text-align: center;
    padding: 30px 0;
    border: none;
}
.cmt-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}
.cmt-head b { color: var(--text); }
.cmt-head span { color: var(--muted); }
.comment-list li p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    white-space: pre-wrap;
}

/* ============ 信件查询 ============ */
.query-box { margin-bottom: 18px; }
.query-box .btn { margin-top: 4px; }
.query-result {
    margin-top: 18px;
    padding: 18px;
    background: #fdfaf5;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.query-result .info-table { width: 100%; border-collapse: collapse; }
.query-result .info-table th {
    background: #fff;
    text-align: left;
    padding: 8px 12px;
    width: 110px;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.query-result .info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}
.query-result code {
    background: var(--bg-soft);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--primary-dk);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
}
.query-tips h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
}
.query-tips h3 svg { color: var(--primary); }
.query-tips p {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.85;
    margin-bottom: 10px;
}
.query-tips ul { list-style: none; padding-left: 4px; }
.query-tips ul li {
    padding: 4px 0 4px 18px;
    position: relative;
    font-size: 13px;
    color: var(--text-soft);
}
.query-tips ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
}
.letter-info {
    margin-top: 18px;
    padding: 18px;
    background: #fdfaf5;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.letter-info .info-table { width: 100%; border-collapse: collapse; }
.letter-info .info-table th,
.letter-info .info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.letter-info .info-table th {
    background: #fff;
    width: 110px;
    color: var(--muted);
    font-weight: 500;
}
.send-log { margin-top: 18px; }
.send-log h4 { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.send-log pre {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-soft);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

/* ============ 工具页 ============ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.tool-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}
.tool-card h3 svg { color: var(--primary); }
.tool-card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}
.tool-card .tool-form .form-row { margin-bottom: 12px; }
.tool-card .tool-form input {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}
.tool-card .tool-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,127,77,.1);
}
.tool-msg { margin-top: 18px; }

/* ============ 关于页 ============ */
.about-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 38px;
}
.about-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.about-card h3:first-child { margin-top: 0; }
.about-card p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-soft);
    margin-bottom: 8px;
}
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
}
.check-list li svg {
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--success);
}
.check-list li:last-child svg { color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
    .write-grid { grid-template-columns: 1fr; }
    .public-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .header-inner { height: 56px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .site-nav a.active { background: var(--primary-soft); border-left: 3px solid var(--primary); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .site-main { padding: 22px 0 36px; }
    .modal-box { padding: 28px 22px; }
    .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero { padding: 44px 16px 36px; }
    .hero-title { font-size: 30px; }
    .hero-sub { font-size: 16px; }
    .hero-desc { font-size: 13px; }
    .stat-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 18px;
    }
    .stat-num { font-size: 22px; }
    .public-grid, .feature-grid { grid-template-columns: 1fr; }
    .write-card, .side-card { padding: 22px; }
    .section-head h2 { font-size: 22px; }
    .hero-actions .btn { width: 100%; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { width: 100%; }
    .form-tip { text-align: center; }
    .page-head h2 { font-size: 22px; }
    .detail-head h1 { font-size: 22px; }
    .detail-body { padding: 22px; }
    .detail-meta { flex-direction: column; gap: 6px; }
    .about-card { padding: 24px 20px; }
}