﻿/* === 珍珠克官方网站 CSS === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a7a5c;
  --primary-dark: #145c45;
  --accent: #e8a838;
  --bg: #f8f9f5;
  --white: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
}

/* === 导航 === */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 60px;
}
nav .logo {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-right: auto;
}
nav .logo span { color: var(--accent); }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0 16px;
  line-height: 60px;
  font-size: 0.95em;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

/* === 面包屑 === */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 0.85em;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* === 容器 === */
.container { max-width: 800px; margin: 0 auto; padding: 30px 20px 60px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #1a7a5c 0%, #145c45 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px 50px;
}
.hero h1 { font-size: 2em; margin-bottom: 10px; }
.hero h2 { font-size: 1.2em; font-weight: 400; opacity: 0.9; margin-bottom: 20px; }
.hero .features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  font-size: 0.9em;
}
.hero .features span { opacity: 0.9; }
.hero .features span::before { content: "✅ "; }
.hero .cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === 按钮 === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #d49420; transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* === 内容区块 === */
.section { margin-bottom: 50px; }
.section h2 {
  font-size: 1.5em;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.section h3 {
  font-size: 1.15em;
  color: var(--text);
  margin: 25px 0 10px;
}

/* === 表格 === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.9em;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #f8faf8; }

/* === 信息卡片 === */
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 15px 0;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.info-card.warning { border-left-color: #e17055; background: #fff5f4; }
.info-card.tip { border-left-color: var(--accent); background: #fffdf5; }
.info-card strong { color: var(--primary-dark); }

/* === 对比卡 === */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.compare-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--border);
}
.compare-card.featured { border-top-color: var(--primary); }
.compare-card h3 { margin: 0 0 8px; }
.compare-card .price { font-size: 1.3em; color: var(--primary); font-weight: 700; margin: 8px 0; }

/* === 步骤列表 === */
.steps { counter-reset: step; list-style: none; }
.steps li {
  counter-increment: step;
  padding: 12px 0 12px 50px;
  position: relative;
  margin-bottom: 8px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
}

/* === FAQ === */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.faq-item .q { font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.faq-item .q::before { content: "Q："; }
.faq-item .a { color: var(--text-light); }
.faq-item .a::before { content: "A："; }

/* === 标签 === */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  margin-right: 4px;
}
.tag-green { background: #e8f5e9; color: #2e7d32; }
.tag-red { background: #fce4ec; color: #c62828; }
.tag-yellow { background: #fff8e1; color: #f57f17; }
.tag-blue { background: #e3f2fd; color: #1565c0; }

/* === 文章卡片列表 === */
.article-list { display: grid; gap: 16px; }
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
}
.article-card:hover { transform: translateY(-2px); }
.article-card h3 { margin: 0 0 4px; color: var(--text); }
.article-card p { color: var(--text-light); font-size: 0.9em; margin: 0; }
.article-card .arrow { font-size: 1.5em; color: var(--primary); }

/* === 页脚 === */
footer {
  background: #2d3436;
  color: #b2bec3;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85em;
  line-height: 2;
}
footer a { color: #b2bec3; }
footer .disclaimer {
  color: #636e72;
  font-size: 0.85em;
  margin-top: 10px;
}

/* === 响应式 === */
@media (max-width: 768px) {
  nav .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  nav a { line-height: 40px; padding: 0 10px; font-size: 0.85em; }
  .hero { padding: 40px 16px 30px; }
  .hero h1 { font-size: 1.5em; }
  .hero .features { gap: 15px; font-size: 0.8em; }
  table { font-size: 0.8em; }
  th, td { padding: 8px; }
  .compare-grid { grid-template-columns: 1fr; }
  .container, .container-wide { padding: 20px 14px 40px; }
}

/* 打印友好 */
@media print {
  nav, footer, .breadcrumb, .cta-group { display: none; }
  body { background: #fff; }
  .container { max-width: 100%; }
}

/* 导航下单按钮 */
.nav-order {
  background: #e74c3c !important;
  color: #fff !important;
  padding: 6px 16px !important;
  border-radius: 20px;
  font-weight: 700;
  animation: pulse-order 2s infinite;
}
.nav-order:hover { background: #c0392b !important; }
@keyframes pulse-order {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
}

/* 产品卡片 */
.product-card {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.product-card.recommend { border-color: var(--accent); background: #fffdf5; }
.product-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e74c3c;
  color: #fff;
  padding: 2px 14px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: 700;
}
.product-card .tier { font-size: 1em; color: #666; margin-bottom: 6px; }
.product-card .price {
  font-size: 2em;
  font-weight: 800;
  color: #e74c3c;
  margin: 8px 0;
}
.product-card .desc {
  font-size: 0.85em;
  color: #888;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* 使用前后对比 */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.compare-card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}
.compare-card p { margin-top: 10px; font-weight: 600; color: var(--text); }
.compare-imgs {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.compare-imgs > div { flex: 1; }
.compare-imgs img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.compare-label {
  text-align: center;
  font-size: 0.8em;
  font-weight: 700;
  padding: 2px 0;
  margin: 0 0 4px 0 !important;
  border-radius: 4px;
}
.compare-label.bad { color: #c0392b; background: #fdecea; }
.compare-label.good { color: #27ae60; background: #eafaf1; }

/* 产品图片区 */
.product-hero { margin: 10px 0; }
.product-hero img { margin: 8px auto; display: block; }

@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* 产品横幅价格覆盖 */
.banner-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.banner-price-overlay {
  position: absolute;
  left: 55%;
  top: 58%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(255,255,255,0.94);
  padding: 8px 22px;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.banner-price-label {
  font-size: 1.1rem;
  color: #e74c3c;
  font-weight: 700;
}
.banner-price-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: #e74c3c;
  line-height: 1;
}
@media (max-width: 640px) {
  .banner-price-num { font-size: 1.2rem; }
  .banner-price-label { font-size: 0.65rem; }
  .banner-price-overlay { left: 55%; top: 58%; padding: 4px 10px; }
}



/* === HTML 产品横幅 === */
.html-banner {
  max-width: 700px;
  margin: 0 auto;
}
.html-banner-bg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 40%, #3498db 70%, #5dade2 100%);
  box-shadow: 0 6px 28px rgba(0,0,0,0.15);
}
.html-banner-left {
  text-align: left;
}
.html-banner-brand {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.html-banner-brand span {
  color: #f1c40f;
}
.html-banner-sub {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-top: 4px;
}
.html-banner-right {
  text-align: center;
}
.html-banner-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.html-price-label {
  font-size: 1.1rem;
  color: #f1c40f;
  font-weight: 700;
}
.html-price-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.html-banner-features {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.html-banner-features span {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .html-banner-bg { flex-direction: column; gap: 16px; padding: 20px; }
  .html-banner-left { text-align: center; }
  .html-banner-brand { font-size: 1.8rem; }
  .html-price-num { font-size: 2.2rem; }
}

/* 浮动立即下单按钮 */
.floating-order {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 14px 18px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(231,76,60,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
  transition: transform .2s, box-shadow .2s;
  animation: float-pulse 2.5s infinite;
  white-space: nowrap;
}
.floating-order:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 28px rgba(231,76,60,0.6);
  color: #fff;
  text-decoration: none;
}
.floating-order .fo-icon {
  font-size: 1.4rem;
}
.floating-order .fo-text {
  font-size: 0.85rem;
  letter-spacing: 1px;
}
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(231,76,60,0.45); }
  50% { box-shadow: 0 4px 30px rgba(231,76,60,0.7); }
}
@media (max-width: 768px) {
  .floating-order {
    right: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
    padding: 10px 14px;
    flex-direction: row;
    gap: 6px;
    border-radius: 40px;
    font-size: 0.9rem;
  }
  .floating-order:hover {
    transform: scale(1.05);
  }
  .floating-order .fo-icon {
    font-size: 1.1rem;
  }
  .floating-order .fo-text {
    font-size: 0.8rem;
  }
}
