/*
Theme Name: 鼎廉珠宝
Theme URI: https://example.com/dinglian-jewelry
Author: 鼎廉珠宝
Author URI: https://example.com
Description: 鼎廉珠宝 WordPress 主题
Version: 1.0.0-fix
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dinglian-jewelry
Tags: jewelry, business, e-commerce, custom-logo, custom-menu, featured-images
*/

/* ===== 以下为原 index.html 中的全部 CSS，原样保留 ===== */
/* 顶栏主菜单开始为补充CSS */

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f6f2ec;
  font-family: 'Montserrat', sans-serif;
  color: #1e1a17;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

/* 顶栏 */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(180, 160, 140, 0.25);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: #1e1a17;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.brand-location {
  font-size: 0.75rem;
  color: #a48e7c;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}

.slogan-badge {
  background: transparent;
  padding: 0.5rem 0.2rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #8f7a68;
  letter-spacing: 0.15em;
  border-left: 2px solid #cbb7a6;
  padding-left: 1.2rem;
  text-transform: uppercase;
}

/* 介绍区 */
.intro-section {
  text-align: center;
  max-width: 760px;
  margin: 4.5rem auto 5rem auto;
}

.intro-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #b09b87;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 1.5rem;
}

.intro-eyebrow::before,
.intro-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: #d8ccc0;
}

.intro-eyebrow::before { left: -10px; }
.intro-eyebrow::after  { right: -10px; }

.intro-section h1 {
  font-size: 2.6rem;
  line-height: 1.4;
  margin-bottom: 1.8rem;
  font-weight: 500;
  color: #1e1a17;
  letter-spacing: 0.02em;
}

.intro-section h1 .accent {
  color: #8f7a68;
  font-style: italic;
  font-weight: 400;
}

.intro-section p {
  font-size: 1rem;
  color: #5a4f46;
  font-weight: 300;
  line-height: 2;
  max-width: 640px;
  margin: 0 auto;
}

.intro-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2rem auto 1.8rem;
}

.intro-divider span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbb7a6;
  display: block;
}

.intro-divider span:nth-child(2) {
  width: 24px;
  height: 1px;
  border-radius: 0;
  background: #d8ccc0;
}

.intro-section .intro-values {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #6b5d50;
  letter-spacing: 0.05em;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* 产品分类 */
.product-categories {
  margin: 4rem 0 5rem 0;
}

.product-categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1e1a17;
}

.product-categories .sub-cat-desc {
  text-align: center;
  color: #9b8a7a;
  margin-bottom: 2.5rem;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  max-width: 1000px;
  margin: 0 auto;
}

.category-item {
  background: transparent;
  border: 1px solid #d8ccc0;
  padding: 0.65rem 1.6rem;
  text-align: center;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #3b322b;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.4);
}

.category-item i {
  color: #b09b87;
  font-size: 0.8rem;
}

.category-item:hover {
  background: #1e1a17;
  color: #f6f2ec;
  border-color: #1e1a17;
}

.category-item:hover i {
  color: #d9c6b4;
}

/* ========== 钻石查询 - 暖调深色版 ========== */
.diamond-banner {
  background: #2b2520;
  color: #f3ede7;
  padding: 4.5rem 4rem;
  margin: 4rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(43, 37, 32, 0.35);
}

.diamond-banner::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -10%;
  width: 70%;
  height: 220%;
  background: radial-gradient(circle, rgba(220, 200, 180, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.diamond-banner::after {
  content: "✦";
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 130px;
  color: rgba(220, 200, 180, 0.05);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
  pointer-events: none;
}

.diamond-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.diamond-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c4b4a4;
  font-weight: 500;
  margin-bottom: 1.4rem;
  position: relative;
  padding: 0 1.2rem;
}

.diamond-eyebrow::before,
.diamond-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1px;
  background: rgba(200, 180, 160, 0.35);
}

.diamond-eyebrow::before { left: -6px; }
.diamond-eyebrow::after  { right: -6px; }

.diamond-text h2 {
  font-size: 2.6rem;
  color: #f5ede4;
  margin-bottom: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.diamond-text h2 .num {
  font-size: 3.2rem;
  color: #e8d5c0;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  margin-right: 0.15em;
}

.diamond-sub {
  color: #c8bcae;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2.4rem;
}

.diamond-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 180, 160, 0.15);
}

