/*
Theme Name: 元素博士品牌官网
Theme URI: https://example.com/
Author: 元素博士
Description: 为元素博士化妆品品牌定制的轻量、响应式 WordPress 官网主题。
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: yuansuboshi
*/

:root {
  --ink: #17312f;
  --muted: #617371;
  --paper: #fbfdfb;
  --mist: #edf5f1;
  --mint: #d8ebe2;
  --aqua: #77b9ad;
  --deep: #245e57;
  --line: rgba(23, 49, 47, .12);
  --white: #fff;
  --shadow: 0 24px 70px rgba(30, 76, 69, .12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section { padding: 104px 0; }
.section-soft { background: var(--mist); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}
.section-head h2, .page-hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.03em;
}
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  font-weight: 700;
  transition: .25s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(36, 94, 87, .2); }
.button-ghost { background: transparent; color: var(--deep); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(251, 253, 251, .86);
  backdrop-filter: blur(18px);
  transition: .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(23, 49, 47, .06); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .08em; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 220px; max-height: 48px; object-fit: contain; }
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--deep);
  border-radius: 50%;
}
.brand-mark::before, .brand-mark::after {
  position: absolute;
  inset: 7px -5px;
  border: 1px solid var(--aqua);
  border-radius: 50%;
  content: "";
  transform: rotate(55deg);
}
.brand-mark::after { transform: rotate(-55deg); }
.main-nav ul { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; font-size: 15px; font-weight: 650; }
.main-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--aqua); content: ""; transform: scaleX(0); transition: .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); }

.hero { position: relative; overflow: hidden; min-height: 700px; padding: 92px 0 74px; }
.hero::before {
  position: absolute;
  top: -240px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.96), rgba(189,224,209,.75) 45%, rgba(119,185,173,.15) 70%);
  content: "";
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--deep); }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 0 0 34px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; min-height: 510px; }
.orb { position: absolute; border-radius: 50%; filter: blur(.2px); }
.orb-one { inset: 5% 5% 12% 8%; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(210,235,224,.7)); box-shadow: inset -35px -50px 90px rgba(54, 127, 115, .12), var(--shadow); }
.orb-two { top: 0; right: 8%; width: 112px; height: 112px; background: rgba(255,255,255,.78); box-shadow: 0 20px 50px rgba(36,94,87,.12); }
.product-silhouette {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 50%;
  width: 182px;
  height: 332px;
  border: 1px solid rgba(36,94,87,.12);
  border-radius: 32px 32px 38px 38px;
  background: linear-gradient(165deg, #fff, #dfeee7);
  box-shadow: 0 35px 70px rgba(36,94,87,.2);
  transform: translateX(-50%) rotate(5deg);
}
.product-silhouette::before { position: absolute; top: -28px; left: 46px; width: 90px; height: 42px; border-radius: 14px 14px 6px 6px; background: #285f58; content: ""; }
.product-label { position: absolute; top: 96px; left: 0; width: 100%; padding: 20px; text-align: center; }
.product-label strong { display: block; font-family: serif; font-size: 44px; line-height: 1; }
.product-label span { color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.float-note { position: absolute; z-index: 3; padding: 15px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 15px; background: rgba(255,255,255,.72); box-shadow: 0 15px 35px rgba(36,94,87,.1); backdrop-filter: blur(12px); font-size: 13px; font-weight: 700; }
.float-a { top: 25%; left: 1%; }
.float-b { right: 0; bottom: 19%; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -36px; position: relative; z-index: 4; }
.value-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(23,49,47,.07); }
.value-card b { display: block; margin-bottom: 6px; font-size: 18px; }
.value-card span { color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: .28s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-art { position: relative; display: grid; min-height: 390px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f5faf7, #dfeee7); }
.product-art::before { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.64); content: ""; }
.product-art span { position: relative; font-family: serif; font-size: clamp(70px, 11vw, 130px); color: var(--deep); letter-spacing: -.07em; }
.product-art.mask { background: linear-gradient(145deg, #eef7f4, #d9e7ee); }
.product-art.mask span { font-size: clamp(40px, 7vw, 80px); letter-spacing: .08em; }
.product-card-body { padding: 30px; }
.product-card-body h3 { margin: 0 0 10px; font-family: serif; font-size: 30px; }
.product-card-body p { margin: 0 0 22px; color: var(--muted); }
.text-link { color: var(--deep); font-weight: 800; }

.brand-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.story-art { position: relative; min-height: 520px; border-radius: var(--radius-lg); background: linear-gradient(145deg, #cce5db, #f4f8f6); overflow: hidden; }
.story-art::before { position: absolute; top: 70px; left: 50%; width: 280px; height: 390px; border: 1px solid rgba(36,94,87,.2); border-radius: 48% 48% 46% 46%; background: rgba(255,255,255,.42); content: ""; transform: translateX(-50%) rotate(-10deg); }
.story-art::after { position: absolute; right: -70px; bottom: -70px; width: 260px; height: 260px; border: 50px solid rgba(119,185,173,.18); border-radius: 50%; content: ""; }
.story-copy h2 { margin: 0 0 24px; font-family: serif; font-size: clamp(38px, 5vw, 62px); line-height: 1.2; }
.story-copy p { color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.news-card time { color: var(--aqua); font-size: 13px; font-weight: 800; }
.news-card h3 { margin: 14px 0 10px; font-family: serif; font-size: 23px; line-height: 1.45; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }

.page-hero { padding: 92px 0 70px; background: linear-gradient(135deg, var(--mist), transparent); }
.page-hero p { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.content-wrap { max-width: 820px; margin: 0 auto; }
.entry-content { font-size: 17px; }
.entry-content h2, .entry-content h3 { margin-top: 2em; font-family: serif; line-height: 1.35; }
.entry-content p { color: #415654; }
.archive-list { display: grid; gap: 20px; }
.archive-item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.archive-item h2 { margin: 0 0 8px; font-family: serif; }
.archive-item p { color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.contact-card span { display: block; color: var(--muted); font-size: 13px; }
.contact-card strong { display: block; margin-top: 8px; font-size: 20px; }

.site-footer { padding: 70px 0 28px; background: #153a36; color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 50px; padding-bottom: 54px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { border-color: #fff; }
.footer-intro { max-width: 430px; margin-top: 20px; color: rgba(255,255,255,.58); }
.footer-title { color: #fff; font-weight: 800; }
.footer-links { margin: 16px 0 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.46); font-size: 13px; }

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: fixed; inset: 78px 0 auto; display: none; padding: 28px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 62px; }
  .hero-grid, .brand-story { grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { min-height: 440px; }
  .values { grid-template-columns: 1fr; margin-top: 0; }
  .product-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --container: min(100% - 28px, 1180px); --radius-lg: 24px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .hero { min-height: auto; padding-bottom: 54px; }
  .hero h1 { font-size: 50px; }
  .hero-visual { min-height: 370px; }
  .product-silhouette { width: 150px; height: 280px; }
  .product-silhouette::before { left: 38px; width: 74px; }
  .product-label strong { font-size: 38px; }
  .float-a { top: 20%; }
  .product-grid, .news-grid, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .product-art { min-height: 310px; }
  .story-art { min-height: 400px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

