:root {
    --bg: #f6f7fb;
    --bg-soft: #eef1f8;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #ffffff;
    --text: #101828;
    --text-soft: #344054;
    --muted: #667085;
    --accent: #e11d48;
    --accent-2: #f59e0b;
    --accent-3: #6366f1;
    --accent-soft: rgba(225, 29, 72, 0.12);
    --border: rgba(16, 24, 40, 0.08);
    --border-strong: rgba(16, 24, 40, 0.14);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(16, 24, 40, 0.06);
    --shadow: 0 18px 40px rgba(16, 24, 40, 0.1);
    --shadow-lg: 0 28px 60px rgba(16, 24, 40, 0.16);
    --header-height: 74px;
    --gradient-hero: linear-gradient(135deg, #e11d48 0%, #f43f5e 28%, #f59e0b 62%, #6366f1 100%);
    --gradient-soft: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(99, 102, 241, 0.1));
    --glass-blur: saturate(180%) blur(18px);
}

[data-theme="dark"] {
    --bg: #070b16;
    --bg-soft: #0c1324;
    --surface: rgba(19, 27, 46, 0.72);
    --surface-solid: #131b2e;
    --text: #eef2f9;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;
    --accent: #fb7185;
    --accent-2: #fbbf24;
    --accent-3: #818cf8;
    --accent-soft: rgba(251, 113, 133, 0.16);
    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(148, 163, 184, 0.28);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.6);
    --gradient-hero: linear-gradient(135deg, #9f1239 0%, #be123c 30%, #b45309 65%, #4338ca 100%);
    --gradient-soft: linear-gradient(135deg, rgba(251, 113, 133, 0.14), rgba(129, 140, 248, 0.14));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(1200px 600px at 8% -8%, rgba(225, 29, 72, 0.14), transparent 60%),
        radial-gradient(1000px 520px at 96% 4%, rgba(99, 102, 241, 0.14), transparent 58%),
        radial-gradient(900px 500px at 50% 100%, rgba(245, 158, 11, 0.08), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.78;
    font-size: 16px;
    letter-spacing: 0.01em;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    color: var(--accent-2);
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.28;
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    margin: 0 0 16px;
    position: relative;
    padding-left: 18px;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    bottom: 0.28em;
    width: 6px;
    border-radius: 999px;
    background: var(--gradient-hero);
    box-shadow: 0 0 18px rgba(225, 29, 72, 0.4);
}

h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

p {
    margin: 0 0 14px;
    color: var(--text-soft);
}

ul {
    color: var(--text-soft);
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    z-index: 999;
    border-radius: 0 0 12px 0;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* ============ HEADER ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(16, 24, 40, 0.05);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--text);
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--gradient-hero);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-6deg) scale(1.06);
}

.brand:hover .brand-mark::after {
    transform: translateX(120%);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-block;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-hero);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

nav a:hover::after {
    width: 40%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: var(--text);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.icon-btn:active {
    transform: translateY(0) scale(0.97);
}

.mobile-menu-btn {
    display: none;
}

.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-bar input {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: var(--text);
    outline: none;
    min-width: 210px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ============ MAIN ============ */
main {
    padding: 34px 0 90px;
}

section {
    margin-bottom: 64px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 22px;
    align-items: center;
}

.breadcrumbs a {
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.breadcrumbs span {
    color: var(--accent);
    font-weight: 700;
}

/* ============ HERO ============ */
.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
        var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

[data-theme="dark"] .hero {
    background:
        linear-gradient(135deg, rgba(19, 27, 46, 0.9), rgba(19, 27, 46, 0.62)),
        var(--gradient-soft);
}

.hero::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.28), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -160px;
    left: -100px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.24), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.16;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 1.06rem;
    margin: 0 0 26px;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    min-height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual:hover {
    transform: translateY(-6px) scale(1.015);
}

.hero-visual svg {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.96rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.65s ease;
}

.btn:hover::after {
    transform: translateX(130%);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.32);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 18px 36px rgba(225, 29, 72, 0.42);
}

.btn-secondary {
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============ CAROUSEL ============ */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
}

.carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.06), rgba(99, 102, 241, 0.06));
    pointer-events: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}

