
/*
Theme Name: 拾光手作
Author: 拾光手作
Description: 面向手工组装、饰品加工和包装配套业务的轻量中文 WordPress 主题，自带视频首页与 Tawk.to 在线聊天入口。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shiguang-handmade
*/

:root {
  --ink: #28241f;
  --paper: #f7f3ec;
  --cream: #eee5d8;
  --clay: #b85b3d;
  --clay-dark: #8e3f29;
  --sage: #9da48c;
  --line: rgba(40, 36, 31, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-bar .site-header { margin-top: 0; }
.content-default { max-width: 900px; min-height: 60vh; margin: auto; padding: 90px 5vw; }
.content-default article { margin-bottom: 60px; }
.content-default h1, .content-default h2 { font-family: "Songti SC", "STSong", serif; }
.content-default a { color: var(--clay); text-decoration: underline; }

.site-header { height: 88px; max-width: 1440px; margin: auto; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--clay); border-radius: 50% 50% 46% 54% / 48% 45% 55% 52%; font-family: serif; font-size: 20px; }
.brand > span:last-child, .brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand b { font-family: "Songti SC", "STSong", serif; font-size: 18px; letter-spacing: .12em; }
.brand small { font-size: 8px; letter-spacing: .24em; opacity: .5; }
.custom-logo-link { display: block; width: 42px; height: 42px; }
.custom-logo { width: 42px; height: 42px; object-fit: contain; }
nav { display: flex; gap: clamp(20px, 3vw, 46px); font-size: 14px; }
nav .primary-menu { margin: 0; padding: 0; list-style: none; display: flex; gap: clamp(20px, 3vw, 46px); }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--clay); transition: .25s; }
nav a:hover::after { right: 0; }
.header-cta { border: 1px solid var(--ink); padding: 11px 17px; font-size: 13px; transition: .2s; }
.header-cta:hover { background: var(--ink); color: #fff; }

.hero { max-width: 1440px; min-height: 720px; margin: auto; padding: 72px 5vw 86px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 6vw; align-items: center; overflow: hidden; }
.eyebrow, .kicker { color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow i { width: 24px; height: 1px; background: var(--clay); }
.hero h1 { margin: 26px 0 28px; font-family: "Songti SC", "STSong", serif; font-size: clamp(50px, 5.1vw, 78px); line-height: 1.17; font-weight: 500; letter-spacing: -.04em; }
.hero h1 em { color: var(--clay); font-style: normal; }
@media (min-width: 641px) {
  .hero h1 em { display: inline-block; white-space: nowrap; }
}
.hero-lead { max-width: 590px; margin: 0; color: #665f56; font-size: 17px; line-height: 2; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; font-size: 14px; }
.button.primary { background: var(--clay); color: #fff; }
.button.primary:hover { background: var(--clay-dark); }
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.trust-row { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 25px; color: #766f66; font-size: 12px; }
.trust-row b { color: var(--clay); margin-right: 5px; }
.hero-media { min-height: 590px; position: relative; }
.hero-media::before { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid #d9cabb; border-radius: 50%; left: 2%; top: 7%; }
.hero-video-card { position: absolute; overflow: hidden; box-shadow: 0 20px 60px rgba(53,40,28,.15); background: #ddd; }
.hero-video-card video { width: 100%; height: 100%; object-fit: cover; }
.main-video { width: 54%; height: 83%; left: 9%; top: 2%; z-index: 2; border-radius: 46% 46% 14px 14px / 28% 28% 14px 14px; }
.mini-video { width: 35%; height: 40%; right: 0; z-index: 3; border: 8px solid var(--paper); }
.mini-video.top { top: 2%; }
.mini-video.bottom { bottom: 2%; }
.video-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.67)); display: flex; justify-content: space-between; align-items: end; }
.video-label span { font-size: 11px; letter-spacing: .15em; }
.video-label b { font-family: serif; font-size: 20px; }
.craft-note { position: absolute; z-index: 4; left: 0; bottom: 0; width: 180px; padding: 20px; display: flex; gap: 10px; background: #fff; box-shadow: 0 15px 40px rgba(70,55,40,.12); }
.craft-note span { color: var(--clay); }
.craft-note p { margin: 0; color: #867d73; font-size: 11px; line-height: 1.7; }
.craft-note b { color: var(--ink); font-size: 13px; }

.intro-strip { background: var(--ink); color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); padding: 31px max(5vw, calc((100vw - 1296px)/2)); }
.intro-strip div { padding: 5px 5vw; display: flex; gap: 20px; align-items: center; border-right: 1px solid rgba(255,255,255,.15); }
.intro-strip div:first-child { padding-left: 0; }
.intro-strip div:last-child { border: 0; padding-right: 0; }
.intro-strip span { color: #d5977f; font-family: serif; font-size: 13px; }
.intro-strip p { margin: 0; color: rgba(255,255,255,.56); font-size: 11px; line-height: 1.7; }
.intro-strip b { display: block; color: #fff; font-size: 14px; }

.section { max-width: 1440px; margin: auto; padding: 120px 5vw; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 52px; }
.section-heading h2, .strength-content h2, .category-copy h2, .contact h2 { margin: 13px 0 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(36px, 3.5vw, 54px); line-height: 1.25; font-weight: 500; }
.section-heading > p { max-width: 480px; margin: 0; color: #70685f; font-size: 14px; line-height: 1.9; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid rgba(40,36,31,.08); transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 24px 50px rgba(58,42,27,.09); }
.service-media { height: 430px; position: relative; overflow: hidden; background: #ddd; }
.service-media video { width: 100%; height: 100%; object-fit: cover; }
.service-tag, .play-hint { position: absolute; top: 18px; padding: 7px 11px; background: rgba(255,255,255,.9); font-size: 11px; }
.service-tag { left: 18px; color: var(--clay); }
.play-hint { right: 18px; color: #777; }
.service-content { min-height: 160px; padding: 28px; display: flex; gap: 24px; }
.service-content > span { color: var(--clay); font-family: serif; font-size: 12px; padding-top: 6px; }
.service-content h3 { margin: 0 0 10px; font-family: serif; font-size: 25px; }
.service-content p { margin: 0; color: #756d63; font-size: 13px; line-height: 1.8; }

.strengths { display: grid; grid-template-columns: .95fr 1.05fr; gap: 8vw; background: #eee7dd; max-width: none; padding-left: max(5vw, calc((100vw - 1296px)/2)); padding-right: max(5vw, calc((100vw - 1296px)/2)); }
.strength-visual { min-height: 700px; position: relative; }
.strength-visual::before { content: ""; position: absolute; inset: 5% -5% -5% 5%; border: 1px solid #cdbfac; }
.strength-visual img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); }
.visual-caption { position: absolute; z-index: 2; left: -25px; bottom: 40px; background: var(--clay); color: white; padding: 21px 26px; }
.visual-caption span, .visual-caption b { display: block; }
.visual-caption span { margin-bottom: 5px; font-size: 10px; letter-spacing: .15em; opacity: .65; }
.visual-caption b { font-family: serif; font-size: 16px; }
.strength-content { align-self: center; }
.strength-content h2 { margin-bottom: 22px; }
.strength-lead { color: #6e665d; font-size: 14px; line-height: 1.9; }
.strength-list { margin-top: 38px; border-top: 1px solid var(--line); }
.strength-item { padding: 21px 0; display: grid; grid-template-columns: 48px 1fr; border-bottom: 1px solid var(--line); }
.strength-item > span { color: var(--clay); font-family: serif; font-size: 12px; }
.strength-item h3 { margin: 0 0 7px; font-size: 16px; }
.strength-item p { margin: 0; color: #756d63; font-size: 12px; line-height: 1.7; }

.categories { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: center; }
.category-copy p { max-width: 460px; color: #70685f; font-size: 14px; line-height: 1.9; }
.category-cloud { display: flex; flex-wrap: wrap; gap: 14px; align-content: center; }
.category-cloud span { padding: 17px 25px; border: 1px solid var(--line); background: rgba(255,255,255,.35); font-family: serif; font-size: 17px; }
.category-cloud span:nth-child(2n) { transform: translateY(12px); }
.category-cloud span.active { background: var(--clay); color: #fff; border-color: var(--clay); }

.process { padding-top: 45px; }
.section-heading.compact { margin-bottom: 40px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.process-grid article { padding: 35px 32px 15px 0; position: relative; }
.process-grid article > span { color: var(--clay); font-family: serif; font-size: 12px; }
.process-grid i { display: block; width: 9px; height: 9px; margin: 24px 0; background: var(--clay); border-radius: 50%; box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px #c9bbb0; }
.process-grid h3 { margin: 0 0 12px; font-family: serif; font-size: 21px; }
.process-grid p { max-width: 230px; margin: 0; color: #776f65; font-size: 12px; line-height: 1.8; }

.contact { max-width: 1296px; margin: 10px auto 0; padding: 80px 7%; background: var(--clay); color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: center; }
.kicker.light { color: #f1c4b3; }
.contact h2 { font-size: clamp(42px, 4.6vw, 68px); }
.contact-copy p { max-width: 560px; color: rgba(255,255,255,.7); line-height: 1.9; font-size: 14px; }
.contact-card { padding: 33px; background: #fff; color: var(--ink); }
.contact-card > div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-card small, .contact-card b { display: block; }
.contact-card small { margin-bottom: 5px; color: #948a7f; font-size: 10px; }
.contact-card b { font-size: 14px; }
.contact-card a { margin-top: 25px; padding: 16px 18px; display: flex; justify-content: space-between; background: var(--ink); color: #fff; font-size: 13px; }
.contact-card > p { margin: 15px 0 0; color: #999; font-size: 9px; line-height: 1.6; }

footer { max-width: 1296px; margin: auto; padding: 52px 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #81786e; font-size: 11px; }
footer > p { text-align: center; }
footer > span { text-align: right; }

@media (max-width: 960px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { max-width: 720px; }
  .hero-media { min-height: 640px; }
  .main-video { width: 58%; }
  .mini-video { width: 36%; right: 3%; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; width: calc(50% - 12px); }
  .strengths { grid-template-columns: 1fr; }
  .strength-visual { min-height: 600px; }
  .categories { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact { margin: 0 5vw; }
  footer { margin: 0 5vw; grid-template-columns: 1fr; gap: 20px; text-align: center; }
  footer > p, footer > span { text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 640px) {
  .site-header { height: 74px; padding: 0 20px; }
  .header-cta { padding: 9px 11px; }
  .brand small { display: none; }
  .hero { padding: 48px 20px 65px; gap: 45px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .trust-row { margin-top: 28px; gap: 13px; }
  .hero-media { min-height: 455px; }
  .main-video { width: 67%; height: 88%; left: 0; }
  .mini-video { width: 40%; height: 38%; right: 0; border-width: 5px; }
  .craft-note { width: 155px; padding: 13px; }
  .intro-strip { grid-template-columns: 1fr; padding: 20px; }
  .intro-strip div, .intro-strip div:first-child, .intro-strip div:last-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .section { padding: 80px 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; width: 100%; }
  .service-media { height: 480px; }
  .strengths { padding-left: 20px; padding-right: 20px; }
  .strength-visual { min-height: 520px; }
  .visual-caption { left: -10px; }
  .category-cloud span { padding: 13px 16px; font-size: 14px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { border-bottom: 1px solid var(--line); }
  .contact { margin: 0; padding: 70px 24px; grid-template-columns: 1fr; }
  footer { margin: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
