/* ============================================================
   时光寿品 SHI GUANG SHOU PIN — 暖色新风格 Stylesheet
   传承孝道文化 · 致敬生命尊严
   ============================================================ */

:root {
  --c-primary: #c47a5a;
  --c-primary-dark: #8b5e3c;
  --c-primary-light: #d9916e;
  --c-accent: #d4a574;
  --c-accent-light: #e8c9a0;
  --c-bg: #fef9f3;
  --c-bg-white: #ffffff;
  --c-bg-warm: #f5ece3;
  --c-ink: #4a3a2a;
  --c-ink-light: #7a6a5a;
  --c-muted: #a99a8a;
  --c-line: #e8ddd0;

  --ff-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ff-serif: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(74,58,42,.08);
  --shadow-lg: 0 12px 40px rgba(74,58,42,.12);
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all .3s var(--ease); }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all .3s var(--ease);
}
.site-header.scrolled {
  position: fixed;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 12px 0;
}
.site-header.scrolled .brand-text h1,
.site-header.scrolled .main-nav a { color: var(--c-ink); }
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px; height: 44px;
  background: var(--c-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700;
}
.brand-text h1 {
  font-size: 20px; font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  font-family: var(--ff-serif);
  transition: color .3s var(--ease);
}
.brand-text span {
  font-size: 10px; color: rgba(255,255,255,.6);
  letter-spacing: 2px;
  transition: color .3s var(--ease);
}
.site-header.scrolled .brand-text span { color: var(--c-muted); }

.main-nav {
  display: flex;
  gap: 8px;
}
.main-nav a {
  padding: 10px 20px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  border-radius: 30px;
  transition: all .3s var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.15);
}
.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
  color: var(--c-primary);
  background: rgba(196,122,90,.1);
}

