/* ============================================
   初鹿网络 - 长沙初鹿网络科技有限公司
   UI参照 bj-kpn.com 视觉风格设计
   深海军蓝 + 红色点缀 / 企业级排版
   ============================================ */

:root {
  --ink: #1a2540;
  --muted: #5a6a85;
  --line: #e3e8f0;
  --soft: #f5f8fb;
  --paper: #ffffff;
  --navy: #0c2545;
  --navy-dark: #061a30;
  --navy-light: #1a3a6b;
  --brand: #0c2545;
  --brand-dark: #061a30;
  --accent: #e63946;
  --accent-dark: #b81d2a;
  --accent-soft: #fff1f2;
  --blue: #1a3a6b;
  --gold: #d4a857;
  --danger: #b42318;
  --shadow-sm: 0 2px 8px rgba(12, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 37, 69, 0.08);
  --shadow-lg: 0 18px 48px rgba(12, 37, 69, 0.14);
  --radius: 4px;
  --radius-lg: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  line-height: 1.7;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Top bar ===== */
.topbar {
  color: #c7d3e3;
  background: var(--navy-dark);
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 16px;
}

.topbar-right {
  display: flex;
  gap: 22px;
}

.topbar-right span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(12, 37, 69, 0.02);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 14px 16px;
  color: #2a3a55;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a:hover::after {
  width: 60%;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-name {
  max-width: 220px;
  overflow: hidden;
  color: #2a3a55;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
}

.hero-slides {
  position: relative;
}

.hero-slide {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 26, 48, 0.92) 0%, rgba(12, 37, 69, 0.78) 45%, rgba(26, 58, 107, 0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-left: 3px solid var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(230, 57, 70, 0.12);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 2px;
}

.hero .lead {
  max-width: 580px;
  margin: 0 0 32px;
  color: #d7e1ee;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -52px;
  padding: 0 20px;
  background: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  transform: translateY(-52px);
}

.hero-stats > div {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.hero-stats > div:last-child {
  border-right: 0;
}

.hero-stats .metric {
  display: block;
  color: var(--navy);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-stats small {
  color: var(--muted);
  font-size: 13px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.btn.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(230, 57, 70, 0.3);
}

.btn.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.btn.secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn.ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.small-btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.small-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== Section header ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.center {
  display: block;
  text-align: center;
  margin-bottom: 36px;
}

.section-head.center h2::after {
  margin: 14px auto 0;
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-head h2 {
  position: relative;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: var(--accent);
}

.section-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.result-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--navy);
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
}

/* ===== About section ===== */
.about-section {
  padding: 80px 0 90px;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-image::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius) 0 0 0;
}

.about-image::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 80px;
  height: 80px;
  border-bottom: 3px solid var(--navy);
  border-right: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) 0;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 14px 20px;
  background: rgba(12, 37, 69, 0.92);
  color: #fff;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  backdrop-filter: blur(6px);
}

.about-badge strong {
  display: block;
  font-size: 18px;
  letter-spacing: 1px;
}

.about-badge span {
  font-size: 12px;
  color: #c7d3e3;
}

.about-copy h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.about-desc {
  margin: 0 0 24px;
  color: #4a5670;
  font-size: 15px;
  line-height: 1.95;
}

.about-points {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px dashed var(--line);
  color: #4a5670;
  font-size: 14px;
  line-height: 1.85;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

.about-points strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: all 0.2s ease;
}

.link-more span {
  transition: transform 0.2s ease;
}

.link-more:hover {
  color: var(--accent);
}

.link-more:hover span {
  transform: translateX(4px);
}

/* ===== Category band ===== */
.category-band {
  padding: 70px 0;
  background: var(--soft);
  position: relative;
}

.category-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 50%, var(--navy) 100%);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
  width: 100%;
}

.category-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
}

.category-icon::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.category-card strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Content / Listings ===== */
.content-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 70px 0;
}

