/*
Theme Name: VOF Theme
Theme URI: https://example.com
Author: VOF
Description: VOF 独立经典 PHP 主题，基于 ACF Pro 自定义区块
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: vof-theme
*/

/* ========================================
   全局 CSS 变量
   ======================================== */
:root {
    --white: #ffffff;
    --off-white: #f7f6f3;
    --cream: #f0eeea;
    --gray-100: #e8e6e1;
    --gray-200: #d4d1cb;
    --gray-300: #b0ada6;
    --gray-400: #8a8680;
    --gray-500: #6b6760;
    --gray-600: #4a4740;
    --gray-700: #33312c;
    --gray-800: #232120;
    --black: #111110;

    --navy: #1a2744;
    --navy-light: #243556;
    --navy-dark: #111b30;

    --red: #c8362d;
    --red-hover: #a82c24;
    --red-light: rgba(200, 54, 45, 0.08);

    --amber: #d4940a;
    --amber-light: rgba(212, 148, 10, 0.08);

    --green: #2a7d4f;

    --bg: var(--white);
    --bg-alt: var(--off-white);
    --bg-dark: var(--navy);
    --surface: var(--white);
    --border: var(--gray-200);
    --border-light: var(--gray-100);

    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-500);
    --text-muted: var(--gray-400);
    --text-on-dark: var(--cream);
    --text-on-dark-muted: rgba(240, 238, 234, 0.6);

    --font-heading: 'Barlow', -apple-system, sans-serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --section-pad: clamp(3.5rem, 7vw, 6rem);
    --content-max: 1280px;
    --grid-gap: clamp(1rem, 2vw, 1.5rem);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ========================================
   全局重置
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul, ol { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   通用容器
   ======================================== */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ========================================
   通用按钮
   ======================================== */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn--primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 54, 45, 0.25);
}

.btn--secondary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--border);
}
.btn--secondary:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn--dark {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn--dark:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
}

/* ========================================
   通用 Section Header
   ======================================== */
.section-header {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-header--center { text-align: center; }

.section-header__tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-header--center .section-header__tag { justify-content: center; }
.section-header__tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.section-header__desc {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 520px;
    margin-top: 0.75rem;
    line-height: 1.7;
}
.section-header--center .section-header__desc {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   WordPress 兼容
   ======================================== */
.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;
}
