/* 河南商信充 - 备案展示站样式 */
:root {
  --color-primary: #0d6efd;
  --color-primary-dark: #0a58ca;
  --color-accent: #00b894;
  --color-text: #1a1d26;
  --color-muted: #5c6370;
  --color-bg: #f4f6f9;
  --color-white: #ffffff;
  --color-border: #e2e6ed;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --max-width: 1100px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #00897b 100%);
  color: var(--color-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(0, 184, 148, 0.25) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero-desc {
  max-width: 640px;
  margin: 0 0 32px;
  font-size: 1.05rem;
  opacity: 0.95;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  background: #e8f0fe;
  text-decoration: none;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.btn-block {
  width: 100%;
  text-align: center;
  border: none;
}

/* Sections */
main {
  flex: 1;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  margin: 0 0 40px;
  font-size: 1.75rem;
  font-weight: 700;
}

.section-title.align-left {
  text-align: left;
}

.page-hero {
  padding: 48px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
}

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

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.card-flat {
  box-shadow: none;
  background: var(--color-bg);
}

.card-icon {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  opacity: 0.5;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.split p {
  color: var(--color-muted);
}

.link-more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-list li {
  padding: 20px 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border-left: 4px solid var(--color-primary);
}

.stat-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.stat-list span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

.tags span {
  padding: 8px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Content pages */
.content-block h2 {
  margin: 40px 0 16px;
  font-size: 1.35rem;
  color: var(--color-text);
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: var(--color-muted);
  margin: 0 0 16px;
}

.bullet-list {
  color: var(--color-muted);
  padding-left: 1.25rem;
}

.bullet-list li {
  margin-bottom: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}

.feature-item {
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--color-primary-dark);
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.steps li span {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-dl {
  margin: 24px 0;
}

.contact-dl dt {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 16px;
}

.contact-dl dt:first-child {
  margin-top: 0;
}

.contact-dl dd {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.contact-note {
  font-size: 0.85rem;
  padding: 12px 16px;
  background: #fff8e6;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

.contact-form-wrap {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.contact-form-wrap h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0 0 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.form-success {
  margin-top: 16px;
  padding: 12px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Footer - 备案号居中 */
.site-footer {
  background: #1a1d26;
  color: #9ca3af;
  padding: 32px 0;
  margin-top: auto;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-company {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.footer-domain,
.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.footer-icp {
  margin: 12px 0 0;
  width: 100%;
  text-align: center;
}

.footer-icp a {
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-icp a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 64px;
  }
}
