/* TNTCloud｜石墨灰 × 熔岩橙 V2.0 - Fixed Dark Industrial Tech Stylesheet */
:root {
  color-scheme: dark;
  --bg: #17191E;
  --surface: #252A32;
  --surface-alt: #1E2229;
  --text: #F8FAFC;
  --text-muted: #A8B0BC;
  --accent: #FF7838;
  --accent-hover: #FFB078;
  --accent-soft: rgba(255, 120, 56, 0.12);
  --border: #353B47;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --header-h: 72px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text-muted);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 25, 30, 0.92);
  border-bottom: 1px solid #2D323D;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF7838 0%, #FFB078 100%);
  color: #17191E;
  box-shadow: 0 2px 10px rgba(255, 120, 56, 0.22);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Sections */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: #1B1E24;
  border-top: 1px solid #2B303A;
  border-bottom: 1px solid #2B303A;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Hero with subtle molten-orange energy light tracks & metallic reflection */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 68% 52% at 78% 22%, rgba(255, 120, 56, 0.085) 0%, transparent 65%),
    linear-gradient(115deg, transparent 0%, transparent 46%, rgba(255, 120, 56, 0.04) 48%, rgba(255, 176, 120, 0.055) 49%, transparent 51%, transparent 100%),
    linear-gradient(115deg, transparent 0%, transparent 62%, rgba(255, 120, 56, 0.03) 63.5%, transparent 65%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 35%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 120, 56, 0.1);
  border: 1px solid rgba(255, 120, 56, 0.35);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #E2E8F0;
}

.hero-desc {
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 1rem;
}

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

.hero-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 45%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-media img {
  display: block;
  border-radius: var(--radius-sm);
}

/* Flowing molten-orange light & core pulse overlay */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%, rgba(255, 176, 120, 0.26) 0%, rgba(255, 120, 56, 0.12) 32%, transparent 62%);
  mix-blend-mode: screen;
  animation: hero-core-pulse 3.6s ease-in-out infinite;
}

.hero-media::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -75%;
  width: 55%;
  height: 160%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 120, 56, 0.06) 35%,
    rgba(255, 176, 120, 0.22) 50%,
    rgba(255, 120, 56, 0.06) 65%,
    transparent 100%
  );
  transform: rotate(22deg);
  mix-blend-mode: screen;
  animation: hero-light-sweep 4.8s ease-in-out infinite;
}

@keyframes hero-core-pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

@keyframes hero-light-sweep {
  0% {
    left: -75%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  75% {
    left: 135%;
    opacity: 1;
  }
  100% {
    left: 135%;
    opacity: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #FF7838 0%, #FFB078 100%);
  color: #17191E;
  border-color: rgba(255, 176, 120, 0.45);
  box-shadow: 0 4px 14px rgba(255, 120, 56, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF884D 0%, #FFC092 100%);
  color: #17191E;
  box-shadow: 0 6px 18px rgba(255, 120, 56, 0.32);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: #3E4554;
}

.btn-secondary:hover {
  background: #2B313B;
  border-color: var(--accent);
  color: var(--accent-hover);
}

.section-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 38%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.card:hover {
  border-color: rgba(255, 120, 56, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 176, 120, 0.24),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 120, 56, 0.16);
  transform: translateY(-2px);
}

.card-media {
  border-radius: var(--radius-sm);
  background: #1B1E24;
  padding: 12px;
  border: 1px solid #303642;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #1B1E24;
  border: 1px solid var(--border);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  text-align: left;
}

.pricing-table caption {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  color: var(--text);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #323844;
  vertical-align: middle;
  color: var(--text-muted);
}

.pricing-table thead th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
}

.pricing-table tbody th {
  color: var(--text);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table .price-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-hover);
  white-space: nowrap;
}

.table-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Reviews */
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.rating-badge {
  color: var(--accent-hover);
  font-weight: 700;
}

/* FAQ using native details/summary */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  border-top: 1px solid #323844;
}

.faq-answer p {
  margin: 12px 0 0;
}

/* Subpages & Articles */
.page-header {
  padding: 40px 0 28px;
  background: #1B1E24;
  border-bottom: 1px solid #2D323D;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.28;
  color: var(--text);
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 860px;
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
  color: var(--text);
}

.article-body h3 {
  margin: 20px 0 8px;
  font-size: 1.15rem;
  color: var(--text);
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.article-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.cta-box {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 120, 56, 0.08);
  border: 1px solid rgba(255, 120, 56, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-box p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

/* Footer - strictly 4 titles */
.site-footer {
  background: #111317;
  border-top: 1px solid #2D323D;
  color: var(--text-muted);
  padding: 44px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2A303B;
}

.footer-col h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
}

.footer-col a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .article-body {
    padding: 20px;
  }

  .nav-list {
    width: 100%;
    gap: 4px;
  }

  .nav-list a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
