:root {
  --bg: #f5f7fb;
  --card: #fff;
  --text: #212121;
  --muted: #777;
  --primary: #001c67;
  --primary-dark: #00144a;
  --accent: #03b9f8;
  --accent-dark: #0295c7;
  --border: #dedede;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0, 28, 103, 0.08);
  --footer: #001c67;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ========== Header (参考 ynlxing 双层顶栏) ========== */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header-top .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.header-top-left {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #fff;
}

.header-top-left li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-top-left a {
  color: #fff;
}
.header-top-left a:hover {
  color: var(--accent);
}

.header-phone-ico::before {
  content: '☎';
  font-style: normal;
  margin-right: 0.15rem;
  opacity: 0.9;
}

#user-bar,
.header-top-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-top .btn {
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 2px;
}
.header-top .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
  background: transparent;
}
.header-top .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.header-top .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.header-top .btn-primary:hover {
  background: var(--accent-dark);
}

.header-main {
  background: var(--primary);
}

.header-main .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.logo {
  flex-shrink: 0;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 18em;
}
.logo:hover {
  color: var(--accent) !important;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.15rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-link {
  color: #fff !important;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  border-radius: 2px;
}
.nav-link:hover {
  color: var(--accent) !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
}

.nav-cats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.user-bar-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  padding: 0.2rem 0.55rem 0.2rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.user-bar-wrap .user-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #fff;
}
.user-name-link {
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  max-width: 7.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-name-link:hover {
  color: var(--accent) !important;
}
.user-bar-wrap .user-gold {
  color: #ffd27a !important;
  font-weight: 500;
  text-decoration: none !important;
}
.user-bar-wrap .user-gold:hover {
  color: #fff !important;
}
.user-bar-wrap .btn-text {
  color: rgba(255, 255, 255, 0.75) !important;
}
.user-bar-wrap .btn-text:hover {
  color: #fff !important;
}

.user-meta {
  font-size: 0.9rem;
}
.user-name {
  font-weight: 600;
}
.user-gold {
  color: #b45309;
  margin-left: 0.35rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text) !important;
  background: var(--card);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
}
.btn-text {
  background: none;
  border: none;
  color: var(--muted) !important;
}
.btn-block {
  display: block;
  width: 100%;
}

/* ========== Main ========== */
main.site-main {
  flex: 1;
  max-width: 1170px;
  margin: 0 auto;
  padding: 1.5rem 15px 3rem;
  width: 100%;
}

main.site-main.home-main {
  max-width: none;
  padding: 0 0 0;
}

.page-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========== Banner ========== */
.home-banner {
  background:
    linear-gradient(105deg, rgba(0, 28, 103, 0.88) 0%, rgba(3, 185, 248, 0.55) 100%),
    radial-gradient(ellipse at 20% 30%, #0a3a9e 0%, #001c67 55%, #000b33 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.25rem 4.25rem;
  position: relative;
  overflow: hidden;
}
.home-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}
.home-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.home-banner h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.home-banner p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.92;
}

.home-wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 2rem 15px 3rem;
}

/* ========== Section titles ========== */
.section-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  margin-left: -28px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.45rem;
}
.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}
.section-head a {
  font-size: 0.88rem;
  color: var(--muted);
}
.section-head a:hover {
  color: var(--accent);
}

.home-section {
  margin-bottom: 2.5rem;
}

/* ========== 推荐信息 ========== */
.reco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 992px) {
  .reco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .reco-grid {
    grid-template-columns: 1fr;
  }
}

.reco-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.15rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.reco-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: inherit;
}
.reco-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.reco-card:hover .reco-ico {
  background: var(--accent);
}
.reco-body h5 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reco-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ========== 分类：列表+图 ========== */
.cat-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .cat-split {
    grid-template-columns: 1fr;
  }
}