.diamond-url {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  border: 1px solid rgba(210, 190, 168, 0.3);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.diamond-url:hover {
  border-color: rgba(210, 190, 168, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.diamond-url i {
  color: #d8c8b4;
  font-size: 0.8rem;
}

.diamond-url a {
  color: #f0e4d5;
  text-decoration: none;
  font-weight: 400;
}

.slogan-strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #e8d5c0;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 扫码区 */
.scan-section {
  margin: 4rem 0 2rem 0;
}

.scan-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.scan-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.scan-header p {
  color: #9b8a7a;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
  margin-top: 1rem;
}

.qr-card {
  background: #ffffff;
  padding: 2rem 1.5rem 1.8rem 1.5rem;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.03);
  border: 1px solid #ede5dd;
  text-align: center;
  width: 100%;
  max-width: 240px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.08);
  border-color: #cbb7a6;
}

.qr-image {
  width: 150px;
  height: 150px;
  background: #f6f2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid #e2d8cf;
}

.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-image .placeholder-text {
  font-size: 0.7rem;
  color: #a09080;
  text-align: center;
  padding: 0.5rem;
  letter-spacing: 0.1em;
}

.qr-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #1e1a17;
  letter-spacing: 0.04em;
}

.qr-card .qr-desc {
  font-size: 0.75rem;
  color: #9b8a7a;
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-card .qr-hint {
  font-size: 0.65rem;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  color: #7f6e5f;
  margin-top: 0.3rem;
  border: 1px solid #e2d8cf;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.05em;
}

.qr-features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  width: 100%;
}

.qr-features-row .mini-badge {
  font-size: 0.6rem;
  background: #f3ede7;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  color: #5d4e42;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.qr-features-row .mini-badge i {
  font-size: 0.55rem;
  color: #b09b87;
}

.unified-note {
  text-align: center;
  margin: 2rem 0 0.5rem;
  font-size: 0.85rem;
  color: #7f6e5f;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.unified-note i {
  margin-right: 8px;
  color: #b09b87;
}

/* ========== 底部 ========== */
.footer {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(180, 160, 140, 0.25);
  text-align: center;
  font-size: 0.85rem;
  color: #5a4f46;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-bottom: 2rem;
  padding: 0;
}

.footer-nav li {
  list-style: none;
  display: flex;
  align-items: center;
}

.footer-nav li a {
  color: #5a4f46;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-nav li a:hover {
  color: #1e1a17;
}

.footer-nav li a i {
  font-size: 0.65rem;
  color: #b09b87;
}

.footer-nav .divider {
  width: 1px;
  height: 12px;
  background: #d8ccc0;
  display: inline-block;
  margin: 0 0.2rem;
}

.footer-copyright {
  font-size: 0.7rem;
  color: #a89888;
  letter-spacing: 0.08em;
  font-weight: 300;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(180, 160, 140, 0.4);
  background: rgba(246, 242, 236, 0.9);
  color: #5a4f46;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px -8px rgba(43, 37, 32, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1e1a17;
  color: #f6f2ec;
  border-color: #1e1a17;
}

