/* ========== 正年商贸官网 · 设计系统 ========== */
:root {
  --bg: #FAF7F1;
  --bg-soft: #F3EEE4;
  --card: #FFFFFF;
  --ink: #211D18;
  --muted: #71695E;
  --line: #E6DFD2;
  --accent: #A4552E;
  --accent-deep: #87431F;
  --green: #3E5648;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(33, 29, 24, .08);
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "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.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.wrap { width: min(1160px, 92%); margin: 0 auto; }
.serif { font-family: var(--serif); }

/* ---------- 页头 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 247, 241, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(33,29,24,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 21px; font-weight: bold;
  box-shadow: 0 4px 12px rgba(164, 85, 46, .35);
}
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2.5px; margin-top: -3px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a.nav-link {
  font-size: 15px; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .25s;
}
.main-nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .3s;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--ink); }
.main-nav a.nav-link.active::after, .main-nav a.nav-link:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 11px 26px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(164,85,46,.28); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.nav-toggle { display: none; background: none; border: none; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; }

/* ---------- 主视觉 ---------- */
.hero { padding: 150px 0 70px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 3px; color: var(--accent); font-weight: 600;
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--accent); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 58px);
  line-height: 1.28; font-weight: 700; letter-spacing: 1px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc { margin: 24px 0 36px; color: var(--muted); font-size: 17px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 4/4.6; object-fit: cover; width: 100%;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -18px -18px auto auto;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1.5px dashed var(--accent); opacity: .5; z-index: -1;
}
.hero-badge {
  position: absolute; left: -24px; bottom: 36px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent); }
.hero-badge .lbl { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* 数据统计条 */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat-item:first-child { border-left: none; }
.stat-item .num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--ink); }
.stat-item .num i { font-style: normal; color: var(--accent); font-size: 20px; margin-left: 2px; }
.stat-item .lbl { font-size: 13px; color: var(--muted); letter-spacing: 1px; margin-top: 4px; }