.filter-panel {
  position: sticky;
  top: 130px;
  align-self: start;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-panel h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.filter-panel h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.filter-buttons {
  display: grid;
  gap: 6px;
}

.filter-buttons button {
  width: 100%;
  padding: 11px 14px;
  color: #4a5670;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-buttons button:hover {
  border-left-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.filter-buttons button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  border-left-color: var(--accent);
  font-weight: 600;
}

.notice {
  margin-top: 22px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.listing-area {
  min-width: 0;
}

.listing-list {
  display: grid;
  gap: 14px;
}

.listing-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.listing-card:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.listing-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  color: #4a5670;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.tag.price {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(230, 57, 70, 0.2);
  font-weight: 700;
}

.tag.vip {
  color: #8a4b00;
  background: #fff4dc;
  border-color: #efc36d;
}

.tag.live {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}

.tag.recommend {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.listing-side {
  min-width: 140px;
  padding-left: 20px;
  border-left: 1px dashed var(--line);
  color: var(--muted);
  text-align: right;
  font-size: 13px;
}

.listing-side strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.listing-side span {
  display: block;
  margin-bottom: 4px;
}

/* ===== Solutions ===== */
.solutions-section {
  padding: 80px 0;
  background: var(--navy);
  background-image:
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 24px);
  color: #fff;
  position: relative;
}

.solutions-section .section-eyebrow {
  color: var(--accent);
}

.solutions-section .section-head h2 {
  color: #fff;
}

.solutions-section .section-sub {
  color: #c7d3e3;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.solution-card {
  position: relative;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.solution-card:hover {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.solution-card:hover h3,
.solution-card:hover p {
  color: var(--navy);
}

.solution-card:hover .link-more {
  color: var(--accent);
}

.solution-icon {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.solution-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-icon img {
  transform: scale(1.05);
}

.solution-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 37, 69, 0.55) 100%);
}

.solution-card h3 {
  margin: 0 0 10px;
  padding: 0 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.solution-card h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: var(--accent);
}

.solution-card p {
  margin: 12px 20px 16px;
  color: #c7d3e3;
  font-size: 13px;
  line-height: 1.8;
}

.solution-card .link-more {
  margin: 0 20px 22px;
  color: #fff;
  font-size: 13px;
  border-bottom-color: var(--accent);
}

/* ===== Membership ===== */
.membership {
  padding: 80px 0;
  background: #fff;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan {
  position: relative;
  padding: 32px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}

.plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--navy);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.plan.featured::before {
  background: var(--accent);
}

.plan.featured::after {
  content: "推荐";
  position: absolute;
  top: 16px;
  right: -32px;
  padding: 4px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  transform: rotate(45deg);
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
}

.price {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 32px;
  font-weight: 800;
}

.plan p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.plan span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 5px 12px;
  color: var(--navy);
  background: var(--soft);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.plan.featured span {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Publish ===== */
.publish-band {
  padding: 80px 0;
  background: var(--soft);
  position: relative;
}

.publish-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--navy) 100%);
}

.publish-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.publish-grid h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.publish-grid > div > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.publish-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.publish-points li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: #4a5670;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}

.publish-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 800;
}

.publish-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.publish-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
}

.publish-form label:nth-child(5),
.publish-form label:nth-child(6),
.publish-form .checkline,
.publish-form button,
.form-note {
  grid-column: 1 / -1;
}

.checkline {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  color: var(--muted) !important;
  font-size: 13px;
}

.checkline input {
  width: auto;
  margin-top: 5px;
}

.checkline a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

textarea {
  resize: vertical;
  font-family: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #c7d3e3;
  background-image:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col h4 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-slogan {
  margin: 0 0 18px;
  color: #8b9bb4;
  font-size: 13px;
}

.footer-contact {
  margin: 0 0 8px;
  color: #8b9bb4;
  font-size: 13px;
}

.footer-contact strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #8b9bb4;
  font-size: 13px;
  transition: all 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-col p {
  margin: 0 0 8px;
  color: #8b9bb4;
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.25);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #6c7e9a;
  font-size: 12px;
}

.footer-bottom a {
  color: #8b9bb4;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.site-footer a {
  color: #c7d3e3;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 26, 48, 0.72);
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(6, 26, 48, 0.4);
}

.modal-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 100%);
  content: "";
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-card.wide {
  width: min(780px, 100%);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  color: #5a6a85;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0 24px;
  padding: 5px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-tabs button {
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}

.auth-tabs button.active {
  color: #fff;
  background: var(--navy);
}

.auth-form,
.content-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.content-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
}

.agreement-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.agreement-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hidden {
  display: none !important;
}

