:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4834d4;
    --accent: #fd79a8;
    --accent-light: #ff9ff3;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-body: #f8f9fe;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.25);
    --bg-glass-border: rgba(255, 255, 255, 0.35);
    --bg-section-alt: #f0f2ff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a8;
    --text-inverse: #ffffff;
    --border-color: #e8e8f0;
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
    --shadow-md: 0 8px 24px rgba(108, 92, 231, 0.12);
    --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.18);
    --shadow-xl: 0 24px 64px rgba(108, 92, 231, 0.22);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    --max-width: 1200px;
    --nav-height: 68px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f0f1a;
        --bg-card: #1a1a2e;
        --bg-card-hover: #1f1f35;
        --bg-nav: rgba(15, 15, 26, 0.85);
        --bg-glass: rgba(26, 26, 46, 0.45);
        --bg-glass-border: rgba(108, 92, 231, 0.2);
        --bg-section-alt: #141428;
        --text-primary: #e8e8f0;
        --text-secondary: #b8b8d0;
        --text-muted: #6a6a8a;
        --border-color: #2a2a45;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

time {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ============ HEADER / NAV ============ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-base), border-color var(--transition-base);
}

header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

header nav > div:first-child {
    flex-shrink: 0;
}

header nav > div:first-child a {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

header nav ul::-webkit-scrollbar {
    display: none;
}

header nav ul li a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--transition-fast);
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

header nav ul li a:hover {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

header nav ul li a:hover::after {
    width: 60%;
}

header nav > div:last-child {
    flex-shrink: 0;
}

header nav form {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all var(--transition-fast);
}

header nav form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

header nav form input[type="search"] {
    border: none;
    outline: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    width: 160px;
    font-family: inherit;
}

header nav form input[type="search"]::placeholder {
    color: var(--text-muted);
}

header nav form button {
    border: none;
    background: var(--gradient-1);
    color: var(--text-inverse);
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
}

header nav form button:hover {
    opacity: 0.85;
}

/* ============ MAIN ============ */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 3.5rem 0;
}

section + section {
    border-top: 1px solid var(--border-color);
}

/* ============ HERO ============ */
#hero {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-top: none;
}

#hero h1 {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out both;
}

#hero > div[role="region"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

#hero > div[role="region"] > div {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: fadeInUp 0.6s ease-out both;
}

#hero > div[role="region"] > div:nth-child(1) {
    background: var(--gradient-1);
    animation-delay: 0.1s;
}

#hero > div[role="region"] > div:nth-child(2) {
    background: var(--gradient-2);
    animation-delay: 0.2s;
}

#hero > div[role="region"] > div:nth-child(3) {
    background: var(--gradient-3);
    animation-delay: 0.3s;
}

#hero > div[role="region"] > div::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: transform var(--transition-slow);
}

#hero > div[role="region"] > div::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: transform var(--transition-slow);
}

#hero > div[role="region"] > div:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

#hero > div[role="region"] > div:hover::before {
    transform: scale(1.3) translate(-10px, 10px);
}

#hero > div[role="region"] > div:hover::after {
    transform: scale(1.2) translate(10px, -10px);
}

#hero > div[role="region"] > div h2 {
    color: var(--text-inverse);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

#hero > div[role="region"] > div h2::after {
    display: none;
}

#hero > div[role="region"] > div p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

#hero > div[role="region"] > div a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.55rem 1.4rem;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-full);
    color: var(--text-inverse);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
}

#hero > div[role="region"] > div a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(4px);
    color: var(--text-inverse);
}

/* Stats */
#hero > div:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

#hero > div:nth-of-type(2) > div {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    animation: fadeInUp 0.6s ease-out both;
}

#hero > div:nth-of-type(2) > div:nth-child(1) { animation-delay: 0.1s; }
#hero > div:nth-of-type(2) > div:nth-child(2) { animation-delay: 0.2s; }
#hero > div:nth-of-type(2) > div:nth-child(3) { animation-delay: 0.3s; }
#hero > div:nth-of-type(2) > div:nth-child(4) { animation-delay: 0.4s; }

#hero > div:nth-of-type(2) > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

#hero > div:nth-of-type(2) > div span {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

#hero > div:nth-of-type(2) > div p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

#hero > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* ============ BREADCRUMB ============ */
nav[aria-label="面包屑导航"] {
    padding: 1rem 0;
    border-top: none !important;
}

nav[aria-label="面包屑导航"] ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

nav[aria-label="面包屑导航"] ol li {
    color: var(--text-muted);
}

nav[aria-label="面包屑导航"] ol li + li::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--text-muted);
}

nav[aria-label="面包屑导航"] ol li a {
    color: var(--primary);
    font-weight: 500;
}

nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ SECTION ARTICLES ============ */
section article {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

section article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-1);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    transition: height var(--transition-base);
}

section article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 92, 231, 0.2);
}

section article:hover::before {
    height: 100%;
}

section article h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

section article h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gradient-1);
    border-radius: 50%;
    flex-shrink: 0;
}

section article p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0;
}

section article p:last-child {
    margin-bottom: 0;
}

section article a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    color: var(--primary);
    transition: all var(--transition-fast);
}

section article a::after {
    content: '→';
    transition: transform var(--transition-fast);
}

section article a:hover {
    color: var(--primary-dark);
}

section article a:hover::after {
    transform: translateX(4px);
}

