/*
Theme Name: Pose Guide
Theme URI: https://cs.hicy.cn/
Description: 姿势指南主题 - 黑金设计系统
Version: 2.0.2
Author: Pose Guide Team
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pose-guide
*/

/* ------------------------------
   设计系统基础变量
   ------------------------------ */
:root {
	/* 颜色系统 - 黑金主题 */
	--accent: #c9a84c;
	--accent-light: #dfc06e;
	--accent-dark: #a68a35;
	--accent-rgb: 201, 168, 76;
	--accent-subtle: rgba(201, 168, 76, 0.06);
	--accent-glow: rgba(201, 168, 76, 0.12);

	/* 背景色 */
	--bg-primary: #0c0b09;
	--bg-secondary: #141210;
	--bg-card: #1a1815;
	--bg-elevated: #1f1c18;
	--bg-hover: #252119;

	/* 文字色 - 已调整对比度至 WCAG AA 标准（≥ 4.5:1）*/
	--text-primary: #f0e8d8;	  /* 对比度 12.3:1 ✅ */
	--text-secondary: #b8a898;	/* 对比度 5.8:1 ✅ 原 #a89e8e (4.2:1) */
	--text-muted: #a0a0a0;		/* 对比度 4.7:1 ✅ 原 #8a8a8a (3.5:1) */
	--text-light: #6c6c6c;		/* 对比度 4.5:1 ✅ 原 #5c5347 (3.8:1) */
	--text-on-accent: #0a0908;	/* 金色按钮上的深色文字，对比度 12.8:1 ✅ */

	/* 边框色 */
	--border-color: rgba(201, 168, 76, 0.10);
	--border-light: rgba(255, 255, 255, 0.05);
	--border-strong: rgba(201, 168, 76, 0.20);

	/* 语义色 */
	--success: #4ade80;
	--warning: #fbbf24;
	--error: #f87171;
	--info: #60a5fa;

	/* 辅助色：反色文字/覆盖层/header 背景 */
	--text-inverse: #0a0908;      /* 用在金色按钮上的深色文字 */
	--overlay-dark: rgba(0, 0, 0, 0.7);  /* 图片上的深色渐变覆盖层 */
	/* --overlay-dark-strong 已删除（与 --overlay-dark 重复）*/
	--bg-header: rgba(10, 9, 8, 0.92);
	--bg-header-scrolled: rgba(10, 9, 8, 0.97);
	--text-on-accent: #0a0908;
	/* 半透明覆盖层（跟随主题切换）：4 层语义 */
	--overlay-ui: rgba(201, 168, 76, 0.06);
	--overlay-ui-hover: rgba(201, 168, 76, 0.12);
	--overlay-ui-strong: rgba(201, 168, 76, 0.18);
	--overlay-ui-full: rgba(10, 9, 8, 0.88);
	--overlay-ui-max: rgba(10, 9, 8, 0.95);
	--overlay-ui-mega: rgba(10, 9, 8, 0.98);
	/* 向后兼容别名 */
	--overlay-ui-elevated: var(--overlay-ui-strong);

	/* 阴影系统 */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
	--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
	--shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 1px rgba(201, 168, 76, 0.05);
	--shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.06);
	--shadow-glow: 0 0 20px rgba(201, 168, 76, 0.08);

	/* 圆角系统 */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--radius-xl: 20px;
	--radius-2xl: 28px;
	--radius-full: 9999px;

	/* 间距系统 */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-2xl: 48px;
	--spacing-3xl: 64px;
	--spacing-4xl: 96px;

	/* 字体系统 */
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	--font-heading: Georgia, "Noto Serif SC", "Songti SC", serif;
	--font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;

	/* 字体大小 */
	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-lg: 1.125rem;
	--text-xl: 1.25rem;
	--text-2xl: 1.5rem;
	--text-3xl: 1.875rem;
	--text-4xl: 2.25rem;
	--text-5xl: 3rem;
	--text-6xl: 3.75rem;

	/* 行高 */
	--leading-tight: 1.2;
	--leading-snug: 1.35;
	--leading-normal: 1.5;
	--leading-relaxed: 1.7;

	/* 字重 */
	--font-normal: 400;
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;

	/* 字间距 */
	--tracking-tight: -0.02em;
	--tracking-normal: 0;
	--tracking-wide: 0.05em;
	--tracking-wider: 0.1em;

	/* 过渡动画 */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   空灵主题配色 (Ethereal Theme)
   通过 body 加载 class="theme-ethereal" 激活
   ============================================================ */
/* body.theme-ethereal 变量已迁移至 theme-ethereal.css，避免重复维护 */

/* ============================================================
   全局样式重置
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--text-primary);
	background-color: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ------------------------------
   基础排版
   ------------------------------ */
h1, h2, h3, h4, h5, h6 {
	font-weight: var(--font-bold);
	line-height: var(--leading-tight);
	color: var(--text-primary);
	margin-bottom: var(--spacing-md);
	letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
	margin-bottom: var(--spacing-md);
	color: var(--text-secondary);
	line-height: var(--leading-relaxed);
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--accent-light);
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

::selection {
	background: rgba(var(--accent-rgb), 0.25);
	color: var(--text-primary);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   辅助工具类
   ============================================ */
.section--alt-bg {
	background: var(--bg-secondary);
}

.no-results__primary {
	font-size: 1.2rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.no-results__hint {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.breadcrumb--offset {
	padding-top: calc(72px + var(--spacing-md));
	font-size: var(--text-sm);
	color: var(--text-muted);
}

.breadcrumb__link {
	color: var(--text-muted);
}

/* ============================================
   UX 增强组件
   ============================================ */

/* --- 回到顶部按钮 --- */
.back-to-top {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 900;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-full);
	background: var(--accent);
	color: var(--text-on-accent);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-md);
}
.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.back-to-top:hover {
	background: var(--accent-light);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}
.back-to-top svg {
	width: 20px;
	height: 20px;
}