/* ---------- 通用板块 ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { font-size: 13px; letter-spacing: 4px; color: var(--accent); font-weight: 600; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 14px; letter-spacing: 1px; }
.section-head p { color: var(--muted); }
.section-head.left { text-align: left; margin-left: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.img-frame img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .8s; }
.img-frame:hover img { transform: scale(1.04); }

/* ---------- 业务板块 ---------- */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.biz-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 40px; overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.biz-card .biz-icon {
  width: 62px; height: 62px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(164,85,46,.12), rgba(164,85,46,.05));
  color: var(--accent);
}
.biz-card.green .biz-icon { background: linear-gradient(135deg, rgba(62,86,72,.12), rgba(62,86,72,.05)); color: var(--green); }
.biz-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; }
.biz-card p { color: var(--muted); font-size: 15px; }
.biz-card ul { margin: 18px 0 26px; list-style: none; }
.biz-card li { padding: 7px 0 7px 24px; position: relative; color: var(--ink); font-size: 14.5px; }
.biz-card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.biz-card.green li::before { background: var(--green); }
.biz-more { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.biz-card.green .biz-more { color: var(--green); }
.biz-more svg { transition: transform .25s; }
.biz-card:hover .biz-more svg { transform: translateX(5px); }

/* ---------- 产品卡片 ---------- */
.filter-bar { display: flex; justify-content: center; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }
.filter-chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 9px 24px; font-size: 14px; transition: .25s;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-visual {
  height: 170px; display: grid; place-items: center; position: relative; overflow: hidden;
}
.product-visual.fashion { background: linear-gradient(135deg, #F4E7DC, #EAD5C4); }
.product-visual.ceramic { background: linear-gradient(135deg, #E4EBE4, #D2DED4); }
.product-visual svg { opacity: .9; }
.product-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  align-self: flex-start; font-size: 12px; letter-spacing: 1px; padding: 3px 12px;
  border-radius: 999px; margin-bottom: 12px; font-weight: 600;
}
.product-tag.fashion { background: rgba(164,85,46,.1); color: var(--accent); }
.product-tag.ceramic { background: rgba(62,86,72,.12); color: var(--green); }
.product-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.product-card .summary { color: var(--muted); font-size: 14px; flex: 1; }
.product-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.price-hint { font-size: 13px; color: var(--muted); }
.price-hint b { color: var(--accent); font-size: 15px; font-family: var(--serif); }

/* ---------- 表单 ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.form-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 16px; background: var(--bg); color: var(--ink);
  transition: border-color .25s, box-shadow .25s; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(164,85,46,.1); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field .error-msg { font-size: 12.5px; color: #B3362A; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #B3362A; }
.field.has-error .error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.form-switch a { color: var(--accent); font-weight: 600; cursor: pointer; }

/* ---------- 页脚 ---------- */
.site-footer { background: #221D17; color: #C9C0B2; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; }
.site-footer h4 { color: #F5EFE4; font-family: var(--serif); font-size: 17px; margin-bottom: 18px; letter-spacing: 1px; }
.site-footer a, .site-footer p { color: #A79D8D; font-size: 14px; line-height: 2.1; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #F5EFE4; }
.footer-bottom { border-top: 1px solid #3A332A; padding: 20px 0; font-size: 13px; color: #8A8072; text-align: center; }
.footer-bottom .icp a { color: #8A8072; font-size: 13px; }
.footer-bottom .icp a:hover { color: #fff; }
.footer-tel { font-family: var(--serif); font-size: 24px; color: #F5EFE4; letter-spacing: 1px; }

/* ---------- 会员中心 ---------- */
.member-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.member-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; position: sticky; top: 100px; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px; font-weight: 700;
}
.member-side .phone { font-weight: 700; font-size: 16px; }
.member-side .since { font-size: 12.5px; color: var(--muted); margin: 4px 0 20px; }
.member-nav { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.member-nav button {
  background: none; border: none; text-align: left; padding: 11px 16px; border-radius: 10px;
  font-size: 14.5px; color: var(--muted); transition: .2s; display: flex; gap: 10px; align-items: center;
}
.member-nav button:hover { background: var(--bg-soft); color: var(--ink); }
.member-nav button.active { background: rgba(164,85,46,.1); color: var(--accent); font-weight: 600; }
.member-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; min-height: 480px; }
.member-panel h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }
.panel-note { background: rgba(164,85,46,.07); border: 1px solid rgba(164,85,46,.2); color: var(--accent-deep); border-radius: 10px; padding: 12px 18px; font-size: 13.5px; margin-bottom: 22px; }

.msg-item, .file-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  transition: box-shadow .25s;
}
.msg-item:hover, .file-item:hover { box-shadow: 0 4px 14px rgba(33,29,24,.06); }
.msg-item .content { flex: 1; font-size: 14.5px; }
.msg-item .time, .file-item .meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.msg-reply { margin-top: 10px; background: var(--bg-soft); border-left: 3px solid var(--green); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--green); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { opacity: .4; margin-bottom: 14px; }

.file-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.file-icon-box {
  width: 54px; height: 54px; border-radius: 10px; background: var(--bg-soft);
  display: grid; place-items: center; color: var(--muted);
}
.upload-drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 34px; text-align: center;
  color: var(--muted); transition: .25s; margin-bottom: 22px; cursor: pointer;
}
.upload-drop:hover, .upload-drop.dragover { border-color: var(--accent); color: var(--accent); background: rgba(164,85,46,.04); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(164,85,46,.1); color: var(--accent); display: grid; place-items: center; }
.contact-line .cl-t { font-size: 13px; color: var(--muted); }
.contact-line .cl-v { font-size: 16px; font-weight: 600; }

/* ---------- 通用组件 ---------- */
.page-hero { padding: 150px 0 60px; text-align: center; }
.page-hero .eyebrow { font-size: 13px; letter-spacing: 4px; color: var(--accent); font-weight: 600; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 46px); margin: 12px 0 14px; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--accent); }

.toast-wrap { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--ink); color: #F5EFE4; padding: 12px 26px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow); animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 8px; max-width: 86vw;
}
.toast.success { background: var(--green); }
.toast.error { background: #9C3A2C; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; text-align: center; transition: transform .3s, box-shadow .3s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card .vn { font-family: var(--serif); font-size: 40px; color: rgba(164,85,46,.25); font-weight: 700; line-height: 1; }
.value-card h3 { font-family: var(--serif); font-size: 19px; margin: 12px 0 8px; }
.value-card p { font-size: 14px; color: var(--muted); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 7px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
}
.tl-item .tl-t { font-weight: 700; font-family: var(--serif); font-size: 17px; }
.tl-item .tl-d { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid, .two-col, .biz-grid, .contact-grid, .member-layout { grid-template-columns: 1fr; }
  .product-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .stat-item { border-top: 1px solid var(--line); }
  .stat-item:nth-child(-n+2) { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .member-side { position: static; }
  .hero { padding-top: 120px; }
  .hero-badge { left: 8px; }
}
@media (max-width: 640px) {
  .main-nav {
    position: fixed; top: 72px; right: 0; left: 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 18px 5%; gap: 4px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a.nav-link::after { display: none; }
  .main-nav .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
  .product-grid, .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .form-card, .member-panel { padding: 26px 20px; }
}
