﻿:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #dde3ea;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --warn: #b45309;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-dark);
}
.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}
.topbar nav { display: flex; gap: 18px; align-items: center; }
.primary-link { color: var(--brand-dark); font-weight: 700; }
.page { max-width: 1180px; margin: 0 auto; padding: 28px; }
.hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 52px; margin: 8px 0 14px; letter-spacing: 0; }
.lead { font-size: 18px; max-width: 680px; color: var(--muted); line-height: 1.8; }
.eyebrow { color: var(--brand); font-weight: 800; }
.actions, .inline-form, .button-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.button, button {
  border: 0;
  background: var(--brand);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}
.button:hover, button:hover { background: var(--brand-dark); }
.button.secondary { background: #e6f3f1; color: var(--brand-dark); }
.button.secondary:hover { background: #cde8e4; }
.button.small { padding: 6px 10px; font-size: 13px; margin: 2px; }
.button:disabled, button:disabled { background: #a8b3bd; cursor: not-allowed; }
.section, .panel, .auth {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 22px 0;
}
.auth { max-width: 440px; margin: 40px auto; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.work-grid { display: grid; grid-template-columns: minmax(360px, 0.82fr) minmax(480px, 1.18fr); gap: 22px; align-items: start; }
.plans, .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plans.compact { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.card h3 { margin-top: 0; }
.price { font-size: 28px; font-weight: 800; color: var(--brand-dark); margin: 10px 0; }
.form { display: grid; gap: 14px; }
.form.wide { max-width: 900px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: white;
}
textarea { min-height: 120px; }
.muted, .compliance { color: var(--muted); line-height: 1.7; }
.flash {
  background: #fff8e6;
  border: 1px solid #f6d98b;
  color: #694100;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-head h2, .panel-head h3 { margin: 0; }
.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}
.progress > div {
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width .2s ease;
}
.share-box {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-bottom: 22px;
}
.affiliate-banner {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #e6f3f1;
  color: var(--brand-dark);
}
.affiliate-banner strong { font-size: 22px; }
.affiliate-banner span { color: #355b56; }
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .42);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  width: min(420px, 100%);
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}
.modal h2 { margin-top: 0; }
.video-modal { width: min(880px, 96vw); }
.video-modal video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #0f172a;
  border-radius: 8px;
}
.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: #f1f5f9;
  color: var(--muted);
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { border-bottom: 1px solid var(--line); padding: 11px 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 14px; }
.status {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f6;
}
.status.running { color: var(--warn); background: #fff4df; }
.status.success { color: var(--brand-dark); background: #e6f3f1; }
.status.failed { color: var(--danger); background: #ffeceb; }
.admin-shell { display: grid; grid-template-columns: 190px 1fr; gap: 22px; }
.admin-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.admin-nav a { padding: 10px 12px; border-radius: 6px; color: var(--muted); font-weight: 700; }
.admin-nav a:hover { background: #eef7f6; color: var(--brand-dark); }
.admin-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  overflow-x: auto;
}
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; }
.stats b { display: block; font-size: 26px; color: var(--brand-dark); }
.stats span { color: var(--muted); }
.ops { display: flex; gap: 6px; flex-wrap: wrap; min-width: 320px; }
.ops form { display: flex; gap: 4px; }
.ops input { width: 64px; padding: 6px; }
.ops button { padding: 7px 9px; }
.ops-row { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; width: 440px; }
.ops-row > div, .ops-row form { display: inline-flex; gap: 4px; align-items: center; }
.ops-row button { padding: 5px 8px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.ops-row input { padding: 5px; font-size: 12px; }

.scroll-wrapper {
  position: relative;
  overflow: auto;
}
.scroll-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.scroll-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
.scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
.ops-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ops-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ops-group form {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ops-group button {
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.ops-group input {
  padding: 4px;
  font-size: 11px;
}

/* 天企查首页 */
.home-hero {
  min-height: 390px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 56px 12px 44px;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-size: 34px;
  font-weight: 900;
}
.home-brand img {
  width: 58px;
  height: 58px;
}
.home-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
}
.home-subtitle {
  margin: 14px 0 28px;
  color: #667085;
  font-size: 17px;
  line-height: 1.7;
}
.home-search {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 0;
  background: white;
  border: 2px solid var(--brand);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 118, 110, .14);
}
.home-search input {
  height: 56px;
  border: 0;
  border-radius: 0;
  padding: 0 20px;
  font-size: 16px;
}
.home-search input:focus {
  outline: none;
}
.home-search button {
  height: 56px;
  border-radius: 0;
  background: var(--brand);
  font-size: 17px;
}
.home-search button:hover {
  background: var(--brand-dark);
}
.home-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.search-results,
.home-panel {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 22px;
}
.search-results {
  margin-bottom: 22px;
}
.result-list {
  display: grid;
  gap: 14px;
}
.result-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  background: #fbfdff;
  text-align: left;
}
.result-card h3 {
  margin: 0 0 8px;
  color: #102a43;
  font-size: 18px;
}
.result-card p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}
.result-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}
.result-card dt {
  color: #667085;
  font-size: 12px;
  margin-bottom: 4px;
}
.result-card dd {
  margin: 0;
  color: #172033;
  overflow-wrap: anywhere;
}
.home-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.rank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.rank-head h2 {
  margin: 0;
  font-size: 22px;
  color: #111827;
}
.rank-head span {
  color: #667085;
  font-size: 13px;
}
.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.rank-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.rank-list b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e6f3f1;
  color: var(--brand-dark);
  font-size: 13px;
}
.rank-list li:nth-child(-n+3) b {
  background: var(--brand);
  color: white;
}
.result-card a h3,
.update-item a strong {
  color: var(--brand-dark);
}
.result-card a:hover h3,
.update-item a:hover strong {
  text-decoration: underline;
}
.rank-list strong,
.update-item strong {
  display: block;
  color: #172033;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-list span,
.update-item span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}
.company-updates {
  margin-bottom: 22px;
}
.update-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}
.update-item {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
}

/* 首页样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.features {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1e293b;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1e293b;
}
.feature-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.pricing {
  padding: 80px 0;
}
.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
  color: #1e293b;
}
.pricing .subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  border: 2px solid #e2e8f0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.popular {
  border-color: #0f766e;
  box-shadow: 0 20px 40px -10px rgba(44, 94, 168, 0.3);
  transform: scale(1.02);
}
.pricing-card .badge {
  display: none;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}
.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #1e293b;
}
.pricing-card .price-wrap {
  margin-bottom: 24px;
}
.pricing-card .currency {
  font-size: 1.5rem;
  color: #0f766e;
  font-weight: 600;
}
.pricing-card .amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}
.pricing-card .period {
  color: #64748b;
  font-size: 1rem;
  margin-left: 4px;
}
.pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.pricing-card .features-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
}
.pricing-card .features-list li:last-child {
  border-bottom: none;
}
.pricing-card .check {
  color: #22c55e;
  font-weight: bold;
  margin-right: 8px;
}

.affiliate {
  padding: 60px 0;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}
.affiliate-card {
  background: white;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.affiliate-content h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: #1e293b;
}
.affiliate-content .lead {
  font-size: 1.125rem;
  color: #0f766e;
  font-weight: 600;
  margin-bottom: 16px;
}
.affiliate-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.affiliate-content li {
  padding: 8px 0;
  color: #64748b;
  position: relative;
  padding-left: 24px;
}
.affiliate-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
}
.affiliate-stats {
  display: flex;
  gap: 48px;
}
.affiliate-stats .stat {
  text-align: center;
}
.affiliate-stats .value {
  font-size: 3rem;
  font-weight: 800;
  color: #0f766e;
  display: block;
}
.affiliate-stats .label {
  color: #64748b;
  font-size: 0.875rem;
}

.how-it-works {
  padding: 60px 0;
}
.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1e293b;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: #1e293b;
}
.step p {
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .affiliate-card { flex-direction: column; text-align: center; gap: 32px; }
  .home-rank-grid,
  .update-list,
  .result-card dl { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .home-brand { font-size: 28px; }
  .home-brand img { width: 48px; height: 48px; }
  .home-hero h1 { font-size: 32px; }
  .home-search { grid-template-columns: 1fr; }
  .home-search button { width: 100%; }
}

@media (max-width: 820px) {
  .topbar { padding: 0 16px; }
  .page { padding: 18px; }
  .hero h1 { font-size: 38px; }
  .grid.two, .work-grid, .plans, .plans.compact, .stats, .admin-shell, .share-box { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .panel-head { align-items: flex-start; flex-direction: column; }
}

