/* 廊坊瑞泷信息科技有限公司 - 信息发布平台 公共样式 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1e3a5f;
  --primary-2: #2a4d7a;
  --primary-3: #3a6494;
  --accent: #b08a3e;
  --accent-2: #c9a961;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --border: #e3e6eb;
  --border-2: #d6dae1;
  --text: #1a1f2e;
  --text-2: #4d5566;
  --text-3: #7a8294;
  --success: #2f7a4f;
  --warn: #b87514;
  --danger: #a8413a;
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.04);
  --shadow: 0 4px 14px rgba(20, 30, 50, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 30, 50, 0.10);
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1180px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-size: 16px; letter-spacing: 0.5px; }
.brand-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.nav a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }
.nav a.active { color: var(--primary); background: rgba(30, 58, 95, 0.08); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  transition: all 0.15s;
}
.btn:hover { border-color: var(--primary-3); color: var(--primary); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* ---------- Container ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 32px 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 32px 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #142a47;
  color: #c8d0dd;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 500; }
.footer-col a { color: #98a3b5; display: block; padding: 4px 0; font-size: 13px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col p { font-size: 13px; line-height: 1.8; color: #98a3b5; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-name { color: #fff; font-size: 15px; font-weight: 600; }
.footer-brand-mark { width: 32px; height: 32px; }

.footer-bottom {
  border-top: 1px solid #1f3a5c;
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: #8090a8;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-bottom a { color: #98a3b5; }
.footer-bottom a:hover { color: #fff; text-decoration: none; }
.footer-bottom .icp-link { display: inline-flex; align-items: center; gap: 4px; }
.icp-icon { width: 14px; height: 14px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2a4d7a 60%, #3a6494 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(201, 169, 97, 0.18) 0, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 56px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) { .hero-inner { padding: 40px 24px; } }
.hero h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--accent-2); }
.hero p {
  font-size: 15px;
  line-height: 1.8;
  color: #c5d0e0;
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 10px;
}
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 18px 16px;
  backdrop-filter: blur(2px);
}
.hero-card .icon { width: 28px; height: 28px; color: var(--accent-2); margin-bottom: 10px; }
.hero-card .num { font-size: 22px; font-weight: 600; color: #fff; }
.hero-card .label { font-size: 12px; color: #aab8cc; margin-top: 4px; }

/* ---------- 通用模块 ---------- */
.section { margin-bottom: 40px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 3px; height: 16px; background: var(--accent); border-radius: 2px;
}
.section-sub { color: var(--text-3); font-size: 13px; }
.section-more { font-size: 13px; color: var(--text-3); }

/* ---------- 分类卡片 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  text-align: center;
  transition: all 0.18s;
  cursor: pointer;
  color: var(--text);
}
.cat-card:hover {
  border-color: var(--primary-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.cat-card .icon {
  width: 36px; height: 36px;
  color: var(--primary);
  margin: 0 auto 10px;
  display: block;
}
.cat-card .name { font-size: 14px; font-weight: 500; }
.cat-card .desc { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }

/* ---------- 信息卡片 ---------- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .list-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.18s;
  cursor: pointer;
  color: var(--text);
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--primary-3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.card-img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef0f4;
  border-bottom: 1px solid var(--border);
}
.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
}
.tag.gray { background: var(--bg); color: var(--text-2); }
.tag.warn { background: rgba(176, 138, 62, 0.12); color: var(--warn); }
.card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-summary {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.card-meta .left { display: flex; align-items: center; gap: 6px; }
.card-meta .author { color: var(--text-2); font-weight: 500; }
.card-meta .right { display: flex; align-items: center; gap: 10px; }

/* ---------- 列表筛选 ---------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 22px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.filter-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-cat {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.filter-cat:hover { color: var(--primary); border-color: var(--primary-3); }
.filter-cat.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.filter-search { margin-left: auto; display: flex; gap: 6px; }
.filter-search input {
  width: 220px;
  padding: 7px 12px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--surface-2);
}
.filter-search input:focus { outline: none; border-color: var(--primary-3); background: #fff; }

/* ---------- 详情页 ---------- */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
@media (max-width: 900px) { .detail-wrap { grid-template-columns: 1fr; } }