.carousel-slide {
    min-width: 100%;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.carousel-slide h3 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.carousel-slide p {
    color: var(--muted);
    margin: 0 0 20px;
}

.carousel-slide svg {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide:hover svg {
    transform: scale(1.03) rotate(-1deg);
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 14px 0 22px;
    position: relative;
    z-index: 1;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-strong);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.carousel-dot:hover {
    background: var(--accent);
    transform: scale(1.15);
}

.carousel-dot.active {
    background: var(--gradient-hero);
    width: 28px;
    border-radius: 999px;
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

/* ============ GRID ============ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* ============ CARD ============ */
.card {
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

.card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.96rem;
}

.card p:last-child {
    margin-bottom: 0;
}

blockquote.card {
    margin: 0;
    font-style: normal;
    position: relative;
    padding-left: 46px;
}

blockquote.card::before {
    content: "\201C";
    position: absolute;
    left: 16px;
    top: 10px;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    font-family: Georgia, serif;
    height: auto;
    width: auto;
    background: none;
    border-radius: 0;
}

blockquote.card p {
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* ============ STATS ============ */
.stat-number {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ============ TAGS ============ */
.tag {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-right: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(225, 29, 72, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.18);
}

/* ============ ARTICLE LIST ============ */
.article-list {
    display: grid;
    gap: 18px;
}

.article-item {
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.article-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-hero);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-item h4 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    transition: color 0.25s ease;
}

.article-item:hover h4 {
    color: var(--accent);
}

.article-meta {
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.article-item p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.article-item a {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease, color 0.25s ease;
}

.article-item a::after {
    content: "→";
    transition: transform 0.25s ease;
}

.article-item a:hover {
    gap: 10px;
}

.article-item a:hover::after {
    transform: translateX(3px);
}

/* ============ HOWTO ============ */
.howto-step {
    border-left: 4px solid transparent;
    border-image: var(--gradient-hero) 1;
    padding: 4px 0 4px 18px;
    margin-bottom: 22px;
    transition: transform 0.3s ease, padding-left 0.3s ease;
}

.howto-step:hover {
    transform: translateX(4px);
    padding-left: 22px;
}

.howto-step h4 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.howto-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

#howto ul {
    padding-left: 20px;
    margin: 0 0 18px;
}

#howto ul li {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============ NOTICE ============ */
.notice {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(99, 102, 241, 0.08));
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    padding: 26px 28px;
    color: var(--text);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.notice:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.notice h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    color: var(--accent);
}

.notice p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.notice p:last-child {
    margin-bottom: 0;
}

/* ============ FAQ ============ */
.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.faq-item.open {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.12);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-family: inherit;
    line-height: 1.5;
    transition: color 0.25s ease, background 0.25s ease;
}

.faq-question:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.faq-question span {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease, opacity 0.35s ease;
    padding: 0 24px;
    color: var(--muted);
    opacity: 0;
}

.faq-answer p {
    margin: 0;
    font-size: 0.96rem;
    color: var(--muted);
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 24px 22px;
    opacity: 1;
}

/* ============ AUTHOR BOX ============ */
.author-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.author-box::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
    pointer-events: none;
}

.author-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.32);
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.author-box:hover .author-avatar {
    transform: scale(1.08) rotate(-5deg);
}

.author-box > div:last-child {
    position: relative;
    z-index: 1;
}

.author-box h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.author-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    padding: 48px 0 28px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    opacity: 0.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.footer h4 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-hero);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: var(--muted);
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-hero);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    z-index: 90;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-3));
    border-radius: 999px;
    border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

/* ============ SELECTION ============ */
::selection {
    background: var(--accent);
    color: #fff;
}

/* ============ FOCUS ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ============ RESPONSIVE 960 ============ */
@media (max-width: 960px) {
    .hero,
    .grid-2,
    .grid-3,
    .footer-grid,
    .carousel-slide {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 32px;
        gap: 28px;
    }

    .hero-visual {
        min-height: 240px;
    }

    .hero-visual svg {
        min-height: 240px;
    }

    nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--surface);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--border);
        padding: 18px 24px 22px;
        box-shadow: var(--shadow);
        animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 6px;
    }

    nav a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    nav a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .search-bar {
        display: none;
    }

    .footer-grid {
        gap: 32px;
    }

    .carousel-slide {
        padding: 26px;
        gap: 22px;
    }

    .author-box {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}

/* ============ RESPONSIVE 600 ============ */
@media (max-width: 600px) {
    :root {
        --header-height: 66px;
        --radius: 16px;
        --radius-lg: 20px;
    }

    body {
        font-size: 15px;
        line-height: 1.72;
    }

    main {
        padding: 24px 0 70px;
    }

    section {
        margin-bottom: 48px;
    }

    .hero {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.92rem;
        flex: 1 1 auto;
        min-width: 140px;
    }

    .header-inner {
        gap: 8px;
    }

    .brand {
        font-size: 1rem;
        gap: 9px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 0.98rem;
    }

    .icon-btn {
        padding: 8px 11px;
        font-size: 0.82rem;
    }

    h2 {
        padding-left: 14px;
        font-size: 1.35rem;
    }

    h2::before {
        width: 4px;
    }

    .card {
        padding: 22px 20px;
    }

    .carousel-slide {
        padding: 22px 18px;
    }

    .carousel-slide h3 {
        font-size: 1.15rem;
    }

    .article-item {
        padding: 18px 18px;
    }

    .article-item:hover {
        transform: translateX(3px);
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .faq-question span {
        width: 26px;
        height: 26px;
        font-size: 1.25rem;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .faq-item.open .faq-answer {
        padding: 0 18px 18px;
    }

    .author-box {
        padding: 22px 20px;
        gap: 16px;
    }

    .notice {
        padding: 20px 20px;
    }

    .footer {
        padding: 36px 0 22px;
        margin-top: 40px;
    }

    .footer-grid {
        gap: 26px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .breadcrumbs {
        font-size: 0.82rem;
    }

    .breadcrumbs a {
        padding: 3px 9px;
    }

    .stat-number {
        font-size: 2rem;
    }

    blockquote.card {
        padding-left: 40px;
    }

    blockquote.card::before {
        left: 12px;
        font-size: 2.8rem;
    }
}

/* ============ RESPONSIVE 380 ============ */
@media (max-width: 380px) {
    .btn {
        width: 100%;
        min-width: 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .brand span:last-child {
        font-size: 0.94rem;
    }
}

/* ============ 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 {
        opacity: 1;
        transform: none;
    }
}

/* ============ PRINT ============ */
@media print {
    header,
    .back-to-top,
    .carousel-dots,
    .header-actions,
    nav {
        display: none !important;
    }

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

    .card,
    .article-item,
    .faq-item,
    .hero,
    .carousel {
        box-shadow: none;
        border: 1px solid #ccc;
        background: #fff;
    }
}