/* 武汉向游新生科技有限公司 - 官网样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: #fff;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}
.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
}
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(30,58,138,.75) 60%, rgba(8,145,178,.75) 100%),
    url("../images/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(6,182,212,.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,.18), transparent 45%);
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.5px;
  line-height: 1.25;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 620px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #0891b2;
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  margin-left: 12px;
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 34px;
  margin-bottom: 10px;
  font-weight: 700;
}
.page-header p {
  color: rgba(255,255,255,.8);
  font-size: 15px;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.section-title p {
  color: var(--gray);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-center {
  max-width: 980px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: all .25s;
}
.card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 24px rgba(30,58,138,.08);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}
.card p {
  color: var(--gray);
  font-size: 14px;
}

/* About layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.about-grid h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
}
.about-grid p {
  color: var(--gray);
  margin-bottom: 16px;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th,
.info-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
}
.info-table th {
  background: var(--light);
  color: var(--dark);
  font-weight: 600;
  width: 200px;
}
.info-table td { color: var(--gray); }

/* News list */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .2s;
}
.news-item:hover { border-color: var(--primary-light); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.news-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
.news-date .day { font-size: 28px; font-weight: 700; color: var(--primary); }
.news-date .month { font-size: 13px; color: var(--gray); }
.news-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}
.news-content p {
  color: var(--gray);
  font-size: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.contact-info h3 {
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 700;
}
.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .label {
  width: 80px;
  color: var(--gray);
  font-size: 14px;
  flex-shrink: 0;
}
.contact-row .value {
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
}

/* Contact card (simplified) */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(15,23,42,.04);
}
.contact-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
.contact-email {
  font-size: 22px;
  margin-bottom: 20px;
  word-break: break-all;
}
.contact-email a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.contact-email a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.contact-desc {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.8;
}
.contact-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-meta div {
  font-size: 14px;
  color: var(--dark);
  display: flex;
  gap: 12px;
}
.contact-meta span {
  color: var(--gray);
  min-width: 76px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col p, .footer-col li { margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  line-height: 1.9;
}
.footer-bottom a { color: rgba(255,255,255,.5); margin: 0 6px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .about-grid { gap: 36px; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }

  /* Nav becomes wrap-friendly on tablet/phone */
  .nav { height: auto; flex-wrap: wrap; padding: 14px 0; gap: 10px; }
  .logo { font-size: 16px; }
  .logo-img { height: 34px; }
  .nav-menu {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
  }
  .nav-menu li { flex: 1; text-align: center; min-width: 60px; }
  .nav-menu a {
    font-size: 13px;
    padding: 6px 4px;
    display: block;
    white-space: nowrap;
  }
  .nav-menu a.active::after { display: none; }
  .nav-menu a.active { color: var(--primary); font-weight: 600; }

  /* Hero */
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 26px; line-height: 1.35; }
  .hero p { font-size: 14px; margin-bottom: 24px; }
  .btn { padding: 11px 22px; font-size: 14px; width: auto; }
  .btn-outline { margin-left: 8px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 36px; }
  .section-title h2 { font-size: 22px; }
  .section-title p { font-size: 14px; }

  /* Page header */
  .page-header { padding: 44px 0; }
  .page-header h1 { font-size: 24px; }
  .page-header p { font-size: 13px; }

  /* Grids collapse */
  .grid, .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 20px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 14px; }

  /* About + contact layouts collapse */
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid h2 { font-size: 22px; margin-bottom: 14px; }
  .about-grid img { max-height: 240px; object-fit: cover; }

  /* Info table → mobile friendly */
  .info-table th, .info-table td { padding: 12px 14px; font-size: 14px; }
  .info-table th { width: 110px; }

  /* News list */
  .news-item { flex-direction: column; padding: 18px; gap: 14px; }
  .news-date {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 10px;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  .news-date .day { font-size: 22px; }
  .news-content h3 { font-size: 15px; }
  .news-content p { font-size: 13px; }

  /* Contact card */
  .contact-card { padding: 32px 20px; border-radius: 12px; }
  .contact-card-icon { width: 54px; height: 54px; font-size: 24px; margin-bottom: 16px; }
  .contact-card h2 { font-size: 18px; }
  .contact-email { font-size: 17px; margin-bottom: 16px; }
  .contact-desc { font-size: 13px; margin-bottom: 22px; }
  .contact-meta div { flex-direction: column; gap: 2px; font-size: 13px; }
  .contact-meta span { min-width: auto; font-size: 12px; }

  /* Footer */
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer-bottom { font-size: 12px; padding-top: 18px; }
}

/* ====== Modal Popup ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
}
.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  line-height: 1;
}
.modal-close:hover {
  background: var(--border);
  color: var(--dark);
}
.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.9;
}
.modal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--dark);
}
.modal-body h3:first-child {
  margin-top: 0;
}
.modal-body p {
  margin-bottom: 10px;
  color: var(--gray);
}
.modal-body ul {
  margin: 6px 0 14px 20px;
  color: var(--gray);
}
.modal-body ul li {
  margin-bottom: 4px;
}
.modal-body .highlight {
  color: var(--primary);
  font-weight: 500;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-legal a {
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 13px;
  transition: color .2s;
}
.footer-legal a:hover {
  color: #fff;
}

/* ====== Complaint Tabs ====== */
.contact-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.contact-tab {
  flex: 1;
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--light);
  color: var(--gray);
  border: none;
  transition: all .2s;
  outline: none;
}
.contact-tab:first-child {
  border-right: 1px solid var(--border);
}
.contact-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}
.contact-tab:hover:not(.active) {
  color: var(--dark);
  background: #f1f5f9;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Complaint card */
.complaint-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(15,23,42,.04);
}
.complaint-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.complaint-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
.complaint-card .complaint-email {
  font-size: 22px;
  margin-bottom: 20px;
  word-break: break-all;
  color: var(--primary);
  font-weight: 600;
}
.complaint-desc {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.8;
}
.complaint-info {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.complaint-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}
.complaint-info ul {
  list-style: none;
  color: var(--gray);
  font-size: 14px;
  line-height: 2;
}
.complaint-info ul li::before {
  content: "• ";
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .modal {
    max-height: 85vh;
    border-radius: 10px;
  }
  .modal-header {
    padding: 18px 20px;
  }
  .modal-header h2 { font-size: 17px; }
  .modal-body { padding: 20px; font-size: 13px; }
  .modal-body h3 { font-size: 15px; }
  .complaint-card { padding: 32px 20px; border-radius: 12px; }
  .complaint-icon { width: 54px; height: 54px; font-size: 24px; margin-bottom: 16px; }
  .complaint-card h2 { font-size: 18px; }
  .complaint-card .complaint-email { font-size: 17px; }
  .complaint-desc { font-size: 13px; }
  .complaint-info { font-size: 13px; }
  .contact-tabs { max-width: 280px; }
  .contact-tab { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 22px; }
  .btn { display: block; width: 100%; text-align: center; margin: 8px 0 0; }
  .btn-outline { margin-left: 0; }
}
