/* ============================================================
   云牛集 · 牛只交易平台（trade.yunniuji.com）门户落地页样式
   视宽 1440px · 纯静态 CSS · 无外部字体 / CDN / 图片依赖
   品牌设计系统 Token 与 colors_and_type.css 保持一致
   ============================================================ */

/* ------------------------------------------------------------
   1. 品牌 Token（与官网 / 后台 / 大屏全局 Token 同源）
   ------------------------------------------------------------ */
:root {
  /* 品牌主色（绿系深青） */
  --primary: #0f4c5c;
  --primary-rgb: 15, 76, 92;
  --primary-light: #1a6e7e;
  --primary-dark: #0a3540;
  --primary-deep: #082c36;
  --primary-soft: #e3efec;
  --primary-mist: #f0f7f6;

  /* 功能色 */
  --success: #3ccb7f;
  --success-soft: #e6f7ee;
  --warning: #f2a325;
  --warning-soft: #fdf3e0;
  --info: #1e6fd9;
  --info-soft: #e8f0fb;
  --accent-gold: #d9a441;
  --accent-gold-dark: #a97b1f;

  /* 中性色 */
  --neutral-900: #1a1a2e;
  --neutral-800: #2d2d44;
  --neutral-700: #4a4a6a;
  --neutral-600: #6b6b87;
  --neutral-500: #9090a3;
  --neutral-400: #b8b8c8;
  --neutral-300: #d4d4de;
  --neutral-200: #e8e8ef;
  --neutral-100: #f5f5fa;
  --neutral-50: #fafafd;

  /* 品牌渐变 */
  --gradient-brand: linear-gradient(135deg, #0f4c5c, #12b5b0);
  --gradient-green: linear-gradient(135deg, #0f4c5c, #3ccb7f);
  --gradient-info: linear-gradient(135deg, #0f4c5c, #1e6fd9);

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-number: "DIN Alternate", "JetBrains Mono", "Consolas", monospace;

  /* 圆角 / 阴影 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ------------------------------------------------------------
   2. 全局重置与基础
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--neutral-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.font-number {
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   3. 顶部角标（右上角 · 浅色提示条，与原型 proto-badge 呼应但更正式）
   ------------------------------------------------------------ */
.portal-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(15, 76, 92, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.portal-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(242, 163, 37, 0.2);
}

/* ------------------------------------------------------------
   4. 顶部导航
   ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--neutral-100);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}

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

.brand .brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 76, 92, 0.3);
}

.brand .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.brand .brand-divider {
  margin: 0 6px;
  color: var(--neutral-300);
  font-weight: 400;
}

.brand .brand-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--neutral-700);
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 76, 92, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.btn-admin {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 76, 92, 0.26);
}

/* ------------------------------------------------------------
   5. Hero 横幅
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(18, 181, 176, 0.35), transparent 46%),
    radial-gradient(ellipse at 8% 88%, rgba(15, 76, 92, 0.8), transparent 52%),
    linear-gradient(130deg, #06121f 0%, #0a2b3a 52%, #0f4c5c 100%);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 100px;
}

.hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(18, 181, 176, 0.16);
  border: 1px solid rgba(18, 181, 176, 0.4);
  font-size: 13px;
  color: #9fe8e4;
}

.hero h1 {
  margin-top: 22px;
  font-size: 46px;
  line-height: 1.24;
  letter-spacing: 1px;
  color: #f2fffd;
  font-weight: 700;
}

.hero h1 .hl {
  background: linear-gradient(90deg, #12b5b0, #3ccb7f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(223, 245, 243, 0.84);
}

.hero .cta-row {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero .cta-note {
  font-size: 12px;
  color: rgba(159, 215, 213, 0.75);
}

/* ---- Hero 右侧 SVG 插画 ---- */
.hero-visual {
  position: relative;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

.hero-chip {
  font-size: 13px;
  fill: #9fe8e4;
  font-weight: 600;
}

.hero-chip-bg {
  fill: rgba(18, 181, 176, 0.14);
  stroke: rgba(18, 181, 176, 0.4);
}

.hero-line {
  stroke: rgba(159, 215, 213, 0.3);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  fill: none;
}

.hero-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.hero-chart {
  stroke: #3ccb7f;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-dot {
  fill: #3ccb7f;
  stroke: #0a2b3a;
  stroke-width: 2;
}

.hero-arrow {
  fill: none;
  stroke: #3ccb7f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-shield {
  fill: rgba(60, 203, 127, 0.16);
  stroke: rgba(60, 203, 127, 0.7);
}

.hero-tick {
  stroke: #3ccb7f;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-cow-head {
  fill: #1a6e7e;
}

.hero-cow-horn {
  stroke: #d9a441;
  stroke-width: 7;
  fill: none;
  stroke-linecap: round;
}

.hero-cow-ear {
  fill: #12b5b0;
}

.hero-cow-eye {
  fill: #f2fffd;
}

.hero-cow-pupil {
  fill: #0a3540;
}

.hero-cow-muzzle {
  fill: #0f4c5c;
}

.hero-cow-nose {
  fill: #082c36;
}

.hero-cow-smile {
  stroke: #082c36;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

.hero-note {
  font-size: 12px;
  fill: rgba(159, 215, 213, 0.75);
}

.hero-note-strong {
  font-size: 13px;
  fill: #dff5f3;
  font-weight: 600;
}

/* ------------------------------------------------------------
   6. 通用区块
   ------------------------------------------------------------ */
.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--neutral-50);
}

.sec-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
}

.sec-head .eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.sec-head h2 {
  margin-top: 14px;
  font-size: 34px;
  color: var(--neutral-900);
  letter-spacing: 0.5px;
}

.sec-head p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--neutral-500);
  line-height: 1.7;
}

/* 深色区块标题（信任区） */
.sec-head.light .eyebrow {
  background: rgba(18, 181, 176, 0.16);
  color: #9fe8e4;
}

.sec-head.light h2 {
  color: #f2fffd;
}

.sec-head.light p {
  color: rgba(223, 245, 243, 0.72);
}

/* ------------------------------------------------------------
   7. 核心功能预告区（cap-card 风格，参照官网）
   ------------------------------------------------------------ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  position: relative;
  padding: 30px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--neutral-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cap-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cap-card .ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
}

.cap-card .ic svg {
  width: 26px;
  height: 26px;
}

.cap-card h3 {
  margin-top: 18px;
  font-size: 18px;
  color: var(--neutral-900);
}

.cap-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--neutral-500);
}

.cap-card .chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-card .chips li {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-mist);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

.cap-card .status {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--warning-soft);
  color: var(--accent-gold-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ------------------------------------------------------------
   8. 信任区（平台整体背书）
   ------------------------------------------------------------ */
.trust {
  color: #fff;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(18, 181, 176, 0.22), transparent 46%),
    radial-gradient(ellipse at 90% 85%, rgba(60, 203, 127, 0.14), transparent 46%),
    linear-gradient(120deg, #0a3540 0%, #0f4c5c 55%, #0a2b3a 100%);
}

.trust .container {
  padding-top: 8px;
  padding-bottom: 8px;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 600;
  color: #dff5f3;
}

.trust-tag::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(60, 203, 127, 0.2);
  color: #3ccb7f;
  font-size: 11px;
  font-weight: 700;
}

.trust-stats {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-stat {
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

.trust-stat .v {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d9ffef;
}

.trust-stat .l {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(223, 245, 243, 0.9);
}

.trust-stat .d {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(159, 215, 213, 0.72);
}

/* ------------------------------------------------------------
   9. 交易流程预览（4 步）
   ------------------------------------------------------------ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flow-step {
  position: relative;
  padding: 26px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--neutral-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.flow-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.flow-step .no {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-number);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 76, 92, 0.28);
}

.flow-step .bd {
  margin-top: 16px;
}

.flow-step h3 {
  font-size: 16px;
  color: var(--neutral-900);
}

.flow-step p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--neutral-500);
}

.flow-step::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -24px;
  width: 24px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-light) 0,
    var(--primary-light) 6px,
    transparent 6px,
    transparent 10px
  );
}

.flow-step:last-child::after {
  display: none;
}

/* ------------------------------------------------------------
   10. 页脚（与官网 Footer 风格一致）
   ------------------------------------------------------------ */
.site-footer {
  padding: 56px 0 32px;
  background: #082c36;
  color: rgba(223, 245, 243, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  font-size: 14px;
  color: #eafffb;
  margin-bottom: 14px;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-grid ul a:hover {
  color: #12b5b0;
}

.footer-brand .mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .mark-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.footer-brand .nm {
  font-size: 18px;
  font-weight: 700;
  color: #eafffb;
  letter-spacing: 1px;
}

.footer-brand .sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(159, 215, 213, 0.6);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(159, 215, 213, 0.7);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(223, 245, 243, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(159, 215, 213, 0.55);
}

/* ------------------------------------------------------------
   11. 响应式适配
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .hero .lead {
    max-width: 640px;
  }

  .hero-visual {
    max-width: 560px;
  }

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

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

  .flow-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .site-nav .inner {
    gap: 20px;
    height: 64px;
  }

  .brand .brand-sub,
  .brand .brand-divider {
    display: none;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

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

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

  .section {
    padding: 64px 0;
  }

  .sec-head h2 {
    font-size: 28px;
  }

  .trust-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .portal-badge {
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .site-nav .inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .brand {
    margin-right: auto;
  }

  .brand .brand-name {
    font-size: 17px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 16px;
  }

  .nav-actions {
    margin-left: 0;
  }

  .btn-admin {
    padding: 7px 14px;
    font-size: 13px;
  }

  .hero .container {
    padding-top: 48px;
    padding-bottom: 56px;
    gap: 36px;
  }

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

  .hero .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .cta-row .btn {
    width: 100%;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .trust-tags {
    gap: 10px;
  }

  .trust-tag {
    padding: 8px 14px;
    font-size: 13px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