.cat-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
}
.cat-link-list li {
  border-bottom: 1px dashed var(--border);
}
.cat-link-list li:last-child {
  border-bottom: none;
}
.cat-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
}
.cat-link-list a:hover {
  color: var(--accent);
  background: #f8fbff;
}
.cat-link-list .cat-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.cat-link-list .cat-link-text::before {
  content: '›';
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--accent);
  font-weight: 700;
}
.cat-link-list .cat-link-date {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cat-side-img {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-side-img img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.cat-side-img .cat-side-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem;
  text-align: center;
}

/* ========== 分类：编号双列 ========== */
.num-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem 0.75rem;
}
@media (max-width: 700px) {
  .num-grid {
    grid-template-columns: 1fr;
  }
}
.num-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  color: inherit;
}
.num-item:nth-last-child(-n + 2) {
  border-bottom: none;
}
@media (max-width: 700px) {
  .num-item:nth-last-child(-n + 2) {
    border-bottom: 1px dashed var(--border);
  }
  .num-item:last-child {
    border-bottom: none;
  }
}
.num-item:hover {
  color: inherit;
}
.num-item:hover .num-text {
  color: var(--accent);
}
.num-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.num-item:hover .num-badge {
  background: var(--accent);
}
.num-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.num-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========== 分类：图文卡片 ========== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}
.media-card {
  display: flex;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.media-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: inherit;
}
.media-card img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef2f7;
}
.media-body h5 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card:hover h5 {
  color: var(--accent);
}
.media-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.home-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--border);
}

/* ========== Cards (列表页等) ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg);
}
.card-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.card-title a {
  color: var(--primary);
}
.card-title a:hover {
  color: var(--accent);
}
.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 0.5rem;
}
.card-phone {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ========== Forms ========== */
.form-panel {
  max-width: 440px;
  margin: 0 auto;
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.register-panel {
  max-width: 480px;
}

.reg-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.reg-type-tab {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}
.reg-type-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reg-type-tab span {
  display: block;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.reg-type-tab.active span,
.reg-type-tab input:checked + span {
  border-color: var(--accent);
  background: #e8f8ff;
  color: var(--primary);
}
.enterprise-fields {
  margin-bottom: 0.25rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
}
.agree-row {
  margin-top: 0.35rem;
}
.agree-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.agree-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.agree-label a {
  color: var(--accent);
}
.agree-label a:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal-page h1 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  color: var(--primary);
}
.legal-page h2 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  color: var(--primary);
}
.legal-page p,
.legal-page li {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-page ul {
  padding-left: 1.25rem;
  margin: 0.4rem 0 0.8rem;
}
.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.captcha-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.captcha-row img {
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.alert-info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
}

/* ========== Detail ========== */
.detail-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .detail-layout {
    grid-template-columns: 1fr 320px;
  }
}
.detail-main img.detail-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.detail-side {
  background: var(--card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: fit-content;
}
.detail-recharge-tip {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  text-align: left;
  color: var(--muted);
}
.detail-recharge-tip-mark {
  color: #ff8533;
  font-weight: 700;
  text-decoration: none;
}
.detail-recharge-tip-mark:hover {
  text-decoration: underline;
}

/* ========== Modals ========== */
.login-tip-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 28, 103, 0.45);
}
.login-tip-dialog {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 28, 103, 0.18);
}
.login-tip-msg {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}
.login-tip-btn {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
}
.login-tip-countdown {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}
.login-tip-countdown strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.qr-pay-dialog {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 28, 103, 0.18);
}
.qr-pay-tip {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  white-space: pre-line;
}
.qr-pay-dialog img {
  max-width: 220px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.member-status-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.recharge-packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0.75rem;
  background: #eef2f7;
  border-radius: 8px;
}
.member-packages {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
  .member-packages {
    grid-template-columns: 1fr;
  }
}
.pkg {
  position: relative;
  border: none;
  border-radius: 8px;
  padding: 1.35rem 0.75rem 1.15rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: background-color 0.2s, color 0.2s;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pkg:hover:not(.selected) {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.pkg.selected {
  background: #ff8533;
  box-shadow: 0 4px 12px rgba(255, 133, 51, 0.35);
}
.pkg-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.55rem;
}
.pkg-price {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.pkg-reward {
  color: #ff9a76;
  font-size: 0.82rem;
  margin-top: 0.45rem;
  line-height: 1.3;
}
.pkg-valid {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.pkg.selected .pkg-name,
.pkg.selected .pkg-price,
.pkg.selected .pkg-reward,
.pkg.selected .pkg-valid {
  color: #fff;
}
.member-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
@media (max-width: 800px) {
  .member-benefit-grid {
    grid-template-columns: 1fr;
  }
}
.member-benefit-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  background: #f8fbff;
}
.member-benefit-card h3 {
  margin: 0 0 0.65rem;
  color: var(--primary);
}
.member-benefit-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 0.65rem;
}
.member-benefit-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.15rem;
}
.member-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.member-table th,
.member-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.member-table th {
  background: #f0f4fa;
  color: var(--muted);
  font-weight: 600;
}
.member-table tr:last-child td {
  border-bottom: none;
}
.pkg-badge {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: #ffc107;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 8px 0 10px 0;
  line-height: 1.2;
}