.header-cta .btn-primary {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 30px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-light);
  border-color: var(--c-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196,122,90,.3);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn-gold {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-gold:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  background: linear-gradient(135deg, #5a3a2a 0%, #8b5e3c 50%, #c47a5a 100%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%235a3a2a" stop-opacity=".9"/><stop offset="100%" stop-color="%238b5e3c" stop-opacity=".7"/></linearGradient></defs><rect fill="url(%23g)" width="1440" height="800"/></svg>');
  background-size: cover;
  opacity: .3;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.8) 1px, transparent 0);
  background-size: 40px 40px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 640px;
}
.hero-content .label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--c-accent-light);
  font-size: 12px;
  letter-spacing: 3px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: var(--ff-serif);
  color: #fff;
}
.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-content .btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 12px;
  font-family: var(--ff-serif);
}
.section-head .sub {
  color: var(--c-ink-light);
  font-size: 15px;
}
.section-head .line {
  width: 48px;
  height: 3px;
  background: var(--c-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== About Section ===== */
.about-section {
  position: relative;
  background: linear-gradient(135deg, rgba(139,94,60,.08) 0%, rgba(196,122,90,.05) 100%);
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196,122,90,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-image {
  height: 420px;
  background: linear-gradient(135deg, #e8ddd0, #d8cfc0);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-text h3 {
  font-size: 1.6rem;
  color: var(--c-ink);
  margin-bottom: 20px;
  font-family: var(--ff-serif);
}
.about-text p {
  color: var(--c-ink-light);
  margin-bottom: 16px;
  text-align: justify;
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.stat-item strong {
  display: block;
  font-size: 2.2rem;
  color: var(--c-primary);
  font-family: var(--ff-serif);
}
.stat-item span {
  font-size: 13px;
  color: var(--c-ink-light);
}

/* ===== Product Grid ===== */
.product-section {
  background: var(--c-bg-white);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--c-bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .4s var(--ease);
  border: 1px solid var(--c-line);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card .card-img {
  height: 260px;
  background: linear-gradient(135deg, #e8ddd0, #d8cfc0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 13px;
  overflow: hidden;
}
.product-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-card:hover .card-img img {
  transform: scale(1.05);
}
.product-card .card-body {
  padding: 24px;
}
.product-card .card-body h3 {
  font-size: 17px;
  color: var(--c-ink);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .card-body .sub {
  font-size: 13px;
  color: var(--c-ink-light);
  margin-bottom: 12px;
}
.product-card .card-body .price {
  font-size: 16px;
  color: var(--c-primary);
  font-weight: 600;
}

/* ===== News List ===== */
.news-section { background: var(--c-bg); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  background: var(--c-bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .4s var(--ease);
  border: 1px solid var(--c-line);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-card .news-thumb {
  height: 200px;
  background: linear-gradient(135deg, #e8ddd0, #d8cfc0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 12px;
  overflow: hidden;
}
.news-card .news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.news-card:hover .news-thumb img {
  transform: scale(1.05);
}
.news-card .news-body {
  padding: 24px;
}
.news-card .news-body .meta {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.news-card .news-body h3 {
  font-size: 16px;
  color: var(--c-ink);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-body p {
  font-size: 13px;
  color: var(--c-ink-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-family: var(--ff-serif);
}
.cta-section p {
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, #3a2a1a 0%, #5a3a2a 100%);
  color: rgba(255,255,255,.55);
  font-size: 14px;
}
.footer-main {
  padding: 80px 0 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer-brand .brand-text h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 4px;
  font-family: var(--ff-serif);
}
.footer-brand .brand-text span {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: 2px;
}
.footer-brand p {
  margin-top: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.45);
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 8px 0;
  color: rgba(255,255,255,.45);
}
.footer-col a:hover {
  color: var(--c-accent-light);
  padding-left: 4px;
}
.footer-contact p {
  padding: 6px 0;
  color: rgba(255,255,255,.45);
}
.footer-contact .tel {
  font-size: 20px;
  color: var(--c-accent-light);
  font-weight: 600;
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, #5a3a2a 0%, #8b5e3c 50%, #c47a5a 100%);
  padding: 140px 0 80px;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  font-family: var(--ff-serif);
}
.page-hero .lead {
  color: rgba(255,255,255,.65);
  font-size: 15px;
}

/* ===== Products Page ===== */
.products-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.cat-filter {
  display: flex;
  gap: 8px;
  background: var(--c-bg-white);
  padding: 6px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.cat-filter a {
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  color: var(--c-ink-light);
  transition: all .3s var(--ease);
}
.cat-filter a:hover,
.cat-filter a.active {
  background: var(--c-primary);
  color: #fff;
}

/* ===== Product Detail ===== */
.pd-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0;
}
.pd-gallery {
  height: 480px;
  background: linear-gradient(135deg, #e8ddd0, #d8cfc0);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 {
  font-size: 1.8rem;
  color: var(--c-ink);
  margin-bottom: 8px;
  font-family: var(--ff-serif);
}
.pd-info .subtitle {
  color: var(--c-ink-light);
  margin-bottom: 20px;
}
.pd-info .price {
  font-size: 1.6rem;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}
.pd-info .summary {
  color: var(--c-ink-light);
  line-height: 1.8;
  margin-bottom: 32px;
}
.pd-info .btn-group {
  display: flex;
  gap: 12px;
}
.pd-content {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
}
.pd-content h3 {
  font-size: 1.2rem;
  color: var(--c-ink);
  margin-bottom: 20px;
}
.pd-content p {
  color: var(--c-ink-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== News Detail ===== */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.article-header {
  text-align: center;
  margin-bottom: 40px;
}
.article-header h1 {
  font-size: 1.8rem;
  color: var(--c-ink);
  margin-bottom: 16px;
  font-family: var(--ff-serif);
}
.article-header .meta {
  color: var(--c-muted);
  font-size: 14px;
}
.article-cover {
  height: 360px;
  background: linear-gradient(135deg, #e8ddd0, #d8cfc0);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  box-shadow: var(--shadow);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  color: var(--c-ink-light);
  line-height: 1.9;
}
.article-body p { margin-bottom: 20px; }
.article-body h2, .article-body h3 {
  color: var(--c-ink);
  margin: 32px 0 16px;
}

/* ===== Story Page ===== */
.story-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.story-content p {
  color: var(--c-ink-light);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--c-bg-white);
  padding: 40px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .3s var(--ease);
  border: 1px solid var(--c-line);
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.contact-card .icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}
.contact-card h3 {
  font-size: 16px;
  color: var(--c-ink);
  margin-bottom: 10px;
}
.contact-card .big {
  font-size: 18px;
  color: var(--c-primary);
  font-weight: 600;
}
.contact-card p {
  font-size: 13px;
  color: var(--c-ink-light);
}

/* ===== Shop Page ===== */
.shop-content {
  text-align: center;
  padding: 40px 0;
}
.shop-content p {
  color: var(--c-ink-light);
  line-height: 1.8;
}
.shop-content ul {
  text-align: left;
  max-width: 600px;
  margin: 24px auto;
}
.shop-content li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
}

/* ===== 404 ===== */
.error-page {
  text-align: center;
  padding: 120px 0;
}
.error-page h1 {
  font-size: 6rem;
  color: var(--c-primary);
  opacity: .2;
  font-family: var(--ff-serif);
}
.error-page p {
  color: var(--c-ink-light);
  margin-bottom: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-wrap,
  .pd-wrap { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 500px; }
  .hero-content { padding-bottom: 60px; }
}
@media (max-width: 768px) {
  .site-header .container { flex-wrap: wrap; }
  .main-nav { width: 100%; justify-content: center; margin-top: 12px; }
  .header-cta { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .hero-content h2 { font-size: 1.8rem; }
  .section { padding: 60px 0; }
}
