/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1f5fd6;
  --primary-dark: #174bb0;
  --primary-light: #eaf1fd;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #8a94a6;
  --line: #e6e9ef;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(31, 95, 214, 0.08);
  --maxw: 1180px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: .15s;
  font-weight: 600;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-recharge { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-color: transparent; }
.btn-recharge:hover { background: linear-gradient(135deg, #d97706, #b45309); }
.btn-recharge-light { background: #fff7ed; color: #b45309; border-color: #fbbf24; }
.btn-recharge-light:hover { background: #ffedd5; }
.btn-block { width: 100%; text-align: center; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ===== 页头 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.header-inner { display: flex; align-items: center; height: 64px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.brand-text { font-size: 15px; color: var(--ink); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); font-weight: 500;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -2px; right: 2px; background: #e23b3b; color: #fff;
  font-size: 11px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: inline-grid; place-items: center;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.user-btn {
  background: var(--primary-light); color: var(--primary-dark); border: none;
  padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px;
}
.user-dropdown {
  position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); min-width: 150px; overflow: hidden; display: none;
}
.user-dropdown.show { display: block; }
.user-dropdown a { display: block; padding: 10px 16px; font-size: 14px; color: var(--ink-soft); }
.user-dropdown a:hover { background: var(--bg); color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ===== 通用区块 ===== */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--primary); }

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, #1f5fd6 0%, #2f7be0 60%, #4a93f0 100%);
  color: #fff; padding: 70px 0 78px;
}
.hero h1 { font-size: 36px; color: #fff; font-weight: 800; }
.hero p { font-size: 17px; opacity: .92; margin: 16px 0 28px; max-width: 640px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-outline:hover { background: rgba(255,255,255,.14); }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .s-num { font-size: 28px; font-weight: 800; }
.hero-stats .s-label { font-size: 13px; opacity: .85; }

/* 模块卡 */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.module-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(31,95,214,.14); }
.module-card .mc-icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--primary-light);
  color: var(--primary); display: grid; place-items: center; font-size: 24px; font-weight: 800; margin-bottom: 16px;
}
.module-card h3 { font-size: 21px; margin-bottom: 10px; }
.module-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.module-card .mc-link { margin-top: 18px; color: var(--primary); font-weight: 600; }

/* 首页信息流 */
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.home-col h3 { font-size: 19px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.home-col h3 a { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ===== 商品网格 ===== */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px;
}
.toolbar .search {
  flex: 1; min-width: 200px; display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.toolbar .search input { flex: 1; border: none; padding: 10px 12px; font-size: 14px; outline: none; }
.toolbar .search button { border: none; background: var(--primary); color: #fff; padding: 0 18px; cursor: pointer; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-soft); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: .18s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4e0f7; }
.product-card .pc-img { aspect-ratio: 1/1; overflow: hidden; background: #f1f4f9; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: .25s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.product-card .pc-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-cat { font-size: 12px; color: var(--primary); font-weight: 600; }
.product-card .pc-name { font-size: 15px; font-weight: 600; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.product-card .pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.product-card .pc-tag { font-size: 11px; color: var(--muted); background: var(--bg); padding: 3px 8px; border-radius: 6px; }
.product-card .pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.product-card .pc-price { color: #e23b3b; font-weight: 800; font-size: 18px; }
.product-card .pc-price small { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: 12px; margin-left: 4px; }
.product-card .pc-sales { font-size: 12px; color: var(--muted); }
.product-card .pc-merchant { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===== 商品详情 ===== */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery .g-item { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f1f4f9; aspect-ratio: 1/1; scroll-margin-top: 90px; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery .g-item img:hover { transform: scale(1.02); }
.gallery .g-counter { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.gallery .g-hint { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0 2px; letter-spacing: 1px; }
.detail-info h1 { font-size: 24px; margin-bottom: 12px; }
.detail-info .d-price { font-size: 28px; color: #e23b3b; font-weight: 800; }
.detail-info .d-price small { color: var(--muted); text-decoration: line-through; font-size: 15px; font-weight: 500; margin-left: 10px; }
.detail-info .d-meta { display: flex; gap: 20px; color: var(--muted); font-size: 13px; margin: 12px 0 18px; flex-wrap: wrap; }
.detail-info .d-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-info .d-tags span { background: var(--primary-light); color: var(--primary-dark); padding: 5px 12px; border-radius: 8px; font-size: 13px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-box button { width: 36px; height: 38px; border: none; background: #f4f6fa; font-size: 18px; cursor: pointer; color: var(--ink-soft); }
.qty-box input { width: 50px; height: 38px; border: none; text-align: center; font-size: 15px; outline: none; }
.detail-actions { display: flex; gap: 12px; }
.detail-actions .btn { flex: 1; }
.action-row { display: flex; gap: 18px; align-items: stretch; margin-top: 6px; }
.action-row .detail-actions { flex: 1; }
.action-row .merchant-card { flex: 0 0 230px; margin-top: 0; padding: 14px 16px; align-self: flex-start; }
.action-row .merchant-card h4 { font-size: 14px; margin-bottom: 8px; }
.action-row .merchant-card p { font-size: 12.5px; line-height: 1.85; }
.action-row .merchant-card p span.lab { color: var(--muted); display: inline-block; min-width: 38px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table td { padding: 11px 14px; border: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { background: var(--bg); color: var(--ink-soft); width: 120px; font-weight: 600; }
.merchant-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 20px; }
.merchant-card h4 { font-size: 15px; margin-bottom: 8px; }
.merchant-card p { font-size: 13px; color: var(--ink-soft); }
.detail-block { margin-top: 36px; }
.detail-block h3 { font-size: 19px; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--primary); }

/* ===== 购物车 ===== */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.cart-table th { background: var(--bg); color: var(--ink-soft); font-weight: 600; }
.cart-table .ci-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table .ci-name { font-weight: 600; }
.cart-table .ci-price { color: #e23b3b; font-weight: 700; }
.cart-qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cart-qty button { width: 30px; height: 32px; border: none; background: #f4f6fa; cursor: pointer; }
.cart-qty input { width: 44px; height: 32px; border: none; text-align: center; outline: none; }
.cart-remove { color: var(--muted); cursor: pointer; }
.cart-remove:hover { color: #e23b3b; }
.cart-summary {
  margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.cart-summary .total { font-size: 20px; }
.cart-summary .total b { color: #e23b3b; font-size: 26px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state a { color: var(--primary); font-weight: 600; }

/* ===== 信息广场 ===== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .18s; display: flex; flex-direction: column; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .ic-img { aspect-ratio: 16/10; overflow: hidden; background: #f1f4f9; }
.info-card .ic-img img { width: 100%; height: 100%; object-fit: cover; }
.info-card .ic-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.info-card .ic-cat { font-size: 12px; color: var(--primary); font-weight: 600; }
.info-card .ic-title { font-size: 16px; font-weight: 600; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.info-card .ic-summary { font-size: 13px; color: var(--ink-soft); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info-card .ic-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
.info-card .ic-pub { color: var(--ink-soft); font-weight: 600; }
.info-card .ic-phone { background: var(--primary-light); color: var(--primary-dark); padding: 3px 9px; border-radius: 6px; font-weight: 600; }

/* ===== 信息详情 ===== */
.info-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.info-detail-main .id-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 20px; }
.info-detail-main h1 { font-size: 24px; margin-bottom: 12px; }
.info-detail-main .id-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; margin-bottom: 18px; flex-wrap: wrap; }
.info-detail-main .id-content { font-size: 15px; color: var(--ink-soft); line-height: 1.9; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; position: sticky; top: 84px; }
.contact-card h4 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact-card .cc-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.contact-card .cc-row span:first-child { color: var(--muted); }
.contact-card .cc-row span:last-child { font-weight: 600; }
.contact-card .cc-phone { font-size: 18px; color: var(--primary); letter-spacing: 1px; }
.contact-card .cc-login-tip { margin-top: 14px; font-size: 13px; color: var(--muted); background: var(--bg); padding: 10px 12px; border-radius: 8px; }
.contact-card .cc-login-tip a { color: var(--primary); font-weight: 600; }

/* ===== 表单（发布 / 登录 / 注册） ===== */
.form-wrap { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.form-wrap h2 { font-size: 22px; margin-bottom: 6px; }
.form-wrap .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.field textarea { resize: vertical; min-height: 110px; }
.agree-box { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-soft); margin: 6px 0 18px; }
.agree-box input { width: 18px; height: 18px; margin-top: 2px; }
.agree-box a { color: var(--primary); font-weight: 600; }
.form-error { color: #e23b3b; font-size: 13px; margin-top: -8px; margin-bottom: 14px; min-height: 18px; }
.form-ok { color: #1f9d55; font-size: 14px; text-align: center; margin-bottom: 14px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.notice-bar { background: var(--primary-light); color: var(--primary-dark); padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }

/* ===== 关于我们 ===== */
.about-hero { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); }
.about-hero h2 { font-size: 26px; margin-bottom: 14px; }
.about-hero .about-intro { color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 26px; max-width: 760px; }
.about-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.about-box h4 { font-size: 16px; margin-bottom: 12px; color: var(--primary); padding-left: 10px; border-left: 3px solid var(--primary); }
.about-box dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; font-size: 14px; }
.about-box dt { color: var(--muted); }
.about-box dd { color: var(--ink); font-weight: 500; }
.about-box p { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* ===== 账户 ===== */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.account-side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-align: center; }
.account-side .av { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; margin: 0 auto 12px; }
.account-side .uname { font-size: 17px; font-weight: 700; }
.account-side .uid { font-size: 13px; color: var(--muted); margin-top: 2px; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.account-card h3 { font-size: 18px; margin-bottom: 16px; }
.account-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.account-row:last-child { border-bottom: none; }
.account-row span:first-child { color: var(--muted); }
.account-row span:last-child { font-weight: 600; }

/* ===== 页脚 ===== */
.site-footer { background: #11203a; color: #c7d2e2; margin-top: 60px; padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding-bottom: 32px; }
.footer-brand { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-intro { font-size: 13px; line-height: 1.8; color: #9fb0c9; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: #9fb0c9; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #233655; padding: 18px 18px; font-size: 12px; color: #8294af; }
.footer-bottom a { color: #8294af; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-detail-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .home-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 18px; display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 8px; }
  .header-right { margin-left: auto; }
  .brand-text { display: none; }
  .hero h1 { font-size: 27px; }
  .module-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .detail-wrap { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
  .cart-table td { border: none; padding: 8px 10px; }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== 状态徽章 ===== */
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fff4e0; color: #c8741a; }
.badge-approved { background: #e6f6ec; color: #1f9d55; }
.badge-rejected { background: #fdeaea; color: #c0392b; }

/* ===== 我的发布 ===== */
.my-post { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; background: #fff; }
.mp-head { display: flex; align-items: center; gap: 10px; }
.mp-title { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mp-title:hover { color: var(--primary); }
.mp-meta { font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.mp-reason { font-size: 13px; color: #c0392b; background: #fdeaea; border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
.mp-actions { margin-top: 10px; display: flex; gap: 10px; }

/* ===== 按钮尺寸 / 危险 ===== */
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { color: #c0392b; border-color: #f0c4c0; background: #fff; }
.btn-danger:hover { background: #fdeaea; }

/* ===== 编辑弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,30,55,.5); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 26px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-box h3 { font-size: 18px; margin-bottom: 16px; color: var(--primary); }
.modal-box .field { margin-bottom: 12px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* ===== 后台管理 ===== */
.admin-tabs { display: flex; gap: 10px; margin: 18px 0 20px; flex-wrap: wrap; }
.atab { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: 9px 18px; border-radius: 22px; cursor: pointer; font-size: 14px; }
.atab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.atab .cnt { display: inline-block; margin-left: 6px; background: rgba(0,0,0,.08); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.atab.active .cnt { background: rgba(255,255,255,.25); }
.admin-nav { display: flex; gap: 10px; margin: 16px 0 4px; flex-wrap: wrap; }
.admin-nav a { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: 9px 20px; border-radius: 22px; font-size: 14px; text-decoration: none; }
.admin-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-nav a:not(.active):hover { color: var(--primary); border-color: var(--primary); }
.admin-list { display: flex; flex-direction: column; gap: 16px; }
.admin-card { display: flex; gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.ac-img { flex: 0 0 160px; }
.ac-img img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; }
.ac-body { flex: 1; min-width: 0; }
.ac-head { display: flex; align-items: center; gap: 10px; }
.ac-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.ac-meta { font-size: 13px; color: var(--muted); margin: 8px 0; }
.ac-summary { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.ac-content { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-height: 120px; overflow: auto; background: #f7f9fc; border-radius: 8px; padding: 10px 12px; }
.ac-actions { margin-top: 12px; display: flex; gap: 10px; }
@media (max-width: 640px) {
  .admin-card { flex-direction: column; }
  .ac-img, .ac-img img { width: 100%; flex-basis: auto; }
}
