/* 第七戏界官网 - 全局样式 */
:root {
  --seventh-dark: #1e1a2e;
  --seventh-navy: #111827;
  --seventh-blue: #4a90d9;
  --seventh-violet: #7c3aed;
  --seventh-gold: #d9a441;
  --foreground: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border-color: rgba(255, 255, 255, 0.1);
  --container-max: 1280px;
  --container-narrow: 896px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--seventh-navy);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (max-width: 1023px) {
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-white { color: var(--foreground); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-blue { color: var(--seventh-blue); }
.text-gold { color: var(--seventh-gold); }
.text-violet { color: var(--seventh-violet); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.75; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--seventh-violet), var(--seventh-blue));
  font-weight: bold;
  font-size: 0.875rem;
}

.logo span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.nav-desktop a.active {
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: var(--foreground);
}

.menu-toggle span {
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: all 0.3s;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  bottom: -6px;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -18rem;
  bottom: 0;
  width: 18rem;
  background: var(--seventh-navy);
  border-left: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 60;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav-header span {
  font-weight: 600;
  color: var(--foreground);
}

.mobile-nav-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.mobile-nav-close:hover {
  color: var(--foreground);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mobile-nav-links a {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-nav-links a:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--seventh-violet);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.btn-secondary {
  background: var(--seventh-gold);
  color: white;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.25);
}

.btn-secondary:hover {
  background: #b8860b;
}

.btn-blue {
  background: var(--seventh-blue);
  color: white;
}

.btn-blue:hover {
  background: #3a7bc8;
}

.btn-outline {
  border: 1px solid rgba(74, 144, 217, 0.4);
  color: var(--seventh-blue);
}

.btn-outline:hover {
  background: rgba(74, 144, 217, 0.1);
}

.card {
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.card-dark {
  background: rgba(30, 26, 46, 0.5);
}

.card-violet {
  background: rgba(124, 58, 237, 0.1);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--seventh-dark), var(--seventh-navy));
}

.hero-glow-1 {
  position: absolute;
  top: 5rem;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  filter: blur(120px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 5rem;
  right: 25%;
  width: 20rem;
  height: 20rem;
  background: rgba(74, 144, 217, 0.2);
  border-radius: 50%;
  filter: blur(100px);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero p {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 42rem;
}

@media (min-width: 640px) {
  .hero p {
    font-size: 1.125rem;
  }
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background: linear-gradient(to bottom, var(--seventh-dark), var(--seventh-navy));
}

.page-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .page-hero h1 {
    font-size: 2.25rem;
  }
}

.page-hero p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 48rem;
}

@media (min-width: 640px) {
  .page-hero p {
    font-size: 1.125rem;
  }
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--seventh-dark);
}

.section-navy {
  background: var(--seventh-navy);
}

.problem-table {
  width: 100%;
  text-align: left;
  overflow-x: auto;
}

.problem-table th {
  padding: 0.75rem 1rem 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.problem-table td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.problem-table td:first-child {
  width: 25%;
}

.problem-table td:nth-child(2) {
  width: 33%;
}

.problem-table .solution {
  color: var(--seventh-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.solution-arrow {
  width: 0.875rem;
  height: 0.875rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seventh-gold);
  flex-shrink: 0;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
}

.chat-owner {
  background: var(--seventh-navy);
  color: var(--foreground);
}

.chat-ai {
  background: rgba(124, 58, 237, 0.8);
  color: var(--foreground);
  margin-left: auto;
}

.chat-role {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

.chat-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.comparison-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.comparison-table td {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.comparison-table td:last-child {
  color: var(--seventh-blue);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--seventh-navy);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #d1d5db;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.solution-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.solution-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--seventh-violet);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.solution-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.solution-card p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-label .required {
  color: #f87171;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--seventh-navy);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--seventh-violet);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ef4444;
}

.form-error {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-textarea {
  resize: none;
}

.submit-result {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.submit-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.submit-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  text-align: center;
}

.placeholder-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.75rem;
}

.placeholder-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-dim);
}

.placeholder-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
}

.placeholder-desc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.placeholder-16-9 {
  aspect-ratio: 16/9;
}

.placeholder-4-3 {
  aspect-ratio: 4/3;
}

.placeholder-1-1 {
  aspect-ratio: 1/1;
}

.placeholder-dashboard {
  aspect-ratio: 16/10;
}

.placeholder-phone {
  aspect-ratio: 9/16;
  max-width: 280px;
}

.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(30, 26, 46, 0.5);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-brand .footer-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #4b5563;
}

.footer-links {
  font-size: 0.875rem;
}

.footer-links h4 {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #d1d5db;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.footer-bottom a {
  color: var(--seventh-blue);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #60a5fa;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 1023px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hidden-desktop {
    display: none !important;
  }
}

.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.two-col-reverse > :first-child {
  order: 2;
}

@media (max-width: 1023px) {
  .two-col-reverse > :first-child {
    order: 0;
  }
}

.group-title {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.notice {
  padding: 1rem;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.notice-warning {
  background: rgba(217, 164, 65, 0.1);
  border-color: rgba(217, 164, 65, 0.2);
}

.icon-box {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(124, 58, 237, 0.2);
  margin-bottom: 1rem;
}

.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--seventh-violet);
}
