/* ══════════════════════════════════════════════════════
   AHQONE Typography System
   字体：Bodoni Moda / Cormorant Garamond / DM Sans / Lato / Jost
══════════════════════════════════════════════════════ */

/* ── 基础排版重置 ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ahq-font-body);
    font-size: var(--ahq-text-base);
    font-weight: var(--ahq-weight-normal);
    line-height: var(--ahq-leading-normal);
    color: var(--ahq-text-primary);
    background-color: var(--ahq-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--ahq-transition-normal),
                color var(--ahq-transition-normal);
}

/* ── 标题体系 ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ahq-font-display);
    font-weight: var(--ahq-weight-normal);
    line-height: var(--ahq-leading-tight);
    letter-spacing: var(--ahq-tracking-tight);
    color: var(--ahq-text-primary);
    margin-top: 0;
    margin-bottom: var(--ahq-space-4);
}

h1 {
    font-size: var(--ahq-text-hero);
    font-weight: var(--ahq-weight-normal);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--ahq-text-5xl);
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--ahq-text-4xl);
}

h4 {
    font-size: var(--ahq-text-3xl);
    font-family: var(--ahq-font-elegant);
    font-style: italic;
    font-weight: var(--ahq-weight-normal);
}

h5 {
    font-size: var(--ahq-text-2xl);
    font-family: var(--ahq-font-badge);
    font-weight: var(--ahq-weight-medium);
    letter-spacing: var(--ahq-tracking-wide);
    text-transform: uppercase;
}

h6 {
    font-size: var(--ahq-text-xl);
    font-family: var(--ahq-font-badge);
    font-weight: var(--ahq-weight-medium);
    letter-spacing: var(--ahq-tracking-wider);
    text-transform: uppercase;
}

/* ── 正文 ── */
p {
    margin-top: 0;
    margin-bottom: var(--ahq-space-4);
    line-height: var(--ahq-leading-loose);
    color: var(--ahq-text-secondary);
}

/* ── 链接 ── */
a {
    color: var(--ahq-gold);
    text-decoration: none;
    transition: color var(--ahq-transition-fast);
}

a:hover {
    color: var(--ahq-gold-light);
}

/* ── 特殊文字样式 ── */

/* 品牌标题（首页Hero）*/
.ahq-display {
    font-family: var(--ahq-font-display);
    font-size: var(--ahq-text-hero);
    font-weight: var(--ahq-weight-normal);
    letter-spacing: -0.03em;
    line-height: 1.0;
}

/* 优雅副标题（Cormorant斜体）*/
.ahq-elegant {
    font-family: var(--ahq-font-elegant);
    font-style: italic;
    font-weight: var(--ahq-weight-light);
    letter-spacing: 0.02em;
    line-height: var(--ahq-leading-snug);
}

/* 标签/徽章文字 */
.ahq-label {
    font-family: var(--ahq-font-badge);
    font-size: var(--ahq-text-xs);
    font-weight: var(--ahq-weight-medium);
    letter-spacing: var(--ahq-tracking-widest);
    text-transform: uppercase;
}

/* 价格文字 */
.ahq-price,
.woocommerce .price,
.woocommerce-Price-amount {
    font-family: var(--ahq-font-price) !important;
    font-weight: var(--ahq-weight-semi) !important;
    letter-spacing: 0 !important;
}

/* 小说明文字 */
.ahq-caption {
    font-size: var(--ahq-text-sm);
    color: var(--ahq-text-muted);
    line-height: var(--ahq-leading-normal);
}

/* 装饰性横线前的节标题（如 "— COLLECTIONS —"）*/
.ahq-section-label {
    font-family: var(--ahq-font-badge);
    font-size: var(--ahq-text-xs);
    font-weight: var(--ahq-weight-medium);
    letter-spacing: var(--ahq-tracking-widest);
    text-transform: uppercase;
    color: var(--ahq-gold);
    display: flex;
    align-items: center;
    gap: var(--ahq-space-3);
}

.ahq-section-label::before,
.ahq-section-label::after {
    content: '';
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: var(--ahq-gold);
    opacity: 0.5;
}

/* ── 列表 ── */
ul, ol {
    padding-left: var(--ahq-space-6);
    margin-bottom: var(--ahq-space-4);
    color: var(--ahq-text-secondary);
}

li {
    margin-bottom: var(--ahq-space-2);
    line-height: var(--ahq-leading-normal);
}

/* ── 引用 ── */
blockquote {
    margin: var(--ahq-space-8) 0;
    padding: var(--ahq-space-6) var(--ahq-space-8);
    border-left: 2px solid var(--ahq-gold);
    background: var(--ahq-gold-bg);
}

blockquote p {
    font-family: var(--ahq-font-elegant);
    font-style: italic;
    font-size: var(--ahq-text-xl);
    color: var(--ahq-text-primary);
    margin-bottom: 0;
}

/* ── 强调 ── */
strong, b {
    font-weight: var(--ahq-weight-semi);
    color: var(--ahq-text-primary);
}

em, i {
    font-style: italic;
}

/* ── 金色高亮文字 ── */
.ahq-text-gold { color: var(--ahq-gold); }
.ahq-text-silver { color: var(--ahq-silver); }
.ahq-text-muted { color: var(--ahq-text-muted); }
.ahq-text-primary { color: var(--ahq-text-primary); }

/* ── 响应式字体缩减 ── */
@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
    h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
}

/* ── Ivory Luxe 浅色：字体特别展示 ── */
.ahq-mode-light h1,
.ahq-mode-light h2,
.ahq-mode-light h3 {
    color: var(--ahq-text-primary);
}

.ahq-mode-light h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.025em;
}

.ahq-mode-light h4 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 500;
}

.ahq-mode-light .ahq-display {
    font-size: clamp(3.25rem, 8vw, 6.5rem);
    letter-spacing: -0.035em;
    line-height: 0.95;
}

.ahq-mode-light .ahq-elegant {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    color: var(--ahq-text-secondary);
}

.ahq-mode-light .ahq-section-label {
    font-family: var(--ahq-font-elegant);
    font-style: italic;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--ahq-gold);
}

.ahq-mode-light p {
    color: var(--ahq-text-secondary);
}

.ahq-mode-light a:hover {
    color: var(--ahq-gold-dark);
}

/* Dark inset panels on light pages — keep light text (product CTA, quote, etc.) */
.ahq-mode-light .ahq-pdp-footer-cta,
.ahq-mode-light .ahq-pdp-quote {
    color: #fff;
}

.ahq-mode-light .ahq-pdp-footer-cta :is(h1, h2, h3, h4, h5, h6, p, span, div),
.ahq-mode-light .ahq-pdp-quote p {
    color: inherit;
}
