/* 终南木作 v2 — 梵几系干净风格 */
/* 配色: 暖木色 + 白 + 深灰 */
/* 思路：大量留白，纤细字体，木色点缀 */

:root {
  --wood: #9A7B4F;
  --wood-dark: #7A5E3A;
  --bg: #FFFFFF;
  --bg-warm: #F9F7F5;
  --text: #2C2C2C;
  --text-light: #8A8A8A;
  --text-muted: #B0B0B0;
  --border: #E8E4E0;
  --font-serif: "Noto Serif SC", "Source Han Serif CN", STSong, "SimSun", serif;
  --font-sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-width: 960px;
  --max-width-narrow: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======== Layout ======== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

/* ======== Header ======== */

header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 4px;
}

.logo span {
  color: var(--wood);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--text);
  border-bottom-color: var(--wood);
}

/* ======== Hero ======== */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: var(--bg-warm);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 6px;
}

.hero p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 2;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ======== Image placeholder ======== */

.img-block {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.img-block.small {
  min-height: 180px;
}

/* ======== Sections ======== */

section {
  padding: 80px 0;
}

section.alt {
  background: var(--bg-warm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 48px;
  letter-spacing: 1px;
}

/* ======== About preview ======== */

.about-preview {
  max-width: 600px;
  margin: 0 auto;
}

.about-preview p {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 2;
  font-size: 14px;
}

.about-preview .more-link {
  display: inline-block;
  font-size: 13px;
  color: var(--wood);
  text-decoration: none;
  letter-spacing: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  padding-bottom: 2px;
}

.about-preview .more-link:hover {
  border-bottom-color: var(--wood);
}

/* ======== Product grid ======== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.product-card {
  border-top: 2px solid transparent;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-top-color: var(--wood);
}

.product-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 2px;
}

.product-card p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ======== Why us ======== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-item {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.why-item h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 2px;
}

.why-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ======== Content pages ======== */

.page-header {
  padding: 64px 0 48px;
  background: var(--bg-warm);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ======== Prose ======== */

.content {
  font-size: 14px;
  line-height: 2;
  color: var(--text-light);
}

.content p {
  margin-bottom: 20px;
}

.content h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin: 48px 0 16px;
  color: var(--text);
  letter-spacing: 2px;
}

.content h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 32px 0 12px;
  color: var(--text);
}

.content ul, .content ol {
  margin: 0 0 20px 20px;
}

.content li {
  margin-bottom: 8px;
}

.content .highlight {
  background: var(--bg-warm);
  border-left: 2px solid var(--wood);
  padding: 20px 24px;
  margin: 24px 0;
}

/* ======== FAQ ======== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  letter-spacing: 1px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

.faq-item .tags {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ======== Timeline ======== */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wood);
  border: 2px solid var(--bg);
}

.timeline-item .year {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--wood);
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ======== Info grid (contact, store) ======== */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.info-card {
  background: var(--bg);
  padding: 32px 28px;
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--wood);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.info-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

.info-card .label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 8px;
}

.info-card .phone {
  font-size: 20px;
  font-weight: 400;
  font-family: var(--font-serif);
  color: var(--text);
  letter-spacing: 1px;
}

/* ======== Footer ======== */

footer {
  padding: 48px 0 40px;
  border-top: 2px solid var(--wood);
  background: var(--bg-warm);
  text-align: center;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--text);
}

footer .footer-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  line-height: 2;
}

/* ======== Store (展厅) detail ======== */

.store-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.store-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.store-item .info h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.store-item .info .sub {
  font-size: 12px;
  color: var(--wood);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.store-item .info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ======== Hiring list ======== */

.job-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.job-item {
  background: var(--bg);
  padding: 28px;
}

.job-item h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.job-item .meta {
  font-size: 12px;
  color: var(--wood);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.job-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ======== Media list ======== */

.media-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.media-item {
  background: var(--bg);
  padding: 28px;
  transition: background 0.2s;
}

.media-item:hover {
  background: var(--bg-warm);
}

.media-item .source {
  font-size: 12px;
  color: var(--wood);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.media-item h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.media-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ======== Floating buttons ======== */

.floating-btns {
  position: fixed;
  bottom: 40px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: var(--wood);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(154,123,79,0.28);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--wood-dark);
  box-shadow: 0 6px 22px rgba(154,123,79,0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 22px;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--wood);
  color: var(--wood);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.qr-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; background: rgba(0,0,0,0.3); }
.qr-overlay.show { display: block; }
.qr-popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--bg); padding: 32px; text-align: center; z-index: 1001; box-shadow: 0 8px 40px rgba(0,0,0,0.1); max-width: 320px; width: 90%; }
.qr-popup.show { display: block; }
.qr-popup img { width: 180px; height: 180px; display: block; margin: 0 auto; }
.qr-popup .title { font-family: var(--font-serif); font-size: 16px; letter-spacing: 2px; color: var(--text); margin-bottom: 16px; }
.qr-popup .phone { font-size: 13px; color: var(--text-light); margin-top: 12px; }
.qr-popup .close { position: absolute; top: 12px; right: 16px; font-size: 18px; color: var(--text-muted); cursor: pointer; background: none; border: none; padding: 4px 8px; }
.qr-popup .close:hover { color: var(--text); }

