/* ==========================================================================
   Shadowrocket App - Deep Sea Navy & Coral Neon Theme (深海藏青珊瑚霓虹风格)
   Designed for Distinctive Visual Identity & Top-tier Bing SEO Performance
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Theme Palette - Deep Sea Navy & Coral Neon */
  --bg-page: #0b132b;
  --bg-surface: #111d3d;
  --bg-card: #1c2541;
  --bg-card-hover: #243254;
  --bg-card-inner: #0e172e;

  --color-primary: #ff6b6b;        /* Coral Neon */
  --color-primary-dark: #ee5253;   /* Coral Dark */
  --color-primary-light: rgba(255, 107, 107, 0.12);

  --color-accent: #48cae4;         /* Electric Cyan */
  --color-accent-light: rgba(72, 202, 228, 0.12);

  --color-success: #10b981;        /* Emerald 500 */
  --color-warning: #f59e0b;        /* Amber 500 */

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-color: #2c3a58;
  --border-glow: rgba(255, 107, 107, 0.35);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(255, 107, 107, 0.22);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --max-width: 1220px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 12%, rgba(255, 107, 107, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(72, 202, 228, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(255, 107, 107, 0.05) 0%, transparent 55%);
  background-attachment: fixed;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ff8787;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.7rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), #ff8787);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 107, 107, 0.4);
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #ff8787);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8787, #ee5253);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #475569;
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.hero-title .glow-text {
  background: linear-gradient(135deg, #ff8787, #48cae4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-features-list svg {
  color: var(--color-primary);
}

/* App Showcase Card */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.app-card-header {
  background: #141b30;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.w-red { background: #f43f5e; }
.w-yellow { background: #f59e0b; }
.w-green { background: #10b981; }

.app-card-body {
  padding: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.metric-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
}

.metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid rgba(255, 107, 107, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cards */
.card-navy {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card-navy:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Table */
.table-box {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin: 32px 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.styled-table th {
  background: #111a33;
  padding: 16px 22px;
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.styled-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.styled-table tr:last-child td {
  border-bottom: none;
}

.styled-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.pill-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.pill-coral { background: rgba(255, 107, 107, 0.15); color: #ff8787; }
.pill-cyan { background: rgba(72, 202, 228, 0.15); color: #48cae4; }
.pill-emerald { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

/* Workflow Steps */
.step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px dashed var(--border-color);
}

.step-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-number {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1c2541, #0e172e);
  border: 1px solid var(--border-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 0 16px rgba(255, 107, 107, 0.2);
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-tips {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--bg-card-inner);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border-left: 3px solid var(--color-primary);
}

/* Callouts */
.callout {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
  background: var(--bg-card);
}

.callout-coral {
  border-color: var(--color-primary);
  background: rgba(255, 107, 107, 0.08);
}

.callout-cyan {
  border-color: var(--color-accent);
  background: rgba(72, 202, 228, 0.08);
}

.callout-title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #ffffff;
}

/* FAQ Accordion */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: #475569;
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-header:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.02);
}

.faq-arrow {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  transition: transform 0.25s ease;
}

.faq-card.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-card.active .faq-body {
  max-height: 1000px;
  transition: max-height 0.3s ease-in-out;
  padding: 0 24px 22px;
}

/* Footer */
.site-footer {
  background: #070c1c;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-disclaimer {
  background: #0f1830;
  border: 1px solid var(--border-color);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  font-size: 0.825rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1c2541;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #0b132b;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .step-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
