/* 区块链可信存证系统 — 门户首页（BSN 可信存证） */
:root {
  --ct-blue: #1a6fd4;
  --ct-blue-dark: #0d5bb8;
  --ct-hero: linear-gradient(135deg, #1a7fe8 0%, #0d5fc9 45%, #0a4fa8 100%);
  --ct-text: #333;
  --ct-muted: #666;
  --ct-border: #e8e8e8;
  --ct-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html,
body.chain-trust-site {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: #f5f7fa;
  color: var(--ct-text);
}

.ct-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.ct-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--ct-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ct-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ct-text);
}

.ct-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.ct-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-blue);
}

.ct-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.ct-nav a {
  font-size: 15px;
  color: var(--ct-muted);
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.ct-nav a.active,
.ct-nav a:hover {
  color: var(--ct-blue);
}

.ct-nav a.active {
  border-bottom-color: var(--ct-blue);
  font-weight: 500;
}

.ct-console-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 36px;
  padding: 0 20px;
  background: var(--ct-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.ct-console-btn:hover {
  background: var(--ct-blue-dark);
}

/* Hero */
.ct-hero {
  flex-shrink: 0;
  position: relative;
  padding: 48px 24px 56px;
  text-align: center;
  background: var(--ct-hero);
  overflow: hidden;
}

.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.03) 40px,
      rgba(255, 255, 255, 0.03) 80px
    );
  pointer-events: none;
}

.ct-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.ct-hero-company {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 1px;
}

.ct-hero-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* 指标卡片 */
.ct-main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 40px;
  box-sizing: border-box;
}

.ct-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.ct-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: var(--ct-card-shadow);
  border: 1px solid var(--ct-border);
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ct-card-label {
  font-size: 14px;
  color: var(--ct-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.ct-card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ct-text);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.ct-card-value.big {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.ct-card-value.offset {
  font-size: 22px;
  color: var(--ct-blue);
}

.ct-bsn-badge {
  margin-top: 28px;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #d6e8ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ct-muted);
}

.ct-bsn-badge strong {
  color: var(--ct-blue);
  font-size: 15px;
}

.ct-bsn-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  font-size: 12px;
}

.ct-bsn-stats span em {
  font-style: normal;
  font-weight: 600;
  color: var(--ct-text);
}

/* 页脚 */
.ct-footer {
  flex-shrink: 0;
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
  background: #fff;
  border-top: 1px solid var(--ct-border);
}

.ct-footer a {
  color: #999;
  text-decoration: none;
}

.ct-footer a:hover {
  color: var(--ct-blue);
}

.ct-footer-powered {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ct-blue);
  font-weight: 500;
}

@media (max-width: 900px) {
  .ct-metrics-row {
    grid-template-columns: 1fr;
  }

  .ct-header {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    gap: 8px;
  }

  .ct-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0;
    padding-bottom: 8px;
  }
}
