/* lxkjjz 留香网络科技 - 公共样式 */
:root {
  --primary: #C45D35;
  --primary-hover: #A84A28;
  --primary-light: #F5E6DE;
  --bg: #FFFCF9;
  --bg-card: #FFFFFF;
  --text: #2D2A26;
  --text-secondary: #6B6560;
  --text-muted: #9B9590;
  --border: #EFE8E0;
  --shadow: 0 2px 8px rgba(196, 93, 53, 0.06);
  --shadow-lg: 0 8px 24px rgba(196, 93, 53, 0.10);
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 252, 249, 0.92);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
nav.nav-main {
  display: flex;
  gap: 28px;
}
nav.nav-main a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
nav.nav-main a:hover, nav.nav-main a.active { color: var(--primary); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--primary); }
.hero p.subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}

/* ===== Sections ===== */
.section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.section-title p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.feature .icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Merchant grid ===== */
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.merchant-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.merchant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.merchant-card .cover {
  aspect-ratio: 16 / 9;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
}
.merchant-card .body {
  padding: 16px 18px 20px;
}
.merchant-card .industry {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 500;
}
.merchant-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.merchant-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Stats ===== */
.stats {
  background: linear-gradient(135deg, var(--primary-light), #FAF0E9);
  padding: 60px 0;
  margin: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat .number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Forms ===== */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  max-width: 560px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* ===== Footer ===== */
.site-footer {
  background: #2D2A26;
  color: #C8C0B8;
  padding: 50px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; font-size: 13px; }
.site-footer a { color: #C8C0B8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-desc {
  color: #9A938B;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 10px;
}
.footer-bottom {
  border-top: 1px solid #3D3833;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #8A847E;
}
.footer-bottom a { color: #8A847E; }
.footer-bottom a:hover { color: #fff; }

/* ===== Article (about/services/privacy/terms) ===== */
.article {
  max-width: 760px;
  margin: 40px auto;
}
.article h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.article .lead {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 36px;
}
.article h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--text);
}
.article h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  color: var(--text);
}
.article p, .article li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.85;
}
.article ul, .article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.article .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}

/* ===== Merchant detail page ===== */
.merchant-detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
  padding: 50px 0 40px;
}
.merchant-cover-large {
  aspect-ratio: 1;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  color: var(--primary);
}
.merchant-info .industry {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-weight: 500;
}
.merchant-info h1 {
  font-size: 32px;
  margin-bottom: 14px;
}
.merchant-info .desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.75;
}
.merchant-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.merchant-meta .item .k {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.merchant-meta .item .v {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.qrcode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}
.qrcode-card .qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.qrcode-card .qr-tip {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .hero p.subtitle { font-size: 16px; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .merchant-detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .merchant-cover-large { max-width: 240px; margin: 0 auto; }
  nav.nav-main { gap: 18px; font-size: 13px; }
  .form-card { padding: 28px 22px; }
}
@media (max-width: 480px) {
  nav.nav-main { display: none; }
}