.back-to-top:active {
  transform: translateY(1px) scale(0.97);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .container { padding: 2rem 2rem; }
  .qr-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .intro-section h1 { font-size: 2.2rem; }
  .diamond-banner { padding: 3.5rem 2.5rem; }
  .diamond-text h2 { font-size: 2.2rem; }
  .diamond-text h2 .num { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .container { padding: 1.5rem 1.5rem; }
  .brand-bar { flex-direction: column; align-items: flex-start; }
  .intro-section { margin: 3rem auto 3.5rem auto; }
  .intro-section h1 { font-size: 2rem; line-height: 1.35; }
  .intro-section .intro-values { font-size: 1.1rem; }
  .product-categories h2,
  .scan-header h2 { font-size: 1.8rem; }
  .product-categories .sub-cat-desc,
  .scan-header p { font-size: 0.8rem; letter-spacing: 0.1em; }
  .diamond-banner { padding: 3rem 1.5rem; }
  .diamond-text h2 { font-size: 1.7rem; }
  .diamond-text h2 .num { font-size: 2.2rem; }
  .diamond-sub { font-size: 0.85rem; margin-bottom: 2rem; }
  .diamond-cta { gap: 1rem; }
  .slogan-strong { font-size: 1.2rem; }
  .category-grid { gap: 0.7rem; }
  .category-item { padding: 0.5rem 1.2rem; font-size: 0.75rem; }
  .footer { margin-top: 4rem; padding-top: 2.5rem; }
  .footer-nav { gap: 0.5rem 0.8rem; }
  .footer-nav li a { font-size: 0.78rem; }
  .back-to-top { right: 18px; bottom: 22px; width: 42px; height: 42px; }
}

@media (max-width: 580px) {
  .qr-grid { grid-template-columns: 1fr; justify-items: center; }
  .qr-card { max-width: 300px; }
  .intro-section h1 { font-size: 1.7rem; }
  .intro-eyebrow { font-size: 0.65rem; letter-spacing: 0.25em; }
  .brand-name { font-size: 1.7rem; }
  .product-categories h2,
  .scan-header h2 { font-size: 1.55rem; }
  .product-categories .sub-cat-desc,
  .scan-header p { font-size: 0.72rem; letter-spacing: 0.08em; }
  .scan-header { margin-bottom: 2.5rem; }
  .category-item { font-size: 0.7rem; padding: 0.4rem 1rem; }
  .diamond-text h2 { font-size: 1.45rem; }
  .diamond-text h2 .num { font-size: 1.9rem; }
  .diamond-sub { font-size: 0.78rem; letter-spacing: 0.05em; }
  .diamond-cta { flex-direction: column; gap: 0.9rem; }
  .slogan-strong { font-size: 1.1rem; white-space: normal; }
  .back-to-top { right: 14px; bottom: 18px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

.footer-info {
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-info p {
  margin: 0;
  font-size: 0.82rem;
  color: #5a4f46;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-info i {
  color: #b09b87;
  font-size: 0.75rem;
}

.footer-icp a {
  color: #5a4f46;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: #1e1a17;
  text-decoration: underline;
}

@media (max-width: 580px) {
  .footer-info p {
    font-size: 0.75rem;
    text-align: center;
  }
}

/* 顶栏主菜单 */
.primary-nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;               /* 允许在 nowrap 下收缩，避免溢出 */
}

.primary-menu {
  display: flex;
  flex-wrap: nowrap;          /* 菜单项保持一行 */
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  list-style: none;
}

.primary-menu li a {
  color: #5a4f46;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item > a {
  color: #1e1a17;
}

@media (max-width: 768px) {
  .brand-bar {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;          /* 仅移动端允许换行 */
  }
  .primary-nav {
    width: 100%;
  }
  .primary-menu {
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;          /* 移动端菜单可换行 */
  }
  .primary-menu li a {
    font-size: 0.78rem;
  }
}

/* ========== 归档 / 文章列表 ========== */
.archive-wrap {
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

.archive-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(180, 160, 140, 0.25);
}

.archive-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #b09b87;
  font-weight: 500;
  margin-bottom: 1rem;
}

.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: #1e1a17;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.archive-title span {
  color: #8f7a68;
  font-style: italic;
  font-weight: 400;
}

.archive-desc {
  margin-top: 1rem;
  color: #9b8a7a;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* 文章卡片 */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(180, 160, 140, 0.25);
  transition: opacity 0.25s ease;
}

.post-card:first-child { padding-top: 0; }

.post-card:hover { opacity: 0.92; }

.post-card-thumb {
  flex: 0 0 220px;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #ede5dd;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-body {
  flex: 1;
  min-width: 0;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #9b8a7a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.post-cat { color: #8f7a68; }
.post-sep { color: #d8ccc0; }

.post-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.9rem;
}

.post-card-title a {
  color: #1e1a17;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover { color: #8f7a68; }

.post-card-excerpt {
  color: #5a4f46;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.95;
  margin-bottom: 1.2rem;
}

.post-card-excerpt p { margin: 0; }

.post-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7a68;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.post-card-more:hover {
  color: #1e1a17;
  gap: 0.8rem;
}

.post-card-more i { font-size: 0.7rem; }

/* 分页 */
.archive-pagination {
  margin: 3.5rem 0 2rem;
  text-align: center;
}

.archive-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  color: #5a4f46;
  text-decoration: none;
  border: 1px solid #d8ccc0;
  border-radius: 40px;
  transition: all 0.2s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: #1e1a17;
  color: #f6f2ec;
  border-color: #1e1a17;
}

.archive-empty {
  text-align: center;
  color: #9b8a7a;
  padding: 3rem 0;
}

/* 归档页响应式 */
@media (max-width: 768px) {
  .archive-wrap { margin-top: 3rem; }
  .archive-title { font-size: 2rem; }
  .post-card { flex-direction: column; gap: 1.2rem; padding: 2rem 0; }
  .post-card-thumb { flex: none; width: 100%; max-height: 220px; }
  .post-card-title { font-size: 1.5rem; }
}

@media (max-width: 580px) {
  .archive-header { margin-bottom: 2.5rem; padding-bottom: 2rem; }
  .archive-title { font-size: 1.7rem; }
  .post-card-title { font-size: 1.35rem; }
  .post-card-excerpt { font-size: 0.9rem; }
}

/* ========== 文章详情 ========== */
.single-wrap {
  max-width: 820px;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

.single-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(180, 160, 140, 0.25);
}

.single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #9b8a7a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.single-cat { color: #8f7a68; }

.single-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1e1a17;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.single-author {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #8f7a68;
  letter-spacing: 0.05em;
}

.single-author img {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: block;
}

.single-thumbnail {
  margin: 0 0 2.5rem;
  overflow: hidden;
}

.single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* 正文 */
.single-post .entry-content {
  font-size: 1rem;
  line-height: 2;
  color: #5a4f46;
  font-weight: 300;
}

.single-post .entry-content > * + * {
  margin-top: 1.2em;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  font-family: 'Cormorant Garamond', serif;
  color: #1e1a17;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2em;
}

.single-post .entry-content h2 { font-size: 1.8rem; }
.single-post .entry-content h3 { font-size: 1.4rem; }

.single-post .entry-content a {
  color: #8f7a68;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.single-post .entry-content a:hover { color: #1e1a17; }

.single-post .entry-content blockquote {
  border-left: 2px solid #cbb7a6;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: #8f7a68;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.single-post .entry-content pre,
.single-post .entry-content code {
  background: #f3ede7;
  border: 1px solid #e2d8cf;
  font-size: 0.9rem;
  border-radius: 2px;
}

.single-post .entry-content pre {
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
}

.single-post .entry-content code { padding: 0.1rem 0.4rem; }
.single-post .entry-content pre code { background: none; border: 0; padding: 0; }

/* 上/下一篇 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(180, 160, 140, 0.25);
}

.post-nav a {
  flex: 1 1 45%;
  text-decoration: none;
  color: #5a4f46;
  transition: color 0.2s ease;
  display: block;
}

.post-nav a:hover { color: #1e1a17; }

.post-nav-next { text-align: right; }

.post-nav-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b09b87;
  margin-bottom: 0.4rem;
}

.post-nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ========== 评论区 ========== */
.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(180, 160, 140, 0.25);
}

.comments-title,
.comment-reply-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #1e1a17;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: 0;
  padding-left: 3rem;
  border-left: 1px solid rgba(180, 160, 140, 0.2);
}

.comment-item {
  margin: 0 0 2rem;
}

.comment-item .comment-body {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: #ffffff;
  border: 1px solid #ede5dd;
  border-radius: 2px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.comment-item .comment-body:hover {
  border-color: #d8ccc0;
  box-shadow: 0 12px 28px -18px rgba(43, 37, 32, 0.25);
}

.comment-avatar img {
  border-radius: 50%;
  display: block;
  width: 56px;
  height: 56px;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9b8a7a;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.comment-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e1a17;
  letter-spacing: 0.03em;
}

.comment-author a { color: inherit; text-decoration: none; }
.comment-author a:hover { color: #8f7a68; }

.comment-sep { color: #d8ccc0; }
.comment-date { font-size: 0.72rem; }
.comment-await { color: #c47a4a; font-size: 0.7rem; }

.comment-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #5a4f46;
  font-weight: 300;
}

.comment-text p { margin: 0 0 0.6em; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-actions {
  margin-top: 0.7rem;
}

.comment-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7a68;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-actions a:hover { color: #1e1a17; }
.comment-actions i { font-size: 0.65rem; }

.comments-pagination { margin: 2rem 0 2.5rem; text-align: center; }

.comments-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 0.2rem;
  padding: 0 0.5rem;
  border: 1px solid #d8ccc0;
  border-radius: 40px;
  color: #5a4f46;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.comments-pagination .page-numbers:hover,
.comments-pagination .page-numbers.current {
  background: #1e1a17;
  color: #f6f2ec;
  border-color: #1e1a17;
}

.no-comments {
  font-size: 0.85rem;
  color: #9b8a7a;
  text-align: center;
  padding: 1rem 0 2rem;
}

/* 评论表单 */
.comment-respond {
  margin-top: 2rem;
  padding: 2rem 1.5rem 1.5rem;
  background: #ffffff;
  border: 1px solid #ede5dd;
  border-radius: 2px;
}

.comment-reply-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.comment-reply-title small {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f7a68;
}

.cancel-reply {
  display: inline-block;
  margin-left: 0.6rem;
}

.cancel-reply a {
  color: #8f7a68;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.cancel-reply a:hover { color: #1e1a17; }

.comment-notes,
.logged-in-as {
  font-size: 0.78rem;
  color: #9b8a7a;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.logged-in-as a { color: #8f7a68; }

.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}

.comment-form p { margin: 0; }

.comment-form-author,
.comment-form-email,
.comment-form-url { grid-column: span 1; }

.comment-form-comment,
.form-submit,
.comment-notes,
.logged-in-as { grid-column: 1 / -1; }

.comment-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7a68;
  margin-bottom: 0.4rem;
}

.comment-form .required { color: #c47a4a; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #1e1a17;
  background: #f6f2ec;
  border: 1px solid #e2d8cf;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: #8f7a68;
  background: #ffffff;
}

.comment-form textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.comment-form .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f6f2ec;
  background: #1e1a17;
  border: 1px solid #1e1a17;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.comment-form .submit-btn:hover {
  background: #8f7a68;
  border-color: #8f7a68;
}

@media (max-width: 640px) {
  .comment-form { grid-template-columns: 1fr; }
  .comment-list .children { padding-left: 1rem; }
  .comment-item .comment-body { flex-direction: column; }
  .comment-avatar img { width: 44px; height: 44px; }
}

@media (max-width: 580px) {
  .single-title { font-size: 2rem; }
  .comments-title,
  .comment-reply-title { font-size: 1.5rem; }
  .single-wrap { margin-top: 3rem; }
  .post-nav a { flex: 1 1 100%; }
  .post-nav-next { text-align: left; }
}

/* ========== 搜索页 ========== */
.search-wrap .archive-title {
  font-size: 2.4rem;
}

/* 搜索框 */
.search-form-wrap {
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.search-form-inner {
  display: flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e2d8cf;
  border-radius: 40px;
  padding: 0.3rem 0.3rem 0.3rem 1.2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-form-inner:focus-within {
  border-color: #8f7a68;
  box-shadow: 0 10px 30px -18px rgba(43, 37, 32, 0.3);
}

.search-form-icon {
  color: #b09b87;
  font-size: 0.9rem;
  margin-right: 0.6rem;
}

.search-form-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #1e1a17;
  background: transparent;
  border: none;
  outline: none;
}

.search-form-input::placeholder {
  color: #b09b87;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.search-form-submit {
  flex: 0 0 auto;
  padding: 0.6rem 1.6rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f6f2ec;
  background: #1e1a17;
  border: 1px solid #1e1a17;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-form-submit:hover {
  background: #8f7a68;
  border-color: #8f7a68;
}

/* 空结果 */
.search-empty {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.search-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #1e1a17;
  margin-bottom: 0.5rem;
}

.search-empty-desc {
  font-size: 0.85rem;
  color: #9b8a7a;
  letter-spacing: 0.05em;
}

/* 搜索页里的 category-item 是 <a>，需要补 hover 行为 */
.search-empty .category-item {
  text-decoration: none;
}

/* 搜索结果页响应式 */
@media (max-width: 580px) {
  .search-wrap .archive-title { font-size: 1.7rem; }
  .search-form-inner { padding-left: 1rem; }
  .search-form-submit { padding: 0.55rem 1.2rem; font-size: 0.7rem; }
}

/* 404 页面样式 */
.error-404-wrap .archive-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2rem;
}