/* ========================================================
 * 上尚优品 - 主题样式
 * 基于 VIS 视觉识别系统：暖棕赤陶 + 米白 + 拉丝古铜金
 * ======================================================== */

/* ---------- Design Tokens ---------- */
:root {
	--background: #f8f5ef;
	--foreground: #1f1814;
	--card: #ffffff;
	--card-foreground: #1f1814;
	--muted: #efe9df;
	--muted-foreground: #67594d;
	--secondary: #f0e6d8;
	--secondary-foreground: #1f1814;
	--border: rgba(90, 46, 26, 0.16);
	--ring: rgba(180, 130, 70, 0.45);

	--primary: #5a2e1a;          /* 赤陶 */
	--primary-light: #7a3f25;
	--primary-foreground: #fbf6ee;
	--accent: #a8763a;            /* 拉丝古铜金 */
	--accent-light: #c69552;
	--accent-foreground: #1f1814;

	--radius: 2px;
	--container: 1400px;
	--section-y: 96px;
	--section-x: 32px;
	--font-sans: 'Noto Sans SC', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
	--font-serif: 'Noto Serif SC', 'Cormorant Garamond', Georgia, serif;
	--font-mono: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--foreground);
	background: var(--background);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }

/* ---------- Layout ---------- */
.ssyp-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--section-x); }
@media (max-width: 768px) { .ssyp-container { padding: 0 24px; } }
.ssyp-section { padding: var(--section-y) 0; position: relative; }
@media (max-width: 768px) { .ssyp-section { padding: 64px 0; } }

.ssyp-grid { display: grid; gap: 24px; }
.ssyp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssyp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ssyp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
	.ssyp-grid-3, .ssyp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ssyp-grid-2, .ssyp-grid-3, .ssyp-grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Section Title ---------- */
.ssyp-section-title { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; max-width: 760px; margin: 0 auto 48px; }
.ssyp-section-title.is-left { align-items: flex-start; text-align: left; margin-left: 0; }
.ssyp-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
.ssyp-eyebrow::before, .ssyp-eyebrow::after { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .6; }
.ssyp-section-title.is-left .ssyp-eyebrow::before { display: none; }
.ssyp-section-title h2 { font-size: clamp(28px, 4vw, 48px); margin: 0; color: var(--primary); letter-spacing: 0.02em; }
.ssyp-section-title.invert h2 { color: #fff; }
.ssyp-section-title.invert .ssyp-eyebrow { color: var(--accent-light); }
.ssyp-section-title p { color: var(--muted-foreground); margin: 0; font-size: 15px; max-width: 640px; }
.ssyp-section-title.invert p { color: rgba(255,255,255,.72); }

.ssyp-divider { display: inline-block; width: 60px; height: 1px; background: var(--accent); margin: 24px auto; }

/* ---------- Buttons ---------- */
.ssyp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 32px; font-size: 14px; font-weight: 500; letter-spacing: 0.1em;
	border-radius: var(--radius); transition: all .25s ease; cursor: pointer; border: 1px solid transparent;
}
.ssyp-btn-primary { background: var(--primary); color: var(--primary-foreground); }
.ssyp-btn-primary:hover { background: var(--primary-light); color: var(--primary-foreground); transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(90,46,26,.5); }
.ssyp-btn-accent { background: var(--accent); color: var(--accent-foreground); }
.ssyp-btn-accent:hover { background: var(--accent-light); color: var(--accent-foreground); }
.ssyp-btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.ssyp-btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.ssyp-btn-ghost { color: var(--primary); border-color: var(--primary); background: transparent; }
.ssyp-btn-ghost:hover { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Brand Mark ---------- */
.ssyp-brand-mark { display: inline-flex; align-items: center; gap: 12px; }
.ssyp-brand-glyph { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--primary); }
.ssyp-brand-glyph::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--accent); }
.ssyp-brand-glyph::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.ssyp-brand-glyph .corner { position: absolute; width: 4px; height: 4px; background: var(--accent); }
.ssyp-brand-glyph .corner.tl { top: -1px; left: -1px; }
.ssyp-brand-glyph .corner.tr { top: -1px; right: -1px; }
.ssyp-brand-glyph .corner.bl { bottom: -1px; left: -1px; }
.ssyp-brand-glyph .corner.br { bottom: -1px; right: -1px; }
.ssyp-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.ssyp-brand-text .cn { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--primary); letter-spacing: .12em; }
.ssyp-brand-text .en { font-size: 9px; letter-spacing: .35em; color: var(--accent); margin-top: 4px; font-family: var(--font-mono); }
.ssyp-brand-mark.invert .ssyp-brand-glyph { border-color: rgba(255,255,255,.7); }
.ssyp-brand-mark.invert .ssyp-brand-glyph::before { border-color: var(--accent-light); }
.ssyp-brand-mark.invert .cn { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
/* ---------- Utilities ---------- */
.ssyp-text-balance { text-wrap: balance; }
.ssyp-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.ssyp-mt-1 { margin-top: 8px; }
.ssyp-mt-2 { margin-top: 16px; }
.ssyp-mt-3 { margin-top: 24px; }
.ssyp-mt-4 { margin-top: 32px; }
.ssyp-mb-1 { margin-bottom: 8px; }
.ssyp-mb-2 { margin-bottom: 16px; }
.ssyp-mb-3 { margin-bottom: 24px; }
.ssyp-mb-4 { margin-bottom: 32px; }

/* WordPress 默认样式覆盖 */
.alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted-foreground); text-align: center; padding: 8px 0; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
