:root {
    --primary: #f5a623;
    --primary-dark: #d4880f;
    --primary-light: #ffc857;
    --secondary: #4a90e2;
    --accent: #7ed321;
    --bg: #f7f8fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-border: rgba(255, 255, 255, 0.45);
    --text: #2c2c2c;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 24px rgba(245, 166, 35, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --bg-card: #1e1e1e;
        --bg-glass: rgba(30, 30, 30, 0.75);
        --bg-glass-border: rgba(255, 255, 255, 0.08);
        --text: #e8e8e8;
        --text-secondary: #b0b0b0;
        --text-muted: #777777;
        --border: #333333;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    }
}

body.dark-mode {
    --bg: #121212;
    --bg-card: #1e1e1e;
    --bg-glass: rgba(30, 30, 30, 0.75);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --border: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

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

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

a:hover {
    color: var(--primary-dark);
    opacity: 0.9;
}

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

ul, ol {
    list-style: none;
}

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

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== Header ========== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 28px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--bg-glass-border);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), box-shadow var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background: var(--bg-glass);
}

.brand {
    flex-shrink: 0;
}

.brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand a:hover {
    color: var(--primary);
    opacity: 1;
}

.brand svg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.brand a:hover svg {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: var(--shadow-glow);
}

/* ========== Navigation ========== */
nav[role="navigation"] {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav[role="navigation"] ul {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

nav[role="navigation"] a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: color var(--transition), background var(--transition);
}

nav[role="navigation"] a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: transform var(--transition);
}

nav[role="navigation"] a:hover {
    color: var(--primary);
    background: rgba(245, 166, 35, 0.08);
    opacity: 1;
}

nav[role="navigation"] a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== Search Box ========== */
.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    flex-shrink: 0;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px 14px;
    background: transparent;
    color: var(--text);
    width: 180px;
    font-size: 0.875rem;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    transition: background var(--transition), transform var(--transition);
}

.search-box button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.02);
}

/* ========== Dark Mode Toggle ========== */
#dark-mode-toggle {
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

#dark-mode-toggle:hover {
    background: rgba(245, 166, 35, 0.12);
    transform: rotate(20deg) scale(1.1);
}

/* ========== Mobile Menu Toggle ========== */
#mobile-menu-toggle {
    display: none;
    font-size: 1.4rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: background var(--transition);
    flex-shrink: 0;
}

#mobile-menu-toggle:hover {
    background: rgba(245, 166, 35, 0.12);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    padding: 14px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb ol {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 8px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: 500;
}

/* ========== Main ========== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px 40px;
}

/* ========== Hero Section ========== */
#hero {
    padding: 40px 0 32px;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

#hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), #e8912a, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out both;
}

#hero > p {
    max-width: 780px;
    margin: 0 auto 16px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

#hero > p + p {
    animation-delay: 0.3s;
}

/* ========== Banner Carousel ========== */
.banner-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.banner-carousel .slide {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.banner-carousel .slide:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.banner-carousel .slide svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.banner-carousel .slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
}

.banner-carousel .slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.05));
}

.banner-carousel .slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.15), rgba(126, 211, 33, 0.05));
}

/* ========== Stats ========== */
.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stats > div {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats .number {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* ========== Sections ========== */
main > section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
}

main > section:hover {
    box-shadow: var(--shadow-md);
}

main > section h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.01em;
}

main > section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

main > section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}

main > section h3:first-of-type {
    margin-top: 0;
}

main > section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text);
}

main > section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.85;
}

/* ========== Glass Card Effect for certain sections ========== */
#brand-intro,
#contact {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--bg-glass-border);
}

/* ========== News Articles ========== */
#news article {
    padding: 20px 24px;
    margin-bottom: 12px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

#news article::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
}

#news article:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

#news article:hover::before {
    transform: scaleY(1);
}

#news article h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--text);
    transition: color var(--transition);
}

#news article:hover h3 {
    color: var(--primary);
}

#news article time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

#news article p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

#news article a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 0;
    position: relative;
}

#news article a::after {
    content: ' →';
    transition: margin-left var(--transition);
}

#news article a:hover::after {
    margin-left: 4px;
}

/* ========== FAQ ========== */
#faq details {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg);
}

#faq details[open] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.08);
}

#faq details:hover {
    border-color: var(--primary-light);
}

#faq summary {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition), color var(--transition);
    position: relative;
    color: var(--text);
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform var(--transition), background var(--transition);
}

#faq details[open] summary::before {
    content: '−';
    background: var(--primary);
    color: #fff;
    transform: rotate(180deg);
}

#faq summary:hover {
    background: rgba(245, 166, 35, 0.05);
}

#faq details p {
    padding: 0 20px 16px 52px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: fadeIn 0.3s ease-out;
}

