/*
Theme Name: 傲世国际主题
Theme URI: https://aoshiwuliu.com
Author: 傲世国际
Author URI: https://aoshiwuliu.com
Description: 傲世国际货运代理 — 欧美超大件跨境物流自定义主题
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aoshi-theme
*/

/* ═══════════════════════════════════════════════
   SHARED: Variables, Reset, Base
   ═══════════════════════════════════════════════ */
:root {
    --white: #FFFFFF;
    --bg: #F7F6F3;
    --surface: #EEECE8;
    --border: #E0DDD8;
    --text: #1C1C1C;
    --text-secondary: #5C5855;
    --text-muted: #999590;
    --accent: #C83E00;
    --accent-glow: #FF5A1F;
    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
    --font-mono: 'Courier New', monospace;
    --max-w: 1320px;
    --gutter: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
    color: var(--text-secondary); background: var(--bg); overflow-x: hidden;
}
body::after {
    content: ''; position: fixed; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
::selection { background: var(--accent); color: white; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════════
   SHARED: Nav
   ═══════════════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between; height: 84px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 46px; width: auto; }
.nav-logo-mark { font-family: var(--font-serif); font-weight: 900; font-size: 20px; color: var(--text); letter-spacing: 2px; }
.nav-logo-line { width: 1px; height: 18px; background: rgba(200,62,0,0.5); }
.nav-logo-sub { font-size: 12px; color: var(--accent); letter-spacing: 3px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 15px; color: var(--text-muted); transition: color 200ms;
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--accent-glow); }
.nav-links a.active { color: var(--accent); }
.nav-mobile-btn {
    display: none; color: var(--text); font-size: 20px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════
   SHARED: Page Hero (interior pages)
   ═══════════════════════════════════════════════ */
.page-hero {
    position: relative; min-height: 420px;
    display: flex; align-items: flex-start;
    background: var(--white); overflow: hidden;
    padding: 140px 0 60px; border-bottom: 1px solid var(--border);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(200,62,0,0.04) 0%, transparent 60%);
    z-index: 1;
}
.page-hero-inner {
    position: relative; z-index: 2;
    max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); width: 100%;
}
.breadcrumb {
    font-size: 12px; color: var(--text-muted); margin-bottom: 24px;
    letter-spacing: 1px;
}
.breadcrumb a { color: var(--text-muted); transition: color 200ms; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--border); }
.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(40px, 6vw, 72px); font-weight: 900;
    line-height: 1.05; letter-spacing: -1px; color: var(--text);
    margin-bottom: 16px;
}
.page-hero-rule {
    width: 60px; height: 3px; background: var(--accent); margin-bottom: 16px;
}
.page-hero p {
    font-size: 16px; color: var(--text-muted); max-width: 480px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   SHARED: Section Common
   ═══════════════════════════════════════════════ */
.section { padding: 100px 0; }
.section-dark { background: var(--white); color: var(--text); }
.section-off { background: var(--surface); color: var(--text); }
.section-light { background: var(--bg); }
.section-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
}
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 56px; gap: 40px;
}
.section-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px); font-weight: 900;
    line-height: 1.15; letter-spacing: -0.5px;
}
.section-head p {
    font-size: 15px; color: var(--text-muted); max-width: 560px;
    line-height: 1.7; text-align: right; flex-shrink: 0;
}
.section-dark .section-head h2,
.section-off .section-head h2 { color: var(--text); }

/* ═══════════════════════════════════════════════
   SHARED: CTA
   ═══════════════════════════════════════════════ */
.cta-section {
    padding: 120px 0; background: var(--accent); color: white;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 60%; height: 200%; background: rgba(0,0,0,0.06);
    transform: skewX(-12deg); pointer-events: none;
}
.cta-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
    align-items: center; position: relative; z-index: 1;
}
.cta-inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px); font-weight: 900;
    line-height: 1.15; letter-spacing: -1px;
}
.cta-right p {
    font-size: 16px; color: rgba(255,255,255,0.8);
    margin-bottom: 28px; line-height: 1.7;
}
.cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--text); color: white; padding: 16px 32px;
    font-size: 15px; font-weight: 700; transition: all 250ms;
}
.cta-btn:hover { background: var(--text-secondary); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.cta-btn svg { transition: transform 200ms; }
.cta-btn:hover svg { transform: translateX(4px); }

/* ═══════════════════════════════════════════════
   SHARED: Footer
   ═══════════════════════════════════════════════ */
.footer {
    background: var(--surface); color: var(--text-secondary);
    padding: 40px 0; border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; font-size: 12px;
}
.footer-copy { display: block; margin-bottom: 6px; }
.footer-contact { color: var(--text-muted); font-size: 11px; }
.footer a { color: var(--text-secondary); transition: color 200ms; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 28px; list-style: none; }

/* ═══════════════════════════════════════════════
   SHARED: Reveal Animation
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-children > * {
    opacity: 0; transform: translateY(20px);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
}
.reveal-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: 120ms; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: 360ms; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(5) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(6) { transition-delay: 600ms; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(7) { transition-delay: 720ms; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(8) { transition-delay: 840ms; opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-children > * { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════
   SHARED: Responsive Common
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head p { text-align: left; }
    .cta-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .page-hero { min-height: 320px; padding: 120px 0 48px; }
    .nav-links { display: none; }
    .nav-mobile-btn { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 84px; left: 0; right: 0;
        background: rgba(255,255,255,0.97); backdrop-filter: blur(24px);
        padding: 20px var(--gutter); gap: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .section { padding: 80px 0; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
