/* =====================================================================
   崇業聯合會計師事務所 — Base / Design Tokens
   依 Logo 青藍色延伸的專業企業配色系統
   ===================================================================== */

:root {
    /* 品牌色 —— Logo 青藍延伸 */
    --navy-900: #04233f;
    --navy-800: #06345a;
    --navy-700: #07517f;
    --navy-600: #0076ba;
    --navy-500: #0090e0;
    --navy-100: #e6f7ff;

    /* 主要點綴 —— Logo 亮藍 */
    --gold-600: #0079be;
    --gold-500: #0090e0;
    --gold-400: #2db8ff;
    --gold-100: #eaf8ff;

    /* 中性 */
    --ink: #102538;
    --ink-soft: #365266;
    --muted: #6c8495;
    --line: #dbeaf3;
    --bg: #ffffff;
    --bg-soft: #f4fbff;
    --bg-navy: var(--navy-800);
    --white: #ffffff;

    /* 語意 */
    --primary: var(--navy-800);
    --accent: var(--gold-500);

    /* 字體 */
    --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --font-serif: "Noto Serif TC", "Songti TC", serif;
    --font-en: "Barlow", "Segoe UI", sans-serif;

    /* 間距節奏 */
    --space-section: clamp(4.5rem, 9vw, 8rem);
    --container: 1200px;
    --container-wide: 1360px;
    --radius: 14px;
    --radius-lg: 22px;

    /* 陰影 */
    --shadow-sm: 0 4px 16px rgba(0, 118, 186, .07);
    --shadow-md: 0 14px 40px rgba(0, 118, 186, .12);
    --shadow-lg: 0 30px 70px rgba(0, 76, 122, .18);

    /* 動效 */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: .5s;
}

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
    font-family: var(--font-zh);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
    letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }

ul, ol { list-style: none; padding: 0; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: .01em;
}

:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--navy-800); color: #fff; }

/* 無障礙：略過連結 */
.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 2000;
    background: var(--navy-800); color: #fff;
    padding: .7rem 1.2rem; border-radius: 8px;
    transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* 減少動態偏好 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
