/* 紫擎官网 V0.1 · 现代简约 · 深蓝+金 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a3a52;
  --primary-dark: #0f2637;
  --accent: #c8a86a;
  --accent-dark: #b0925a;
  --bg: #f7f9fb;
  --text: #23303a;
  --text-muted: #6a7580;
  --card-bg: #ffffff;
  --border: #e5e9ee;
  --shadow: 0 6px 24px rgba(20, 40, 60, 0.06);
  --radius: 10px;
}

html,
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============ 顶部导航 ============ */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.logo::before {
  content: '🟣 ';
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero .tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero .accent {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ============ 章节 ============ */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 16px;
}

/* ============ 卡片网格 ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 40, 60, 0.1);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

.card ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.card ul li {
  margin-bottom: 6px;
}

.price-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(200, 168, 106, 0.12);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.case-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e8ecf1 0%, #f7f9fb 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
}

/* ============ 案例卡片 V0.2 ============ */
.case-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 40, 60, 0.1);
}

.case-cover {
  height: 160px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, #274a63 60%, var(--accent-dark) 140%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-align: center;
  padding: 0 16px;
}

.case-card h3 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 8px;
}

.case-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
  flex-grow: 1;
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(26, 58, 82, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}

/* ============ 报价边界提示框 V0.2 ============ */
.price-boundary {
  background: #fff9ec;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 12px 0 8px;
}

.price-boundary h4 {
  color: #8a6d20;
  margin-bottom: 8px;
  font-size: 15px;
}

.price-boundary ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text);
}

.price-boundary li {
  margin-bottom: 4px;
}

/* ============ QR 码占位 V0.2 ============ */
.qr-box {
  width: 200px;
  height: 200px;
  background: #e5e9ee;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
}

.qr-box::before,
.qr-box::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 6px solid #b6bec6;
  background: white;
}

.qr-box::before {
  top: 12px;
  left: 12px;
}

.qr-box::after {
  top: 12px;
  right: 12px;
}

.qr-box .qr-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: #7c8891;
  font-size: 12px;
  letter-spacing: 1px;
}

.qr-box .qr-inner::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 6px solid #b6bec6;
  background: white;
  margin: 0 auto 6px;
}

/* ============ 页脚增强 V0.2 ============ */
.footer-record {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

.footer-record span {
  margin: 0 8px;
}


/* ============ CTA ============ */
.cta-section {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 60px 0;
}

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

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

/* ============ 服务详情列表 ============ */
.service-block {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.service-block h3 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 12px;
}

.service-block .desc {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-block ul {
  padding-left: 20px;
}

.service-block ul li {
  margin-bottom: 8px;
}

.price-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff8e6;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 14px;
  border-radius: 4px;
}

/* ============ 联系页 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--primary);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.qr-placeholder {
  width: 220px;
  height: 220px;
  background: #f0f3f7;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 16px;
  font-size: 14px;
}

.disclaimer {
  background: #fff5f5;
  border-left: 4px solid #d64545;
  padding: 16px 20px;
  margin-top: 24px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.disclaimer strong {
  color: #a02020;
  display: block;
  margin-bottom: 6px;
}

/* ============ 页脚 ============ */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0 24px;
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
}

footer p {
  margin-bottom: 6px;
}

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

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero .tagline {
    font-size: 16px;
  }
  .nav-links {
    gap: 20px;
  }
  .section {
    padding: 56px 0;
  }
}

@media (max-width: 600px) {
  .navbar-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  .hero {
    padding: 60px 0 48px;
  }
}
