/* ============================================
   Warrior Motor School - Main Stylesheet
   纽约勇士摩托车驾驶学校
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a5276;
  --primary-dark: #0e3a56;
  --primary-light: #2980b9;
  --accent: #e74c3c;
  --accent-dark: #c0392b;
  --gold: #f39c12;
  --gold-light: #f5b041;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #ecf0f1;
  --gray: #95a5a6;
  --dark-gray: #2c3e50;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--dark-gray);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p {
  margin-bottom: 1em;
}

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

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--gold);
  font-weight: 600;
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right a {
  color: var(--white);
  opacity: 0.85;
}

.top-bar-right a:hover {
  opacity: 1;
  color: var(--gold);
}

/* --- Header --- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.logo .logo-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-text-cn {
  font-size: 1rem;
  display: block;
  line-height: 1.2;
}

.logo-text-en {
  font-size: 0.7rem;
  color: var(--gray);
  display: block;
  line-height: 1.2;
}

/* --- Navigation --- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 5px;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--dark-gray);
  border-radius: var(--radius);
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
}

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

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, rgba(14,58,86,0.92) 0%, rgba(26,82,118,0.85) 50%, rgba(44,62,80,0.9) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>') repeat;
  background-size: 100px;
}

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

.hero-badge {
  display: inline-block;
  background: var(--accent);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero .hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 30px;
  color: var(--gold);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(231,76,60,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--light-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* --- Section Styles --- */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header .section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

.section-header .divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-dark .section-header .section-subtitle {
  color: rgba(255,255,255,0.7);
}

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

.pricing-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--accent);
  color: var(--white);
  padding: 5px 40px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.pricing-header {
  padding: 30px 25px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.pricing-card.featured .pricing-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.pricing-header h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.pricing-header .price {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 10px 0 5px;
}

.pricing-header .price-note {
  font-size: 0.85rem;
  opacity: 0.8;
}

.pricing-body {
  padding: 25px;
}

.pricing-body ul {
  list-style: none;
  padding: 0;
}

.pricing-body li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
  padding-left: 25px;
  position: relative;
}

.pricing-body li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.pricing-body li:last-child {
  border-bottom: none;
}

.pricing-footer {
  padding: 0 25px 25px;
  text-align: center;
}

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

/* --- Features / Services Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 50px 18px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-gray);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--off-white);
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-item.active .faq-question {
  color: var(--primary);
  border-bottom: 1px solid var(--light-gray);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.cta-phone {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-phone a {
  color: var(--white);
}

.cta-phone a:hover {
  color: var(--gold);
}

/* --- Page Hero / Banner --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 50px 0 40px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.05rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: var(--off-white);
  padding: 12px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--light-gray);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs span {
  color: var(--gray);
  margin: 0 8px;
}

/* --- Content Layout --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 50px 0;
}

.content-main {
  min-width: 0;
}

.content-main h2 {
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main h3 {
  color: var(--dark-gray);
  margin-top: 25px;
  margin-bottom: 10px;
}

.content-main ul, .content-main ol {
  margin-bottom: 1em;
}

.content-main li {
  margin-bottom: 8px;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 25px;
  border-top: 4px solid var(--primary);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.sidebar-contact strong {
  color: var(--primary);
}

.sidebar-phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent) !important;
  display: block;
  margin: 10px 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 0;
}

.sidebar-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--off-white);
  color: var(--primary);
  border-left-color: var(--accent);
}

/* --- Info Box --- */
.info-box {
  background: var(--off-white);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.info-box.warning {
  border-left-color: var(--gold);
  background: #fef9e7;
}

.info-box.highlight {
  border-left-color: var(--accent);
  background: #fdedec;
}

.info-box h4 {
  margin-bottom: 8px;
  color: var(--primary);
}

/* --- Price Highlight --- */
.price-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 10px 0;
}

/* --- Table --- */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-table thead {
  background: var(--primary);
  color: var(--white);
}

.content-table th,
.content-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.content-table tbody tr:hover {
  background: var(--off-white);
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Location Cards --- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.location-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.location-card-header {
  background: var(--primary);
  color: var(--white);
  padding: 20px 25px;
}

.location-card-header h3 {
  color: var(--white);
  margin-bottom: 0;
}

.location-card-body {
  padding: 25px;
}

.location-card-body p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.location-map {
  width: 100%;
  height: 200px;
  border: none;
  border-top: 1px solid var(--light-gray);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-card a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

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

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

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

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 15px;
  }

  .main-nav a {
    padding: 12px 15px;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .hero-subtitle {
    font-size: 1.1rem;
  }

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

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

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

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }

  .section {
    padding: 50px 0;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .top-bar-left, .top-bar-right {
    justify-content: center;
  }

  .content-table {
    font-size: 0.85rem;
  }

  .content-table th,
  .content-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .stat-number {
    font-size: 1.8rem;
  }

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

/* --- Utility --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* --- Print --- */
@media print {
  .site-header, .top-bar, .sidebar, .site-footer, .cta-section {
    display: none;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
}
