/* 微小互联 · 官网共享样式 */
:root {
  --bg: #0a0f1e;
  --bg-soft: #0f1929;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf6;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.35);
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --green: #4caf50;
  --radius: 14px;
  --header-h: 68px;
  --max-w: 1140px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--header-h);
}

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

.site-logo img {
  max-height: 40px;
  border-radius: 8px;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.site-logo-sub {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg) !important;
  font-weight: 700;
  margin-left: 8px;
}

.site-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.site-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Main layout */
.site-main { padding-top: var(--header-h); min-height: 100vh; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 720px;
}

.page-hero h1 span { color: var(--gold); }

.page-hero .lead {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold);
}

/* Sections */
.section { padding: 64px 0; }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
}

.section-alt { background: rgba(0, 0, 0, 0.2); }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Flow steps */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.flow-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.flow-step h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Case study */
.case-tag--lotus {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
}

.case-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}

.case-tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(76, 175, 80, 0.12);
  color: var(--green);
  margin-bottom: 12px;
}

.case-card h3 { font-size: 22px; margin-bottom: 12px; }

.case-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* API status */
.api-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.status-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-list { list-style: none; }

.status-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.status-list li:last-child { border-bottom: none; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.status-dot.live { background: var(--green); }
.status-dot.soon { background: var(--gold); }
.status-dot.plan { background: rgba(255, 255, 255, 0.25); }

/* Content page */
.content-page { padding: 48px 0 80px; }

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.content-card h2 {
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 16px;
}

.content-card p,
.content-card li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.content-card ul { padding-left: 20px; margin-top: 12px; }

.content-card li { margin-bottom: 8px; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 56px 24px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 { font-size: 24px; margin-bottom: 12px; }

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 48px 24px 28px;
}

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.75;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* Demo query page extras */
.demo-notice {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.demo-notice a { color: var(--gold); }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 15, 30, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .site-menu-toggle { display: block; }
  .case-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* 商务合作 / 入驻申请表单 */
.cooperate-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.cooperate-info h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.cooperate-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.cooperate-steps {
  list-style: none;
  margin-top: 24px;
}

.cooperate-steps li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.cooperate-steps li strong {
  color: var(--gold);
  min-width: 24px;
}

.apply-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.apply-form h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group label .req { color: #e57373; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: rgba(201, 168, 76, 0.45);
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.25); }

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-actions {
  margin-top: 8px;
}

.form-actions .btn { width: 100%; }

.form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.form-msg.show { display: block; }

.form-msg.ok {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.25);
  color: #81c784;
}

.form-msg.err {
  background: rgba(229, 115, 115, 0.1);
  border: 1px solid rgba(229, 115, 115, 0.25);
  color: #ef9a9a;
}

@media (max-width: 900px) {
  .cooperate-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
