/* AmyTelecom Official Stylesheet - Pure Native CSS, Zero External Dependencies */
:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hero: #0f172a;
  --bg-hero-accent: #1e293b;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --accent: #0284c7;
  --success: #047857;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --container-max: 1160px;
  --header-height: 68px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

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

section[id],
h2[id],
h3[id],
article[id] {
  scroll-margin-top: 96px;
}

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

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

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.header-cta:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 44px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-hero) 0%, #1e3a8a 100%);
  color: var(--text-on-dark);
  padding: 68px 0 64px;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(186, 230, 253, 0.3);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #ffffff;
}

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

.hero-desc {
  margin: 0 0 28px;
  color: var(--text-on-dark-muted);
  font-size: 1rem;
  max-width: 600px;
}

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

.hero-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hero-card h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: #ffffff;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.hero-stats strong {
  color: #7dd3fc;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

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

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

/* Grid & 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: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Streaming & AI Support Showcase */
.media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.tag-list li {
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

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

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

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

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

.pricing-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

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

.price-old {
  color: var(--text-muted);
  margin-right: 6px;
  font-size: 0.95rem;
}

.price-highlight {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.badge-recommend {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
}

.pricing-cta-box {
  margin-top: 24px;
  text-align: center;
}

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

.stars {
  color: #b45309;
  font-weight: 700;
}

/* FAQ (details / summary - works without JS) */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

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

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

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

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

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

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

.faq-answer p {
  margin: 0;
}

/* Knowledge & Article Layouts */
.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.article-body h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.article-body h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

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

.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

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

/* Footer - Strict 4 Links */
.site-footer {
  background: var(--bg-hero);
  color: var(--text-on-dark-muted);
  padding: 44px 0 32px;
  margin-top: 48px;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  color: #f8fafc;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

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

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

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 44px 0;
  }

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

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: flex-start;
  }

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

  .article-body {
    padding: 22px 18px;
  }
}

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

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