.qr-box {
  text-align: center;
  margin: 1.5rem 0;
}
.qr-box img {
  max-width: 220px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ========== My table ========== */
.my-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.my-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.my-table th,
.my-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.my-table th {
  background: #f0f4fa;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}
.my-table tr:last-child td {
  border-bottom: none;
}
.my-table tr:hover td {
  background: #fafbfc;
}
.my-table .status-on {
  color: #15803d;
  font-weight: 500;
}
.my-table .status-off {
  color: var(--muted);
}
.my-table .btn-xs {
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  border-radius: 4px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
  margin-top: auto;
  font-size: 0.88rem;
}
.footer-body {
  max-width: 1170px;
  margin: 0 auto;
  padding: 2.25rem 15px 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.footer-col h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.45rem;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin: 0.45rem 0;
  line-height: 1.55;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-company-name {
  color: #fff;
  font-weight: 600;
}
.footer-icp {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 15px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-icp a {
  color: rgba(255, 255, 255, 0.65);
}
.footer-icp a:hover {
  color: var(--accent);
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}
.pagination .active {
  border-color: var(--accent);
  color: var(--accent);
  background: #e8f8ff;
}

/* ========== Publish ========== */
.publish-page {
  max-width: 720px;
  margin: 0 auto;
}
.publish-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.publish-head .page-title {
  margin-bottom: 0.5rem;
}
.publish-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.publish-login-tip {
  max-width: 420px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.publish-login-tip p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text);
}
.publish-panel {
  background: var(--card);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .publish-panel {
    padding: 2rem 2.25rem;
  }
}
.publish-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.publish-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.publish-section-title {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding-left: 0.65rem;
  border-left: 3px solid var(--accent);
}
.publish-row {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 520px) {
  .publish-row {
    grid-template-columns: 1fr 1fr;
  }
}
.publish-panel .form-group input:focus,
.publish-panel .form-group select:focus,
.publish-panel .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3, 185, 248, 0.15);
}
.publish-upload {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}
.publish-upload:hover {
  border-color: var(--accent);
  background: #f0fbff;
}
.publish-upload input[type='file'] {
  width: 100%;
  font-size: 0.9rem;
}
.publish-upload-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.publish-upload-preview {
  margin-top: 0.75rem;
}
.publish-upload-preview img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #f8fafc;
}
.publish-content-group textarea {
  min-height: 160px;
}
.publish-actions {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.publish-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.publish-note strong {
  color: #c2410c;
  font-weight: 600;
}
.publish-submit {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .header-main .header-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .nav-menu {
    margin-left: 0;
    width: 100%;
  }
  .nav-link {
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
  }
  .home-banner {
    padding: 3rem 1rem;
  }
}