/* ============ LISTS IN ARTICLES ============ */
section article ul,
section article ol {
    padding-left: 0;
    margin-top: 0.75rem;
}

section article ul li,
section article ol li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

section article ul li:last-child,
section article ol li:last-child {
    border-bottom: none;
}

section article ul li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 1.05rem;
    width: 8px;
    height: 8px;
    background: var(--gradient-1);
    border-radius: 50%;
    flex-shrink: 0;
}

section article ol {
    counter-reset: item;
}

section article ol li {
    counter-increment: item;
}

section article ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 22px;
    height: 22px;
    background: var(--gradient-1);
    color: var(--text-inverse);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

section article ul li:hover,
section article ol li:hover {
    background: rgba(108, 92, 231, 0.04);
    border-radius: var(--radius-sm);
}

/* ============ BLOCKQUOTE / TESTIMONIALS ============ */
#testimonials blockquote {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-base);
}

#testimonials blockquote::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-light);
    opacity: 0.25;
    line-height: 1;
    pointer-events: none;
}

#testimonials blockquote:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 92, 231, 0.2);
}

#testimonials blockquote p {
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
}

#testimonials blockquote footer {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* ============ FAQ ============ */
#faq details {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

#faq details:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 92, 231, 0.2);
}

#faq details[open] {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

#faq details summary {
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background var(--transition-fast);
    position: relative;
}

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

#faq details summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.08);
    transition: all var(--transition-base);
    line-height: 1;
}

#faq details[open] summary::after {
    content: '−';
    background: var(--gradient-1);
    color: var(--text-inverse);
    transform: rotate(180deg);
}

#faq details summary:hover {
    background: rgba(108, 92, 231, 0.04);
}

#faq details p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0;
    animation: fadeIn 0.3s ease-out;
}

/* ============ NEWS ============ */
#news article {
    position: relative;
}

#news article time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

#news article time::before {
    content: '📅';
    font-size: 0.75rem;
}

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#sitemap ul li a,
#links ul li a {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

#sitemap ul li a:hover,
#links ul li a:hover {
    background: var(--gradient-1);
    color: var(--text-inverse);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============ FOOTER ============ */
footer {
    background: var(--gradient-hero);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3rem;
    padding: 3rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.5), transparent);
}

footer > div {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
}

footer > div:first-child {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer > div:first-child h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

footer > div:first-child p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer > div:first-child a {
    color: var(--accent-light);
    font-weight: 600;
}

footer > div:first-child a:hover {
    color: #fff;
}

footer > div:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #a29bfe, #fd79a8);
    border-radius: var(--radius-full);
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

footer ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

footer p a {
    color: var(--accent-light);
}

footer p a:hover {
    color: #fff;
}

footer > div:last-child {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

footer > div:last-child a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

footer > div:last-child a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

footer > div:nth-last-child(2) {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

footer > div:nth-last-child(2) small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* ============ 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 pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scroll reveal */
section {
    animation: fadeInUp 0.6s ease-out both;
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }
section:nth-child(7) { animation-delay: 0.3s; }
section:nth-child(8) { animation-delay: 0.35s; }
section:nth-child(9) { animation-delay: 0.4s; }
section:nth-child(10) { animation-delay: 0.45s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    header nav {
        gap: 0.5rem;
    }

    header nav ul li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.82rem;
    }

    header nav form input[type="search"] {
        width: 120px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    header nav {
        padding: 0 1rem;
        flex-wrap: wrap;
        height: auto;
        min-height: var(--nav-height);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    header nav > div:first-child {
        order: 1;
    }

    header nav > div:last-child {
        order: 2;
        margin-left: auto;
    }

    header nav ul {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 0.25rem;
        gap: 0.15rem;
    }

    header nav ul li a {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    header nav form input[type="search"] {
        width: 100px;
        padding: 0.4rem 0.75rem;
    }

    header nav form button {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }

    main {
        padding: 0 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    #hero > div[role="region"] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #hero > div[role="region"] > div {
        min-height: 200px;
        padding: 1.5rem 1.25rem;
    }

    #hero > div:nth-of-type(2) {
        grid-template-columns: repeat(2, 1fr);
    }

    section article {
        padding: 1.25rem;
    }

    footer {
        padding: 2rem 1rem 1.5rem;
    }

    footer > div:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    #hero > div:nth-of-type(2) {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    #hero > div:nth-of-type(2) > div {
        padding: 1rem 0.75rem;
    }

    #hero > div:nth-of-type(2) > div span {
        font-size: 1.25rem;
    }

    #hero > p {
        padding: 1rem;
        font-size: 0.875rem;
    }

    section article {
        padding: 1rem;
        border-radius: var(--radius-sm);
    }

    #faq details summary {
        padding: 0.9rem 1rem;
        font-size: 0.875rem;
    }

    #faq details p {
        padding: 0 1rem 1rem;
        font-size: 0.85rem;
    }

    #sitemap ul li a,
    #links ul li a {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }

    #testimonials blockquote {
        padding: 1.25rem;
    }

    #testimonials blockquote::before {
        font-size: 3rem;
        left: 0.75rem;
    }
}

/* ============ ACCESSIBILITY ============ */
@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;
    }
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: rgba(108, 92, 231, 0.25);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

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

/* ============ PRINT ============ */
@media print {
    header,
    footer,
    #sitemap,
    #links {
        display: none;
    }

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

    section article {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}