/* 微本香叙文创社 · 企业官网样式 —— 简约大气 · 暖色文人风 */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #26221c;
  --ink-soft: #6b6357;
  --line: #e7e1d6;
  --accent: #a2703c;
  --accent-dark: #85592c;
  --accent-soft: #f3ece1;
  --danger: #b04a3a;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(60, 48, 30, 0.08);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3, .brand-name { font-family: var(--serif); letter-spacing: 0.04em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px;
}
.brand-name { font-size: 19px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 8px; color: var(--ink-soft); font-size: 15px; transition: all 0.2s; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a.active { color: var(--accent-dark); font-weight: 600; }
.auth-area { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.user-email { font-size: 13px; color: var(--ink-soft); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-size: 15px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 110px 0 120px;
  background:
    radial-gradient(1200px 420px at 75% -60px, #efe5d3 0%, transparent 65%),
    var(--bg);
  text-align: center;
}
.hero-tag {
  display: inline-block; padding: 5px 16px; border: 1px solid var(--accent);
  border-radius: 999px; color: var(--accent-dark); font-size: 13px; letter-spacing: 0.3em;
  margin-bottom: 26px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.3; margin-bottom: 18px; }
.hero p { color: var(--ink-soft); font-size: 17px; max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker { color: var(--accent); letter-spacing: 0.35em; font-size: 13px; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8cbb4; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }

/* 数字统计 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 40px; color: var(--accent-dark); font-weight: 700; }
.stat .label { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* 时间线 / 文本块 */
.prose { max-width: 760px; margin: 0 auto; color: var(--ink-soft); }
.prose h3 { color: var(--ink); margin: 28px 0 10px; font-size: 20px; }
.prose p { margin-bottom: 12px; }

/* 产品图文条目 */
.product-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 20px; transition: all 0.25s;
}
.product-item:hover { box-shadow: var(--shadow); }
.product-thumb {
  height: 160px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: #fff;
}
.t1 { background: linear-gradient(135deg, #a2703c, #7c5426); }
.t2 { background: linear-gradient(135deg, #4b4a45, #2d2c29); }
.t3 { background: linear-gradient(135deg, #c2a06a, #9a7a44); }
.t4 { background: linear-gradient(135deg, #6f7d5c, #4c5940); }
.product-item h3 { font-size: 20px; margin-bottom: 8px; }
.product-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 表单 ---------- */
.form-panel {
  max-width: 560px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 38px 36px; box-shadow: var(--shadow);
}
.form-title { text-align: center; font-size: 24px; margin-bottom: 6px; }
.form-sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button {
  flex: 1; padding: 12px 0; background: none; border: none; cursor: pointer;
  font-size: 15px; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 600; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fffdf9; color: var(--ink); outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg { font-size: 14px; min-height: 20px; margin: 10px 0; text-align: center; }
.msg.err { color: var(--danger); }
.msg.ok { color: #3d7a4f; }
.form-foot { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }
.form-foot a { color: var(--accent-dark); cursor: pointer; }
.linklike { background: none; border: none; color: var(--accent-dark); cursor: pointer; font-size: 13.5px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.info-card h3 { font-size: 18px; margin-bottom: 16px; }
.info-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.info-line:last-child { border-bottom: none; }
.info-line .k { color: var(--ink-soft); flex-shrink: 0; width: 64px; }

/* 留言列表 */
.msg-list { margin-top: 44px; }
.msg-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 16px;
}
.msg-item .body { flex: 1; }
.msg-item .meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.msg-item .subject { font-weight: 600; }
.msg-item .content { font-size: 14.5px; color: var(--ink-soft); white-space: pre-wrap; }
.msg-item img.thumb { margin-top: 10px; max-height: 140px; border-radius: 6px; cursor: pointer; }
.del-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; align-self: flex-start; }

/* ---------- 页脚 ---------- */
.site-footer { background: #221e18; color: #b9b0a2; padding: 54px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.site-footer h4 { color: #efe8db; font-size: 16px; margin-bottom: 12px; font-family: var(--serif); }
.site-footer a { display: block; font-size: 14px; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid #3a352c; padding-top: 22px; text-align: center; font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 5%;
  }
  .nav.open { display: flex; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .product-item { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .user-email { display: none; }
}