/* ========== HowTo Section ========== */
#howto ol {
    list-style: none;
    counter-reset: howto;
    padding-left: 0;
}

#howto ol li {
    counter-increment: howto;
    position: relative;
    padding: 10px 0 10px 44px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-bottom: 1px dashed var(--border);
}

#howto ol li:last-child {
    border-bottom: none;
}

#howto ol li::before {
    content: counter(howto);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

#howto ul {
    list-style: none;
    padding-left: 0;
}

#howto ul li {
    position: relative;
    padding: 6px 0 6px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

#howto ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

/* ========== Cases Section ========== */
#cases ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

#cases ul li {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.06), rgba(74, 144, 226, 0.06));
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

#cases ul li::before {
    content: '"';
    position: absolute;
    top: 4px;
    left: 10px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

#cases ul li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ========== Contact Section ========== */
#contact address {
    font-style: normal;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

#contact address p {
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    margin: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}

#contact address p:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.08);
}

#contact address a {
    font-weight: 500;
}

/* ========== Footer Info Section ========== */
#footer-info ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 16px;
}

#footer-info ul li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 2px;
}

#footer-info ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

#footer-info ul li a:hover {
    color: var(--primary);
}

#footer-info ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#footer-info h3 {
    margin-top: 28px;
}

#footer-info h3:first-of-type {
    margin-top: 0;
}

/* ========== Back to Top ========== */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    box-shadow: 0 6px 28px rgba(245, 166, 35, 0.55);
    transform: translateY(-3px) scale(1.04);
}

/* ========== Footer ========== */
footer[role="contentinfo"] {
    text-align: center;
    padding: 32px 28px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
    transition: background var(--transition), border-color var(--transition);
}

footer[role="contentinfo"] p {
    margin-bottom: 4px;
}

footer[role="contentinfo"] p:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Scroll-triggered animation classes */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ========== Responsive: Tablet ========== */
@media (max-width: 1024px) {
    header {
        padding: 10px 20px;
        gap: 12px;
    }

    nav[role="navigation"] a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .search-box input {
        width: 140px;
    }

    main {
        padding: 0 20px 32px;
    }

    main > section {
        padding: 24px;
    }

    .banner-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-carousel .slide:last-child {
        grid-column: span 2;
    }
}

/* ========== Responsive: Mobile ========== */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 8px;
    }

    .brand a {
        font-size: 1.1rem;
    }

    .brand svg {
        width: 34px;
        height: 34px;
    }

    #mobile-menu-toggle {
        display: block;
        order: 3;
    }

    nav[role="navigation"] {
        order: 10;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
    }

    nav[role="navigation"].open {
        max-height: 400px;
        opacity: 1;
        padding: 8px 0;
    }

    nav[role="navigation"] ul {
        flex-direction: column;
        gap: 2px;
        width: 100%;
    }

    nav[role="navigation"] a {
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        text-align: left;
    }

    nav[role="navigation"] a::after {
        display: none;
    }

    .search-box {
        order: 4;
        flex: 1;
        min-width: 0;
    }

    .search-box input {
        width: 100%;
        min-width: 0;
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .search-box button {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    #dark-mode-toggle {
        order: 2;
        font-size: 1rem;
        padding: 6px;
    }

    .breadcrumb {
        padding: 10px 16px;
    }

    main {
        padding: 0 16px 24px;
    }

    main > section {
        padding: 20px 16px;
        margin-bottom: 28px;
        border-radius: var(--radius-md);
    }

    #hero {
        padding: 24px 0 20px;
    }

    #hero h1 {
        font-size: 1.4rem;
    }

    #hero > p {
        font-size: 0.92rem;
    }

    .banner-carousel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .banner-carousel .slide:last-child {
        grid-column: span 1;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .stats .number {
        font-size: 1.6rem;
    }

    #cases ul {
        grid-template-columns: 1fr;
    }

    #contact address {
        grid-template-columns: 1fr;
    }

    #faq summary {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    #faq details p {
        padding: 0 14px 14px 42px;
        font-size: 0.85rem;
    }

    #howto ol li {
        padding-left: 38px;
    }

    #howto ol li::before {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    #back-to-top {
        bottom: 18px;
        right: 18px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    footer[role="contentinfo"] {
        padding: 24px 16px;
        font-size: 0.8rem;
    }
}

/* ========== Responsive: Small Mobile ========== */
@media (max-width: 380px) {
    .brand a span {
        display: none;
    }

    .search-box input {
        font-size: 0.75rem;
    }

    main > section {
        padding: 16px 12px;
    }
}

/* ========== Print Styles ========== */
@media print {
    header,
    #back-to-top,
    #dark-mode-toggle,
    #mobile-menu-toggle,
    .search-box,
    .banner-carousel {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    main > section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ========== Focus Visible ========== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========== Selection ========== */
::selection {
    background: rgba(245, 166, 35, 0.25);
    color: var(--text);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}