/* =========================================================
   XueMo Books — 米白 / 白色简约色系
   ========================================================= */
:root {
  --color-primary: #1e5bb8; /* 按钮/强调：饱和蓝 */
  --color-secondary: #1c1917; /* 深炭标题 */
  --color-text: #57534e; /* 正文灰 */
  --color-accent: #f5f1ea; /* 米色色块 */
  --color-red: #ca3d1a; /* 价格等 */
  --color-white: #ffffff;
  --color-cream: #fff;
  --color-beige: #ede8e1;
  --color-yellow: #d6c6ae;
  /* 背景蓝色系（参考浅天蓝 + 饱和蓝色带） */
  --color-blue: #1e5bb8; /* 角标 / 社交圆标 */
  --color-blue-deep: #0f3f8c;
  --color-blue-soft: #6ba3f0;
  --color-blue-bg: #e3f2fd; /* 浅天蓝背景带 */
  --color-blue-band: #1e5bb8; /* 饱和蓝全宽色带 */
  --side-gap: 25%;
  --content-col: 70%;
  --container: 50%;
  /* --font-heading: "Playfair Display", "Noto Serif SC", Georgia, serif; */
  --font-heading: Arial;
  --font-ui: Arial;
  --font-script: "Satisfy", cursive;
  --font-body: Arial;
  --radius: 10px;
  --color-muted: #a8a29e;
  --muted: #a8a29e;
  --color-line: #e7e5e4;
  --color-star: #ffcc00;
  --transition: 0.25s ease;
  --header-h: 96px;
  --header-fg: #1e5bb8;
}

/* ---------------------------------------------------------
   Playfair Display 的 & 是花体设计；这里仅让 & (U+0026)
   回退到本机普通衬线字体（Georgia / Times New Roman），
   其余字符仍使用 Playfair Display 渲染。
   --------------------------------------------------------- */
@font-face {
  font-family: "Playfair Display";
  src: local("Georgia"), local("Times New Roman");
  unicode-range: U+0026;
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: "Playfair Display";
  src: local("Georgia"), local("Times New Roman");
  unicode-range: U+0026;
  font-weight: 100 900;
  font-style: italic;
}

/* ---------- Reset + typography ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
button,
input,
select,
textarea {
  font-family: inherit;
}
ul {
  margin: 0 0 1em;
}
p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  margin: 0 0 0.45em;
  line-height: 1.1;
}
h1 {
  font-size: 90px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.12;
}
/* book-title block preserves original input case (overrides global h1 uppercase) */
.shop-book-title .shop-book-title__title {
  text-transform: none;
}
h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}
h3 {
  font-size: 24px;
  font-weight: 700;
  text-transform: none;
  line-height: 1.3;
}
h4 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}
h6,
.eyebrow {
  font-family: var(--font-script);
  font-size: 26px;
  font-weight: 400;
  color: var(--color-primary);
  text-transform: none;
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0 0 0.35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 内容居中栏：宽 50%（左右各约 25% 留在色块里） */
.container,
.container-wide {
  width: var(--content-col);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* 色块：必须 100% 全宽铺满 */
.band {
  width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
}
.band-white {
  background: var(--color-white);
}
.band-cream {
  background: linear-gradient(180deg, #f5fafe 0%, #e3f2fd 100%);
}

/* Announcement unused on Elementor clone */
.announcement {
  display: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eeaa21;
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 32px 12px;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.btn:hover {
  background: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
  color: var(--color-white);
}
.btn-primary,
.btn-yellow {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover,
.btn-yellow:hover {
  background: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
  color: var(--color-white);
}
.btn-solid {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-solid:hover {
  background: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
}
.btn-ghost:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.text-link:hover {
  color: var(--color-primary);
}
.center-link {
  display: table;
  margin: 16px auto 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head h2 {
  margin-bottom: 0;
}
/* Hide WooCommerce “View cart” link (injected after AJAX add-to-cart)
   inside all custom shop blocks — book-feature / book-showcase /
   quote-banner etc. They don't need this link since the mini-cart
   drawer already handles the “go to cart” flow. */
[class*="shop-"] a.added_to_cart {
  display: none !important;
}

.section-head h2 em,
.split-copy h2 em,
.reviews h2 em,
.author h2 em {
  font-style: italic;
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-primary);
}