.detail-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.detail-cover {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef0f4;
}
.detail-body { padding: 24px 28px 28px; }
.detail-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-title {
  font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--text);
  margin-bottom: 12px;
}
.detail-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.detail-meta .item { display: flex; align-items: center; gap: 5px; }
.detail-meta svg { width: 14px; height: 14px; }
.detail-section { margin-bottom: 24px; }
.detail-section h3 {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--accent);
}
.detail-section p {
  font-size: 14px; line-height: 1.85; color: var(--text-2);
  white-space: pre-wrap;
}

.detail-side {
  display: flex; flex-direction: column; gap: 18px;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.side-card h4 {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.side-card h4 .accent-bar { width: 3px; height: 14px; background: var(--accent); border-radius: 2px; }
.side-info { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.side-info .row { display: flex; justify-content: space-between; gap: 8px; }
.side-info .label { color: var(--text-3); }
.side-info .value { color: var(--text); text-align: right; }
.side-contact {
  background: linear-gradient(135deg, #1e3a5f 0%, #2a4d7a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.side-contact h4 { color: #fff; margin-bottom: 14px; }
.side-contact .ct-row { font-size: 13px; line-height: 1.8; color: #c8d0dd; margin-bottom: 8px; }
.side-contact .ct-row strong { color: #fff; }
.side-contact .phone-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 8px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.side-contact .phone-box svg { width: 18px; height: 18px; }
.side-contact .masked-note {
  background: rgba(201, 169, 97, 0.12);
  border: 1px dashed rgba(201, 169, 97, 0.4);
  color: #f0d896;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 8px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.side-contact .masked-note svg { width: 16px; height: 16px; flex: none; }
.side-contact .btn { background: var(--accent-2); color: #142a47; border-color: var(--accent-2); width: 100%; justify-content: center; }
.side-contact .btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 提示条 ---------- */
.notice {
  background: rgba(176, 138, 62, 0.06);
  border: 1px solid rgba(176, 138, 62, 0.20);
  color: var(--warn);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 16px;
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
.field label {
  display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px;
}
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  transition: all 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary-3); background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.checkbox {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer;
}
.checkbox input { margin-top: 3px; }
.checkbox a { color: var(--primary); text-decoration: underline; }
.checkbox a:hover { color: var(--primary-3); }

.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.form-actions .btn { flex: 1; justify-content: center; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 20px; margin-bottom: 6px; color: var(--text); }
.auth-card .sub { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.auth-foot a { color: var(--primary); }

/* ---------- 关于我们 / 协议 ---------- */
.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  line-height: 1.85;
}
.doc h1 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.doc .meta { color: var(--text-3); font-size: 12px; margin-bottom: 28px; }
.doc h2 { font-size: 16px; margin: 26px 0 10px; color: var(--text); padding-left: 10px; border-left: 3px solid var(--accent); }
.doc p { color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
.doc ul { color: var(--text-2); padding-left: 22px; font-size: 14px; margin-bottom: 12px; }
.doc ul li { margin-bottom: 6px; }

.company-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
}
.company-info .cell {
  background: var(--surface);
  padding: 12px 16px;
  font-size: 13px;
  display: flex; gap: 8px;
}
.company-info .label { color: var(--text-3); flex: none; min-width: 80px; }
.company-info .value { color: var(--text); flex: 1; }
@media (max-width: 600px) { .company-info { grid-template-columns: 1fr; } }

/* ---------- 后台 ---------- */
.admin-tabs {
  display: flex; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.admin-tab {
  padding: 6px 16px; font-size: 13px; border-radius: 4px;
  color: var(--text-2); cursor: pointer;
}
.admin-tab.active { background: var(--primary); color: #fff; }

.admin-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.admin-table th { background: var(--surface-2); color: var(--text-2); font-weight: 500; font-size: 12px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .status-tag {
  display: inline-block; font-size: 11px;
  padding: 2px 8px; border-radius: 4px;
}
.status-pending { background: rgba(176, 138, 62, 0.12); color: var(--warn); }
.status-approved { background: rgba(47, 122, 79, 0.10); color: var(--success); }
.status-rejected { background: rgba(168, 65, 58, 0.10); color: var(--danger); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 10px 20px; border-radius: 6px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: toast-in 0.2s ease-out;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-3);
}
.empty .icon { width: 56px; height: 56px; color: var(--border-2); margin: 0 auto 14px; display: block; }
.empty .hint { font-size: 14px; }