@media (max-width: 600px) {
  .floating-btns { right: 16px; bottom: 30px; gap: 8px; }
  .btn-primary, .btn-secondary { padding: 9px 16px; font-size: 11px; }
}

/* ======== Responsive ======== */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .container, .container-narrow {
    padding: 0 20px;
  }

  header {
    padding: 16px 0;
  }

  header .container {
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    font-size: 20px;
    letter-spacing: 3px;
  }

  nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero h1 {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .section-sub {
    font-size: 12px;
    margin-bottom: 36px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card {
    padding: 22px 16px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .store-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-header {
    padding: 48px 0 36px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .content {
    font-size: 13px;
    line-height: 1.9;
  }

  .content h2 {
    font-size: 18px;
    margin: 36px 0 12px;
  }

  .about-preview {
    max-width: 100%;
  }

  .about-preview p {
    font-size: 13px;
  }

  .timeline {
    padding-left: 20px;
  }

  .faq-item {
    padding: 20px 0;
  }

  .faq-item h3 {
    font-size: 15px;
  }

  .job-item {
    padding: 24px;
  }

  .media-item {
    padding: 24px;
  }

  footer {
    padding: 36px 0 28px;
  }

  footer .footer-links {
    gap: 16px;
  }
}

/* Phone (≤480px) */
@media (max-width: 480px) {
  .container, .container-narrow {
    padding: 0 16px;
  }

  header {
    padding: 12px 0;
    position: sticky;
  }

  header .container {
    gap: 10px;
  }

  .logo {
    font-size: 17px;
    letter-spacing: 2px;
  }

  nav {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  nav a {
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 22px;
    letter-spacing: 3px;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-meta {
    font-size: 12px;
  }

  section {
    padding: 36px 0;
  }

  section.alt {
    padding: 36px 0;
  }

  .section-title {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .section-sub {
    font-size: 12px;
    margin-bottom: 28px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    padding: 20px 16px;
  }

  .product-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-card p {
    font-size: 11px;
  }

  .why-grid {
    gap: 12px;
  }

  .why-item {
    padding: 20px;
  }

  .why-item h3 {
    font-size: 14px;
  }

  .why-item p {
    font-size: 12px;
  }

  .page-header {
    padding: 40px 0 32px;
  }

  .page-header h1 {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .page-header p {
    font-size: 13px;
  }

  .content {
    font-size: 13px;
    line-height: 1.9;
  }

  .content p {
    margin-bottom: 16px;
  }

  .content h2 {
    font-size: 17px;
    margin: 32px 0 12px;
    letter-spacing: 1px;
  }

  .content h3 {
    font-size: 14px;
    margin: 24px 0 8px;
  }

  .content .highlight {
    padding: 16px 20px;
    margin: 20px 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 24px 20px;
  }

  .info-card h3 {
    font-size: 13px;
  }

  .info-card p {
    font-size: 13px;
  }

  .info-card .phone {
    font-size: 18px;
  }

  .store-list {
    gap: 32px;
  }

  .store-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .store-item .info h3 {
    font-size: 17px;
  }

  .store-item .info p {
    font-size: 13px;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline-item {
    padding: 0 0 24px 20px;
  }

  .timeline-item .year {
    font-size: 13px;
  }

  .timeline-item p {
    font-size: 13px;
  }

  .faq-list {
    border-top: 1px solid var(--border);
  }

  .faq-item {
    padding: 16px 0;
  }

  .faq-item h3 {
    font-size: 14px;
  }

  .faq-item p {
    font-size: 13px;
  }

  .job-list, .media-list {
    gap: 1px;
  }

  .job-item {
    padding: 20px;
  }

  .job-item h3 {
    font-size: 14px;
  }

  .job-item p {
    font-size: 12px;
  }

  .media-item {
    padding: 20px;
  }

  .media-item h3 {
    font-size: 14px;
  }

  .media-item p {
    font-size: 12px;
  }

  .about-preview {
    max-width: 100%;
  }

  .about-preview p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 16px;
  }

  footer {
    padding: 28px 0 24px;
  }

  footer .footer-links {
    gap: 12px;
  }

  footer .footer-links a {
    font-size: 11px;
    letter-spacing: 1px;
  }

  footer .footer-meta {
    font-size: 10px;
  }
}
