/* ===== 全局样式 - 上海妙游盛世网络科技有限公司 ===== */
:root {
  --brand: #1f6feb;
  --brand-dark: #0d4cb8;
  --accent: #00b3a4;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-mute: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-dark);
}
.nav-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-soft);
  transition: all 0.2s;
}
.nav-list a:hover { background: rgba(31,111,235,0.08); color: var(--brand); }
.nav-list a.active {
  background: var(--brand);
  color: #fff;
}
.nav-mall-entry {
  margin-left: 6px;
}
.nav-mall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: transparent;
  color: var(--brand) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-mall-btn:hover {
  background: var(--brand) !important;
  color: #fff !important;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
}
@media (max-width: 960px) {
  .nav-list {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a { padding: 14px 16px; font-size: 16px; }
  .nav-mall-entry {
    width: 100%;
    margin-left: 0;
  }
  .nav-mall-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px 16px;
    justify-content: center;
  }
  .nav-toggle { display: inline-block; }
}

/* ===== Banner ===== */
.hero {
  position: relative;
  height: 460px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 36, 84, 0.78), rgba(31,111,235,0.55));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero p {
  font-size: 18px;
  max-width: 680px;
  margin: 0 0 28px;
  opacity: 0.95;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
}
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); }
.btn-line { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-line:hover { background: var(--brand); color: #fff; }

/* ===== 板块通用 ===== */
.section {
  padding: 60px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 700;
}
.section-head p {
  color: var(--text-mute);
  margin: 0;
}
.section-title-bar {
  width: 50px;
  height: 3px;
  background: var(--brand);
  margin: 14px auto 0;
  border-radius: 3px;
}

/* ===== 首页精选卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  border-top: 3px solid var(--brand);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(31,111,235,0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--text-mute); font-size: 14px; }

/* ===== 用户已登录时显示的入口 ===== */
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(90deg, rgba(31,111,235,0.08), rgba(0,179,164,0.08));
  border: 1px solid rgba(31,111,235,0.2);
  border-radius: 20px;
  color: var(--brand) !important;
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.user-chip:hover { background: linear-gradient(90deg, rgba(31,111,235,0.15), rgba(0,179,164,0.15)); transform: translateY(-1px); }
.user-chip.active { background: linear-gradient(90deg, #1f6feb, #00b3a4); color: #fff !important; border-color: transparent; }
.logout-link {
  font-size: 12px; color: var(--text-soft) !important; margin-left: 6px;
}
.logout-link:hover { color: #ef4444 !important; }

/* 资料中心文章卡 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(229,231,235,0.8);
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15,23,42,0.12); border-color: transparent; }
.article-card .cover {
  position: relative;
  height: 200px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* 按板块类型着色背景 */
}
.article-card .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}
.article-card .cover::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
  pointer-events: none;
}

/* 首页资料中心卡片（复用 article-card） */
.article-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.article-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
}
.article-card .excerpt {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 10px;
  flex: 1;
}
.article-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #9ca3af; margin-top: auto; padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.article-meta .meta-author { color: #6b7280; }
.article-meta .meta-date { color: #9ca3af; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 20px;
  background: rgba(31,111,235,0.1);
  color: var(--brand);
  font-weight: 500;
}
.tag.green { background: rgba(0,179,164,0.12); color: var(--accent); }
.tag.purple { background: rgba(124,58,237,0.12); color: #7c3aed; }
.tag.orange { background: rgba(245,158,11,0.12); color: #d97706; }

/* ===== 产品列表卡 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,0.12); }
.product-card .cover {
  height: 200px;
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.product-card .cover::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}
.product-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin: 0 0 8px; font-size: 18px; }
.product-card p { color: var(--text-mute); font-size: 14px; margin: 0 0 14px; flex: 1; }

/* ===== 解决方案 Tab ===== */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 24px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 15px;
  color: var(--text-soft);
  transition: all 0.2s;
}
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab:hover:not(.active) { border-color: var(--brand); color: var(--brand); }

.solution-block {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 800px) { .solution-block { grid-template-columns: 1fr; } }
.solution-block img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.solution-block h3 { margin: 0 0 14px; font-size: 24px; }
.solution-block p { color: var(--text-soft); margin: 0 0 14px; }
.solution-block ul { padding-left: 20px; color: var(--text-soft); }
.solution-block ul li { margin-bottom: 6px; }

/* ===== 客户案例 ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  cursor: pointer;
}
.case-card:hover { transform: translateY(-4px); }
.case-card .cover {
  height: 200px;
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.case-card .cover::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255,255,255,0.92), transparent);
  pointer-events: none;
}
.case-card .body { padding: 20px; }
.case-card h3 { margin: 0 0 8px; font-size: 17px; }
.case-card p { color: var(--text-mute); font-size: 14px; margin: 0; }

/* ===== 客户服务 ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 800px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brand);
}
.service-card .ico {
  font-size: 36px;
  margin-bottom: 14px;
  color: var(--brand);
}
.service-card h3 { margin: 0 0 8px; }
.service-card p { color: var(--text-mute); margin: 0; font-size: 14px; }

/* ===== 关于我们 ===== */
.about-hero {
  background: linear-gradient(135deg, #1f6feb 0%, #00b3a4 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.about-hero h1 { font-size: 38px; margin: 0 0 12px; }
.about-hero p { margin: 0; opacity: 0.9; font-size: 16px; }
.about-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: -40px;
  position: relative;
  z-index: 1;
}
.about-content h2 { color: var(--brand-dark); margin-top: 0; }
.about-content p { color: var(--text-soft); margin: 0 0 16px; line-height: 1.9; }
.about-content .highlight { color: var(--brand); font-weight: 600; }

/* ===== 表单 ===== */
.form-card {
  max-width: 480px;
  margin: 60px auto;
  background: #fff;
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  text-align: center;
  color: var(--brand-dark);
}
.form-card .sub {
  text-align: center;
  color: var(--text-mute);
  margin: 0 0 28px;
  font-size: 14px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.15);
}
.form-field .hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(0,179,164,0.08);
  padding: 6px 10px;
  border-radius: 6px;
}
.form-field .hint::before {
  content: "✓";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.form-card .submit {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.2s;
}
.form-card .submit:hover { background: var(--brand-dark); }
.form-card .footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
}
.form-card .footer a { color: var(--brand); font-weight: 500; }
.form-error {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.form-error.show { display: block; }

/* ===== 支付页 ===== */
.pay-card {
  max-width: 460px;
  margin: 60px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  text-align: center;
}
.pay-card h1 { margin: 0 0 8px; font-size: 24px; }
.pay-card .order-info {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 20px 0 26px;
  text-align: left;
}
.pay-card .order-info .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-soft);
}
.pay-card .order-info .row:last-child { margin-bottom: 0; }
.pay-card .order-info .row.total { font-size: 16px; font-weight: 700; color: var(--text); }
.pay-card .qr-box {
  display: inline-block;
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
}
.pay-card .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.pay-card .qr-tip {
  color: var(--text-mute);
  font-size: 13px;
  margin: 0 0 26px;
}
.pay-card .actions { display: flex; gap: 12px; justify-content: center; }
.pay-card .actions .btn-cancel {
  padding: 12px 32px;
  background: #fff;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.2s;
}
.pay-card .actions .btn-cancel:hover { border-color: var(--text-mute); }

/* ===== 文章详情 ===== */
.article-detail {
  max-width: 880px;
  margin: 40px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 50px;
}
.article-detail h1 {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--text);
}
.article-detail .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.article-detail .body { color: var(--text-soft); line-height: 1.9; }
.article-detail .body p { margin: 0 0 14px; }
.article-detail .body img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* ===== 用户胶囊 ===== */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(31,111,235,0.1);
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.user-chip:hover { background: rgba(31,111,235,0.18); }

/* ===== 页脚 ===== */
.site-footer {
  background: #0f2454;
  color: #cbd5e1;
  padding: 50px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 14px;
}
.footer-grid p,
.footer-grid li {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.9;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #94a3b8; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer-bottom a { color: #cbd5e1; }

/* ===== 通用 ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-30 { margin-top: 30px; }
.flex-center { display: flex; justify-content: center; align-items: center; gap: 12px; }
.bg-white { background: #fff; }
