/* ============================================
   SpiderWeb 蛛网商业版 — 官网公共样式
   Dark theme | 暗色主题
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
  background: #2a2a45;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
  color: #e0e0e0;
  font-size: 1rem;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #0f0f1a;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, #ff6b35, #e55d2b);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.btn-outline {
  background: transparent;
  color: #00d4ff;
  border: 2px solid #00d4ff;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 212, 255, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.navbar .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00d4ff, #ff6b35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar .logo span {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #b0b0c0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00d4ff;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00d4ff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links .admin-link {
  color: #666;
  font-size: 0.85rem;
}
.nav-links .admin-link:hover {
  color: #888;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 9rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05), transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #b0b0c0;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero .cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.8rem;
}

.section-header p {
  color: #8888a0;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: #1e1e36;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  background: #2a2a45;
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.card-icon.cyan {
  background: rgba(0, 212, 255, 0.12);
}

.card-icon.orange {
  background: rgba(255, 107, 53, 0.12);
}

.card-icon.purple {
  background: rgba(130, 100, 255, 0.12);
}

.card h3 {
  margin-bottom: 0.7rem;
}

.card p {
  color: #a0a0b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Screenshot Mockup ---------- */
.mockup-section {
  padding: 2rem 0 5rem;
}

.mockup-container {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.mockup-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e1e36, #2a2a45);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-inner {
  width: 92%;
  height: 85%;
  background: linear-gradient(135deg, #141428, #1a1a35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}

.mockup-row {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.mockup-chart {
  flex: 2;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08), transparent);
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.mockup-chart::before {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.3) 0%, transparent 100%);
  clip-path: polygon(0 100%, 15% 40%, 30% 60%, 50% 10%, 65% 35%, 80% 15%, 100% 50%, 100% 100%);
}

.mockup-chart::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #00d4ff;
  clip-path: polygon(0 100%, 15% 40%, 30% 60%, 50% 10%, 65% 35%, 80% 15%, 100% 50%);
  opacity: 0.6;
}

.mockup-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-sidebar-item {
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.mockup-sidebar-item:nth-child(1) { width: 85%; background: rgba(0, 212, 255, 0.1); }
.mockup-sidebar-item:nth-child(2) { width: 70%; }
.mockup-sidebar-item:nth-child(3) { width: 90%; background: rgba(255, 107, 53, 0.08); }
.mockup-sidebar-item:nth-child(4) { width: 60%; }
.mockup-sidebar-item:nth-child(5) { width: 75%; }

.mockup-bottom {
  height: 48px;
  display: flex;
  gap: 1rem;
}

.mockup-bottom-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.06);
}

.mockup-label {
  text-align: center;
  margin-top: 1.2rem;
  color: #666680;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #0a0a16;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  margin-bottom: 0.8rem;
}

.footer-brand h3 span {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: #666680;
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: #666680;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #00d4ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  color: #555568;
  font-size: 0.85rem;
}

.footer-bottom .social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom .social-links a {
  color: #555568;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-bottom .social-links a:hover {
  color: #00d4ff;
}

/* ---------- Page Header (features, pricing, download) ---------- */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.8rem;
}

.page-header p {
  color: #8888a0;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Features Page ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.feature-block + .feature-block {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-content .feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.feature-content h2 {
  margin-bottom: 1rem;
}

.feature-content p {
  color: #a0a0b8;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #c0c0d0;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  color: #00d4ff;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e1e36, #2a2a45);
  border: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05), transparent 70%);
}

/* ---------- Pricing Page ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: #1e1e36;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  background: #2a2a45;
  border-color: rgba(0, 212, 255, 0.25);
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.1);
}

.pricing-card.featured::before {
  content: "推荐";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #0f0f1a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.pricing-card .plan-subtitle {
  color: #8888a0;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.pricing-card .price {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.pricing-card .price .currency {
  font-size: 1.2rem;
  color: #00d4ff;
}

.pricing-card .price-period {
  color: #8888a0;
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-card .plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #c0c0d0;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.pricing-card .plan-features li .check {
  color: #00d4ff;
  flex-shrink: 0;
}

.pricing-card .plan-features li .cross {
  color: #666;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ---------- Download Page ---------- */
.download-platforms {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.download-card {
  background: #1e1e36;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  min-width: 240px;
  transition: all 0.3s ease;
}

.download-card:hover {
  background: #2a2a45;
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.download-card .os-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  margin-bottom: 0.3rem;
}

.download-card .os-version {
  color: #8888a0;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.download-card .btn {
  width: 100%;
}

.system-reqs {
  max-width: 600px;
  margin: 3rem auto 0;
  text-align: center;
}

.system-reqs h3 {
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.system-reqs .req-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e1e36;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  margin: 0.3rem;
  font-size: 0.9rem;
  color: #b0b0c0;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.system-reqs .req-item .badge {
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.version-info {
  text-align: center;
  margin-top: 2rem;
  color: #666680;
  font-size: 0.9rem;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-card.featured {
    transform: none;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-block.reverse {
    direction: ltr;
  }

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

  .feature-visual {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
  .navbar .container {
    height: 60px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  }

  .nav-links.open {
    max-height: 400px;
    padding: 1rem 0;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 1.5rem;
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero {
    padding: 7rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 6rem 0 2rem;
  }

  .download-platforms {
    flex-direction: column;
    align-items: center;
  }

  .download-card {
    width: 100%;
    max-width: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .feature-block {
    padding: 2.5rem 0;
  }
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
