/* ============================================================
   冻品汇采 MeatLink — 全站样式 v3
   设计语言：青蓝科技渐变 + 珊瑚橙强调 + 玻璃拟态 + 响应式
   ============================================================ */
:root {
  --c-primary-900: #0C2D48;
  --c-primary-800: #134B6E;
  --c-primary-700: #1A6BAF;
  --c-primary-500: #0EA5E9;
  --c-primary-400: #38BDF8;
  --c-primary-300: #7DD3FC;
  --c-primary-100: #E0F2FE;
  --c-primary-050: #F0FAFF;
  --c-accent-700: #C2410C;
  --c-accent-600: #EA580C;
  --c-accent-500: #F97316;
  --c-accent-400: #FB923C;
  --c-accent-300: #FDBA74;
  --c-accent-100: #FFF7ED;
  --c-success: #059669;
  --c-success-bg: #ECFDF5;
  --c-warning: #D97706;
  --c-warning-bg: #FFFBEB;
  --c-error: #DC2626;
  --c-error-bg: #FEF2F2;
  --c-info: #0284C7;
  --c-info-bg: #F0F9FF;
  --c-ink-900: #1E293B;
  --c-ink-700: #475569;
  --c-ink-500: #94A3B8;
  --c-ink-400: #CBD5E1;
  --c-line-300: #E2E8F0;
  --c-line-200: #F1F5F9;
  --c-bg-100: #F8FAFC;
  --c-bg-050: #FCFDFF;
  --c-white: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #14B8A6 100%);
  --gradient-hero: linear-gradient(135deg, #0C2D48 0%, #1A6BAF 35%, #0EA5E9 70%, #06B6D4 100%);
  --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  --primary: var(--c-primary-700);
  --accent: var(--c-accent-500);
  --bg: var(--c-bg-100);
  --card: var(--c-white);
  --text: var(--c-ink-900);
  --text-sub: var(--c-ink-500);
  --border: var(--c-line-300);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(15,45,72,.06);
  --shadow-hover: 0 12px 32px rgba(14,165,233,.12);
  --shadow-lg: 0 16px 40px rgba(15,45,72,.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航 ===== */
.navbar {
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-line-200), 0 4px 20px rgba(15,45,72,.05);
  position: sticky; top: 0; z-index: 1000;
}
.navbar .container {
  display: flex; align-items: center; height: 68px; gap: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text {
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-text small {
  display: block; font-size: 10px; color: var(--c-ink-500); font-weight: 500;
  letter-spacing: 2px; -webkit-text-fill-color: var(--c-ink-500); margin-top: 1px;
}
.nav-links { display: flex; gap: 3px; flex: 1; position: relative; }
.nav-item { position: relative; }
.nav-links > a, .nav-item > a {
  padding: 7px 10px; border-radius: 10px; font-size: 13.5px; color: var(--c-ink-700);
  font-weight: 500; transition: all .2s; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-links > a:hover, .nav-item > a:hover { background: var(--c-primary-050); color: var(--c-primary-700); }
.nav-links > a.active { background: var(--gradient-primary); color: #fff; box-shadow: 0 4px 12px rgba(14,165,233,.3); }
.nav-item > a::after { content: "▾"; font-size: 11px; opacity: .5; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 200px; background: #fff; border-radius: 12px; padding: 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  box-shadow: var(--shadow-lg); z-index: 1001; border: 1px solid var(--c-line-200);
}
.nav-item.open .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-dropdown a {
  display: block; padding: 9px 14px; color: var(--c-ink-700); font-size: 13.5px;
  border-radius: 8px; transition: background .15s;
}
.nav-dropdown a:hover { background: var(--c-primary-050); color: var(--c-primary-700); }
.nav-cta { display: flex; gap: 10px; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px;
  border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  transition: all .2s; gap: 6px;
}
.btn-primary { background: var(--gradient-accent); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.4); }
.btn-outline { border: 1.5px solid var(--c-line-300); color: var(--c-ink-700); background: #fff; }
.btn-outline:hover { border-color: var(--c-primary-400); color: var(--c-primary-700); }
.btn-ghost { background: var(--c-bg-100); color: var(--c-ink-700); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.nav-burger {
  display: none; background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--c-ink-700); padding: 6px;
}

/* ===== Hero ===== */
.hero {
  background: var(--gradient-hero); color: #fff; text-align: center;
  padding: 72px 20px 64px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(20,184,166,.25), transparent 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 38px; font-weight: 800; letter-spacing: 0; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--c-accent-400); }
.hero p { font-size: 16px; opacity: .9; max-width: 680px; margin: 0 auto 30px; }
.search-box {
  display: flex; max-width: 720px; margin: 0 auto; background: #fff; border-radius: 14px;
  padding: 6px; gap: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.search-box select {
  border: none; background: var(--c-bg-100); border-radius: 10px; padding: 12px;
  font-size: 14px; color: var(--c-ink-700); outline: none; min-width: 130px;
}
.search-box input { flex: 1; border: none; outline: none; padding: 12px; font-size: 14.5px; min-width: 0; }
.search-box button {
  background: var(--gradient-accent); color: #fff; border: none; border-radius: 10px;
  padding: 12px 26px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.hero-tags { margin-top: 20px; font-size: 13px; opacity: .85; }
.hero-tags a { color: #fff; text-decoration: underline; margin: 0 6px; }
.hero-tags a:hover { color: var(--c-accent-300); }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .num { font-size: 28px; font-weight: 800; }
.hero-stats .lbl { font-size: 13px; opacity: .8; }

/* ===== 通用区块 ===== */
.section { padding: 44px 0 12px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head .more { font-size: 14px; color: var(--c-primary-700); font-weight: 600; }

/* ===== 企业卡片 ===== */
/* 改为等宽栅格：卡片左→右顺序排列、行高对齐，移动端自动降列 */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.c-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 14px; padding: 20px;
  margin-bottom: 0; border: 1px solid var(--c-line-200);
  transition: all .2s; box-shadow: var(--shadow);
}
.c-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--c-primary-300); }
.c-top { display: flex; gap: 12px; align-items: flex-start; }
.c-logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.c-name h3 { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.c-type { display: inline-block; font-size: 12px; font-weight: 600; margin-top: 4px; }
.c-intro {
  font-size: 13px; color: var(--c-ink-500); margin: 12px 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.c-tags span {
  font-size: 12px; color: var(--c-ink-700); background: var(--c-bg-100);
  border: 1px solid var(--c-line-200); padding: 3px 9px; border-radius: 7px;
}
.c-foot {
  display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--c-line-200); font-size: 12.5px; color: var(--c-ink-500);
}

/* ===== 分类卡 ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: block; background: #fff; border-radius: 14px; padding: 22px; text-align: center;
  border-top: 4px solid var(--c-primary-500); transition: all .2s; box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-card .ico { font-size: 32px; }
.cat-card h3 { font-size: 16px; margin: 10px 0 6px; }
.cat-card p { font-size: 12.5px; color: var(--c-ink-500); line-height: 1.6; }
.cat-card .cnt { display: block; margin-top: 12px; font-size: 13px; color: var(--c-primary-700); font-weight: 600; }

/* ===== 资讯 ===== */
.news-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.news-list-card { background: #fff; border-radius: 14px; padding: 4px 22px 20px; box-shadow: var(--shadow); }
.news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line-200); }
.news-item:last-child { border-bottom: none; }
.news-date { text-align: center; min-width: 44px; }
.news-date .d { font-size: 22px; font-weight: 800; color: var(--c-primary-700); }
.news-date .ym { font-size: 11px; color: var(--c-ink-500); }
.news-item h4 { font-size: 14.5px; margin-bottom: 4px; }
.news-item p { font-size: 12.5px; color: var(--c-ink-500); }
.news-cat-badge { font-size: 11px; padding: 2px 7px; border-radius: 6px; margin-right: 6px; }
.cat-industry { background: var(--c-info-bg); color: var(--c-info); }
.cat-policy { background: var(--c-warning-bg); color: var(--c-warning); }

/* ===== 页脚 ===== */
.footer { background: var(--c-primary-900); color: rgba(255,255,255,.7); margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 32px; }
.footer-logo { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer p { font-size: 13px; line-height: 1.8; }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer a { display: block; font-size: 13px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12.5px; text-align: center; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-ink-700); margin-bottom: 6px; }
.form-group label .req { color: var(--c-error); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--c-line-300); border-radius: 10px;
  padding: 11px 13px; font-size: 14.5px; outline: none; transition: all .15s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--c-primary-500); box-shadow: 0 0 0 3px rgba(14,165,233,.13);
}
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err-tip { color: var(--c-error); font-size: 12.5px; margin-top: 6px; min-height: 18px; }
.ok-tip { color: var(--c-success); font-size: 12.5px; margin-top: 6px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn-code {
  white-space: nowrap; padding: 11px 16px; background: var(--c-primary-050);
  border: 1.5px solid var(--c-primary-300); border-radius: 10px; color: var(--c-primary-700);
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.code-row .btn-code:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 认证页 ===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--gradient-primary); }
.auth-card {
  background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(15,45,72,.28);
  max-width: 430px; width: 100%; overflow: hidden;
}
.auth-head { background: var(--gradient-primary); color: #fff; padding: 30px 32px 26px; text-align: center; }
.auth-head .ico { font-size: 34px; }
.auth-head h1 { font-size: 21px; margin: 6px 0 2px; }
.auth-head p { font-size: 12.5px; opacity: .8; }
.auth-body { padding: 26px 32px 30px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--c-ink-500); }
.auth-foot a { color: var(--c-primary-700); font-weight: 600; }
.btn-login {
  width: 100%; padding: 13px; background: var(--gradient-primary); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(14,165,233,.3); margin-top: 8px;
}
.btn-login:disabled { opacity: .6; cursor: not-allowed; }
.tabs { display: flex; background: var(--c-bg-100); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 9px; border: none; background: transparent; color: var(--c-ink-500);
  font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 8px;
}
.tabs button.active { background: #fff; color: var(--c-primary-700); box-shadow: var(--shadow); }

/* ===== 商家后台 ===== */
.dash-wrap { display: flex; min-height: 100vh; }
.dash-side {
  width: 230px; background: linear-gradient(180deg, #0C2D48, #1A6BAF); color: rgba(255,255,255,.7);
  flex-shrink: 0; display: flex; flex-direction: column;
}
.dash-side .logo { color: #fff; padding: 22px 20px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dash-menu { padding: 14px; flex: 1; }
.dash-menu a {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; margin-bottom: 4px; cursor: pointer; transition: all .15s;
}
.dash-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.dash-menu a.on { background: var(--gradient-accent); color: #fff; }
.dash-side .logout { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.dash-side .logout a { color: rgba(255,255,255,.7); font-size: 13.5px; }
.dash-main { flex: 1; padding: 28px 32px; overflow-y: auto; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dash-head h1 { font-size: 22px; }
.panel { background: #fff; border-radius: 14px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel h2 { font-size: 16px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--c-primary-700); }
.stat-card .lbl { font-size: 13px; color: var(--c-ink-500); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 10px 12px; background: var(--c-bg-100); color: var(--c-ink-500); font-weight: 600; }
.table td { padding: 12px; border-bottom: 1px solid var(--c-line-200); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--c-success-bg); color: var(--c-success); }
.badge-orange { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-red { background: var(--c-error-bg); color: var(--c-error); }
.badge-blue { background: var(--c-info-bg); color: var(--c-info); }

/* ===== 企业详情 ===== */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.detail-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.detail-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.detail-logo { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.detail-name h1 { font-size: 22px; }
.detail-name .sub { font-size: 13px; color: var(--c-ink-500); margin-top: 4px; }
.detail-sec { margin-top: 20px; }
.detail-sec h3 { font-size: 14px; color: var(--c-ink-500); margin-bottom: 10px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: 13px; background: var(--c-bg-100); margin: 0 6px 6px 0; border: 1px solid var(--c-line-200); }
.chip.cert { background: var(--c-accent-100); color: var(--c-accent-700); border-color: transparent; }

/* ===== 交互增强（键盘可见焦点 / 点击反馈 / 空状态 / 移动端抽屉CTA） ===== */
:focus-visible { outline: 2px solid var(--c-primary-500); outline-offset: 2px; border-radius: 6px; }
.btn:active { transform: translateY(0) scale(.97); }
a, button, .btn, .c-card, .cat-card, .nav-item > a, .nav-links > a { -webkit-tap-highlight-color: rgba(14,165,233,.18); }
::selection { background: var(--c-primary-100); color: var(--c-primary-900); }
.empty-state { text-align: center; padding: 56px 20px; color: var(--c-ink-500); }
.empty-state .ico { font-size: 44px; margin-bottom: 10px; }
.empty-state h3 { font-size: 17px; color: var(--c-ink-700); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; }
/* 移动端抽屉内的登录/入驻按钮（默认隐藏，仅移动端展开时显示） */
.nav-drawer-cta { display: none; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 14px 16px; gap: 2px;
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-item > a { padding: 12px 12px; min-height: 44px; font-size: 14.5px; }
  .nav-dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border: none; padding-left: 16px; display: none; }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-drawer-cta { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 0; margin-top: 6px; border-top: 1px solid var(--c-line-200); }
  .nav-drawer-cta .btn { width: 100%; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .search-box { flex-wrap: wrap; }
  .search-box select, .search-box input { width: 100%; }
  .masonry { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .news-flex { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid2 { grid-template-columns: 1fr; }
  .dash-wrap { flex-direction: column; }
  .dash-side { width: 100%; flex-direction: row; align-items: center; }
  .dash-menu { display: flex; padding: 8px; overflow-x: auto; }
  .dash-menu a { white-space: nowrap; margin-bottom: 0; }
  .stat-grid { grid-template-columns: 1fr; }
}