/* ===== Detail ===== */
.detail-box {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.detail-box p {
  margin-bottom: 6px;
}

.detail-content {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.detail-content section {
  padding: 18px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-content h3,
.profile-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.detail-content p {
  margin: 0;
  color: #4a5670;
  font-size: 14px;
}

.detail-content ul {
  margin: 0;
  padding-left: 20px;
  color: #4a5670;
  font-size: 14px;
}

.detail-content li + li {
  margin-top: 6px;
}

/* ===== Payment modal ===== */
.payment-card {
  width: min(520px, 100%);
}

.payment-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.payment-box div,
.profile-summary div,
.mini-plans article,
.record-row {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-box span,
.profile-summary span,
.record-row span,
.mini-plans span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.payment-box strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  color: var(--accent);
}

.payment-message,
.muted-text {
  color: var(--muted);
}

.pay-code {
  display: grid;
  width: 200px;
  height: 200px;
  margin: 22px auto 6px;
  place-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pay-code img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.profile-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: var(--navy);
}

.profile-section {
  margin-top: 22px;
}

.mini-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-plans article {
  display: grid;
  gap: 8px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.record-row strong {
  color: var(--navy);
}

.notice-card {
  width: min(430px, 100%);
  text-align: center;
}

.notice-card h2 {
  margin: 12px 36px 8px;
}

.notice-card p {
  color: #4a5670;
}

.modal-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 10px auto 8px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.recharge-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.recharge-presets button {
  padding: 14px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.recharge-presets button:hover,
.recharge-presets button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.recharge-custom {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
}

/* ===== Admin ===== */
.admin-hero {
  padding: 60px 0 50px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 26, 48, 0.95) 0%, rgba(12, 37, 69, 0.88) 50%, rgba(26, 58, 107, 0.8) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 24px);
  border-bottom: 3px solid var(--accent);
}

.admin-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 2px;
}

.admin {
  padding: 50px 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
}

.admin-tabs button {
  position: relative;
  padding: 12px 22px;
  background: transparent;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-tabs button:hover {
  color: var(--navy);
}

.admin-tabs button.active {
  color: var(--accent);
}

.admin-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.admin-panel {
  min-height: 280px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--navy);
  font-weight: 800;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #fff;
  background: var(--navy);
  font-weight: 600;
  letter-spacing: 0.5px;
}

tr:hover td {
  background: var(--soft);
}

.small-btn.danger {
  color: var(--danger);
  border-color: #fecdca;
}

.small-btn.danger:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.admin-tip {
  margin: -6px 0 14px;
  padding: 12px 14px;
  color: #4a5670;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 13px;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
  color: var(--navy);
}

.content-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar-right {
    gap: 12px;
  }

  .topbar-right span:not(:last-child)::after {
    content: " ·";
    color: #5a6a85;
  }
  .topbar-right span::before {
    display: none;
  }

  .nav-row,
  .topbar-inner,
  .footer-bottom-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    order: 3;
    padding-bottom: 6px;
  }

  .account-bar {
    margin-left: 0;
  }

  .hero-slide {
    min-height: 440px;
  }

  .hero-inner {
    padding: 60px 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats > div:nth-child(2) {
    border-right: 0;
  }

  .hero-stats > div:nth-child(1),
  .hero-stats > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .about-grid,
  .content-grid,
  .publish-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image img {
    height: 280px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-panel {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, var(--container));
  }

  .topbar-inner {
    font-size: 11px;
  }

  .topbar-right {
    gap: 8px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .nav-row {
    min-height: 64px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .hero-slide {
    min-height: 380px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .lead {
    font-size: 14px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats > div {
    padding: 18px 12px;
  }

  .hero-stats .metric {
    font-size: 20px;
  }

  .about-section,
  .category-band,
  .content-grid,
  .solutions-section,
  .membership,
  .publish-band {
    padding: 50px 0;
  }

  .section-head h2,
  .about-copy h2 {
    font-size: 22px;
  }

  .category-grid,
  .solutions-grid,
  .plans,
  .mini-plans,
  .profile-summary,
  .stat-grid,
  .publish-form,
  .recharge-presets {
    grid-template-columns: 1fr;
  }

  .publish-form {
    padding: 20px;
  }

  .payment-box,
  .record-row {
    grid-template-columns: 1fr;
  }

  .listing-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .listing-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
    text-align: left;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .modal-card {
    padding: 24px 20px;
  }
}
