/* ============================================
   鲸选拾刻 - 官网样式表
   适用于 ICP/EDI 许可证审核用企业官网
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --color-primary: #1a73e8;
  --color-primary-dark: #1557b0;
  --color-primary-light: #e8f0fe;
  --color-accent: #00bcd4;
  --color-accent-dark: #0097a7;
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-danger: #f44336;
  --color-text: #2c3e50;
  --color-text-light: #6c7a89;
  --color-text-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fc;
  --color-bg-dark: #1a2332;
  --color-border: #e1e8ed;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 64px;
  --transition: all 0.3s ease;
}

/* ---------- 重置样式 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

a:hover {
  color: var(--color-primary-dark);
}

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

ul,
ol {
  list-style: none;
}

/* ---------- 通用布局 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

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

.section-header h2 {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
}

.section-header .divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin: 16px auto 0;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 1002;
  transition: var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 8px 16px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
  outline: none;
  position: relative;
  z-index: 1010;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero 区域 ---------- */
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a2332 0%, #1557b0 50%, #0097a7 100%);
  color: #fff;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero .hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat-item .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.hero-stat-item .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- 内页头部 ---------- */
.page-header {
  background: linear-gradient(135deg, #1a2332 0%, #1557b0 100%);
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.85;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  opacity: 0.5;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card-link:hover {
  color: var(--color-primary-dark);
}

/* ---------- 特色列表 ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item .check-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

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

/* ---------- 关于我们 ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-image {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image .big-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-image .big-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ---------- 企业价值观 ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.value-card {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

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

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-item .timeline-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ---------- 业务介绍 ---------- */
.business-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.business-block:nth-child(even) .business-block-text {
  order: 2;
}

.business-block:last-child {
  margin-bottom: 0;
}

.business-block-text h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.business-block-text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.business-block-text ul {
  margin-top: 16px;
}

.business-block-text ul li {
  padding: 6px 0;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-block-text ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  min-width: 8px;
}

.business-block-visual {
  background: linear-gradient(135deg, var(--color-primary-light), #e0f7fa);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.business-block-visual .visual-icon {
  font-size: 4rem;
  text-align: center;
}

.business-block-visual .visual-label {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 12px;
}

/* ---------- 联系页面 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.contact-info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-item .ci-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item .ci-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.contact-info-item .ci-value {
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- 表单 ---------- */
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-group label .required {
  color: var(--color-danger);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-feedback {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
}

.form-feedback.error {
  background: #ffebee;
  color: #c62828;
  display: block;
}

/* ---------- 客服微信二维码 ---------- */
.wechat-qrcode-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--color-border);
}

.wechat-qrcode-img {
  width: 120px;
  height: 173px;
  min-width: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.wechat-qrcode-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wechat-qrcode-text h4 {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.wechat-qrcode-text p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- 法律文档页面 ---------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 0;
}

.legal-content h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.legal-content .update-date {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--color-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.legal-content p {
  color: var(--color-text-light);
  margin-bottom: 14px;
  line-height: 1.9;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  margin: 10px 0 14px 20px;
  color: var(--color-text-light);
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
  line-height: 1.8;
  font-size: 0.95rem;
  list-style: disc;
}

.legal-content ol li {
  list-style: decimal;
}

.legal-content strong {
  color: var(--color-text);
}

/* ---------- CTA 区域 ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-dark));
  color: #fff;
  text-align: center;
  padding: 70px 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

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

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.footer-bottom .icp-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-bottom .icp-info a,
.footer-bottom .icp-info span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

.footer-bottom .icp-info a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- 公安联网备案图标 ---------- */
.police-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.police-badge:hover {
  color: rgba(255, 255, 255, 0.8);
}

.police-badge img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
}

.police-badge .badge-text {
  font-size: 0.82rem;
  line-height: 1;
}

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
  .about-content,
  .business-block,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .business-block:nth-child(even) .business-block-text {
    order: 0;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: var(--transition);
    gap: 4px;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .hero-stats {
    gap: 28px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header h2,
  .page-header h1 {
    font-size: 1.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom .icp-info {
    flex-direction: column;
    gap: 8px;
  }

  .wechat-qrcode-box {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

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

/* ---------- 产品展示模块（业务介绍页面） ---------- */
.product-showcase {
  margin: 32px 0 56px;
  background: linear-gradient(135deg, #f5f9ff 0%, #e8f4ff 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.showcase-header {
  text-align: center;
  margin-bottom: 28px;
}

.showcase-header .showcase-tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.showcase-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.showcase-header p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 115, 232, 0.18);
  color: inherit;
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-info {
  padding: 16px 14px 18px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-price {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ef4444;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-showcase {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .product-showcase {
    padding: 24px 16px;
    margin: 24px 0 36px;
  }
  .showcase-header h3 {
    font-size: 1.25rem;
  }
  .product-info h4 {
    font-size: 0.95rem;
  }
  .product-price {
    font-size: 1.1rem;
  }
}

/* ===== AI 辅助设计声明（合规标识） ===== */
.ai-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 28px auto;
  padding: 14px 22px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.ai-disclaimer-label {
  flex: none;
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
}

/* ============================================
   购物车 / 结算 / 订单 / 合规页面
   ============================================ */

/* ---- 导航栏购物车入口 ---- */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: #f1f5f9;
  transition: .2s;
  margin-left: 12px;
  position: relative;
}
.cart-link:hover { background: #e2e8f0; color: #2563eb; }
.cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ---- 购物车页 ---- */
.cart-page { min-height: 60vh; }
.cart-empty {
  text-align: center;
  padding: 70px 20px;
}
.cart-empty .empty-icon { font-size: 56px; margin-bottom: 16px; }
.cart-empty h3 { font-size: 20px; color: #111827; margin-bottom: 8px; }
.cart-empty p { color: #94a3b8; margin-bottom: 24px; }

.cart-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
  overflow: hidden;
}
.cart-head, .cart-row {
  display: grid;
  grid-template-columns: 3fr 1.2fr 1.2fr 1.2fr .8fr;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
}
.cart-head {
  background: #f8fafc;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid #eef2f7;
}
.cart-row { border-bottom: 1px solid #f1f5f9; }
.cart-row:last-child { border-bottom: none; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-info img {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f8fafc;
}
.cart-item-name { font-size: 14.5px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.cart-item-cat { font-size: 12px; color: #94a3b8; }
.cart-price { color: #ef4444; font-weight: 700; font-size: 15px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.qty-control button { width: 30px; height: 32px; border: none; background: #f8fafc; cursor: pointer; font-size: 16px; color: #475569; transition: .15s; }
.qty-control button:hover { background: #eef2f7; }
.qty-control span { width: 42px; text-align: center; font-size: 14px; font-weight: 600; color: #111827; }
.cart-subtotal { font-weight: 700; color: #111827; font-size: 15px; }
.cart-remove { color: #94a3b8; font-size: 20px; cursor: pointer; transition: .15s; text-align: center; }
.cart-remove:hover { color: #ef4444; }

.cart-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: #fafbfc;
  border-top: 1px solid #eef2f7;
  flex-wrap: wrap;
  gap: 12px;
}
.cart-total { font-size: 15px; color: #475569; }
.cart-total strong { font-size: 26px; color: #ef4444; margin-left: 8px; }
.cart-actions { display: flex; gap: 12px; }

/* ---- 结算页 ---- */
.checkout-wrap { max-width: 960px; margin: 0 auto; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.checkout-panel { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(15,23,42,.06); padding: 26px; }
.checkout-panel h3 { font-size: 17px; color: #111827; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; color: #475569; font-weight: 600; margin-bottom: 7px; }
.form-row label .req { color: #ef4444; margin-left: 2px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #cbd5e1; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-tip { font-size: 12px; color: #94a3b8; margin-top: 6px; }

.checkout-summary .sum-item { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: #475569; }
.checkout-summary .sum-item.total { border-top: 1px dashed #e2e8f0; margin-top: 10px; padding-top: 16px; font-weight: 700; color: #111827; font-size: 15px; }
.checkout-summary .sum-item.total strong { color: #ef4444; font-size: 24px; }
.sum-goods { max-height: 220px; overflow-y: auto; margin-bottom: 8px; }
.sum-goods-item { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; color: #64748b; border-bottom: 1px dashed #f1f5f9; }
.pay-method { display: flex; gap: 12px; margin-top: 4px; }
.pay-method label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.pay-method label:hover { border-color: #94a3b8; }
.pay-method input:checked + span { color: #2563eb; }
.pay-method input:checked ~ .pay-name { color: #2563eb; }
.pay-method label:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.pay-method .pay-icon { font-size: 22px; }
.pay-method input { display: none; }

/* ---- 支付页（二维码） ---- */
.pay-page { max-width: 560px; margin: 0 auto; text-align: center; }
.pay-panel { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(15,23,42,.08); padding: 34px 28px; }
.pay-amount { font-size: 14px; color: #64748b; margin-bottom: 6px; }
.pay-amount strong { display: block; font-size: 40px; color: #111827; margin-top: 4px; }
.qr-box { width: 240px; height: 240px; margin: 22px auto; border: 1px solid #eef2f7; border-radius: 12px; overflow: hidden; position: relative; background: #f8fafc; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-tip { color: #94a3b8; font-size: 13.5px; line-height: 1.8; }
.pay-status { margin-top: 18px; padding: 12px 16px; border-radius: 10px; font-size: 14px; display: none; }
.pay-status.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.pay-status.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.pay-status.warn { display: block; background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ---- 订单页 ---- */
.order-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(15,23,42,.06); padding: 22px 26px; margin-bottom: 18px; }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.order-no { font-size: 13.5px; color: #64748b; }
.order-no b { color: #111827; font-weight: 600; }
.order-status { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.order-status.paid { background: #ecfdf5; color: #047857; }
.order-status.pending { background: #fffbeb; color: #b45309; }
.order-status.closed { background: #f1f5f9; color: #64748b; }
.order-status.ready { background: #eff6ff; color: #2563eb; }
.order-goods { display: flex; flex-direction: column; gap: 10px; }
.order-goods-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: #475569; }
.order-goods-item .g-name { display: flex; align-items: center; gap: 10px; }
.order-goods-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f8fafc; }
.order-goods-item .g-qty { color: #94a3b8; font-size: 13px; }
.order-goods-item .g-price { font-weight: 600; color: #111827; }
.order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; flex-wrap: wrap; gap: 10px; }
.order-total { font-size: 14px; color: #475569; }
.order-total strong { font-size: 20px; color: #ef4444; }
.order-btns { display: flex; gap: 10px; }
.order-empty { text-align: center; padding: 60px 20px; color: #94a3b8; }

/* ---- 合规内容页（退款/交易规则/入驻等） ---- */
.legal-wrap { max-width: 900px; margin: 0 auto; }
.legal-block { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(15,23,42,.05); padding: 30px 34px; margin-bottom: 22px; }
.legal-block h3 { font-size: 19px; color: #111827; margin-bottom: 16px; padding-left: 14px; border-left: 4px solid #2563eb; }
.legal-block h4 { font-size: 15px; color: #1f2937; margin: 18px 0 8px; }
.legal-block p { font-size: 14.5px; color: #475569; line-height: 1.9; margin-bottom: 10px; }
.legal-block ul { padding-left: 20px; margin-bottom: 10px; }
.legal-block li { font-size: 14.5px; color: #475569; line-height: 1.9; }
.legal-block .notice { background: #eff6ff; border-radius: 10px; padding: 14px 18px; font-size: 13.5px; color: #1e40af; margin-top: 14px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.legal-table th, .legal-table td { border: 1px solid #eef2f7; padding: 11px 14px; font-size: 14px; text-align: left; }
.legal-table th { background: #f8fafc; color: #334155; font-weight: 600; }
.legal-table td { color: #475569; }

/* ---- 响应式 ---- */
@media (max-width: 860px) {
  /* 移动端导航菜单：全屏 drawer */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 12px) 24px 24px;
    gap: 0;
    display: none;
    z-index: 1003;
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .nav-menu.active { display: flex; }
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 1.05rem;
  }
  .nav-menu .cart-count {
    display: inline-block;
    margin-left: 8px;
  }

  /* 用户登录态菜单：在移动端默认展开、垂直排列 */
  .nav-auth {
    position: static;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-user {
    display: block !important;
    width: 100%;
    padding: 16px 0;
  }
  .nav-user-menu {
    position: static;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    margin: 8px 0;
    min-width: auto;
    background: transparent;
  }
  .nav-user-menu a {
    padding: 12px 0;
  }

  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .cart-item-info img { width: 56px; height: 56px; }
  .cart-bottom { flex-direction: column; align-items: stretch; }
  .checkout-grid { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .sum-goods { max-height: none; }
}

/* ============================================
   客户账号：导航栏登录态 & 登录页
   ============================================ */
.nav-auth { position: relative; padding-bottom: 16px; margin-bottom: -16px; }
.nav-auth > a { color: var(--color-primary); font-weight: 600; }
.nav-user { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--color-primary); font-weight: 600; padding: 4px 6px; border-radius: 6px; }
.nav-user:hover { background: var(--color-primary-light); }
.nav-user-menu {
  position: absolute; top: calc(100% - 2px); right: 0; margin-top: 0; min-width: 132px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 8px 0 6px; display: none; flex-direction: column; z-index: 50;
}
.nav-auth:hover .nav-user-menu { display: flex; }
.nav-user-menu a { display: block; padding: 9px 16px; font-size: 14px; color: var(--color-text); }
.nav-user-menu a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

