:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.72);
    --bg-card-hover: rgba(30, 30, 54, 0.88);
    --bg-glass: rgba(26, 26, 46, 0.55);
    --border-color: rgba(233, 69, 96, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --text-primary: #eaeaf2;
    --text-secondary: #a0a0b8;
    --text-muted: #6c6c85;
    --accent: #e94560;
    --accent-soft: #ff6b81;
    --accent-alt: #0f3460;
    --accent-glow: rgba(233, 69, 96, 0.35);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #e94560 0%, #ff6b81 100%);
    --gradient-card: linear-gradient(160deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.85) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 8px 32px rgba(233, 69, 96, 0.22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f4f5fa;
        --bg-secondary: #ffffff;
        --bg-tertiary: #eef0f8;
        --bg-card: rgba(255, 255, 255, 0.82);
        --bg-card-hover: rgba(255, 255, 255, 0.96);
        --bg-glass: rgba(255, 255, 255, 0.6);
        --border-color: rgba(233, 69, 96, 0.16);
        --border-subtle: rgba(15, 15, 26, 0.08);
        --text-primary: #1a1a2e;
        --text-secondary: #4a4a63;
        --text-muted: #8a8aa0;
        --gradient-hero: linear-gradient(135deg, #eef0f8 0%, #e3e7f5 45%, #dbe1f2 100%);
        --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 242, 250, 0.9) 100%);
        --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08);
        --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
        --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
        --shadow-glow: 0 8px 32px rgba(233, 69, 96, 0.15);
    }
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(233, 69, 96, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(15, 52, 96, 0.35), transparent);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.75;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
}

h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    position: relative;
    padding-left: 18px;
    margin-bottom: 24px;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 5px;
    border-radius: 4px;
    background: var(--gradient-accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

h3 {
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    margin: 22px 0 10px;
    color: var(--text-primary);
}

p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

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

header[role="banner"] {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

header[role="banner"] > nav > div {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

header[role="banner"] > nav > div > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

header[role="banner"] > nav > div > a:hover {
    color: var(--accent);
}

header[role="banner"] svg {
    border-radius: var(--radius-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

header[role="banner"] > nav > div > a:hover svg {
    transform: rotate(-6deg) scale(1.06);
    box-shadow: 0 0 18px var(--accent-glow);
}

header[role="banner"] > nav > div > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

header[role="banner"] > nav > div > ul li a {
    display: block;
    padding: 6px 11px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

header[role="banner"] > nav > div > ul li a:hover,
header[role="banner"] > nav > div > ul li a:focus-visible {
    color: var(--accent-soft);
    background: rgba(233, 69, 96, 0.1);
}

header[role="banner"] form[role="search"] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

header[role="banner"] form[role="search"] label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

header[role="banner"] form[role="search"] input[type="search"] {
    width: 200px;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    transition: all var(--transition);
}

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

header[role="banner"] form[role="search"] input[type="search"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
    width: 240px;
}

header[role="banner"] form[role="search"] button {
    padding: 9px 20px;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 14px var(--accent-glow);
}

header[role="banner"] form[role="search"] button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

header[role="banner"] form[role="search"] button:active {
    transform: translateY(0);
}

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

main > nav[aria-label="面包屑导航"] {
    margin: 20px 0 8px;
}

main > nav[aria-label="面包屑导航"] ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] ol li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

main > nav[aria-label="面包屑导航"] ol li + li::before {
    content: "›";
    color: var(--text-muted);
    font-size: 1rem;
}

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

main > nav[aria-label="面包屑导航"] ol li a:hover {
    color: var(--accent);
}

main > nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
    color: var(--accent-soft);
    font-weight: 600;
}

main > section[aria-labelledby="hero-title"] {
    position: relative;
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 5vw, 64px);
    margin: 16px 0 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

main > section[aria-labelledby="hero-title"]::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.22), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroFloat 9s ease-in-out infinite;
}

main > section[aria-labelledby="hero-title"]::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.5), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroFloat 11s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-24px, 20px) scale(1.06); }
}

main > section[aria-labelledby="hero-title"] > div {
    position: relative;
    z-index: 1;
}

main > section[aria-labelledby="hero-title"] h1 {
    margin-bottom: 18px;
    background: linear-gradient(120deg, var(--text-primary) 30%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

main > section[aria-labelledby="hero-title"] p {
    font-size: clamp(0.92rem, 1.2vw, 1.02rem);
    margin-bottom: 26px;
    color: var(--text-secondary);
}

main > section[aria-labelledby="hero-title"] > div > a {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition);
    margin-right: 12px;
    margin-bottom: 10px;
}

main > section[aria-labelledby="hero-title"] > div > a:first-of-type {
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 6px 22px var(--accent-glow);
}

main > section[aria-labelledby="hero-title"] > div > a:first-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
    color: #fff;
}

main > section[aria-labelledby="hero-title"] > div > a:last-of-type {
    color: var(--text-primary);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

main > section[aria-labelledby="hero-title"] > div > a:last-of-type:hover {
    border-color: var(--accent);
    color: var(--accent-soft);
    transform: translateY(-3px);
}

main > section[aria-labelledby="hero-title"] > div[aria-hidden="true"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

main > section[aria-labelledby="hero-title"] > div[aria-hidden="true"] svg {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: heroSvgFloat 6s ease-in-out infinite;
}

@keyframes heroSvgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

main > section[aria-label="平台数据统计"] {
    margin-bottom: 48px;
}

main > section[aria-label="平台数据统计"] > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

main > section[aria-label="平台数据统计"] > div > div {
    background: var(--gradient-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 18px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

main > section[aria-label="平台数据统计"] > div > div::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(233, 69, 96, 0.12) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

main > section[aria-label="平台数据统计"] > div > div:hover {
    transform: translateY(-6px);
    border-color: var(--border-color);
    box-shadow: var(--shadow-glow);
}

main > section[aria-label="平台数据统计"] > div > div:hover::before {
    opacity: 1;
}

main > section[aria-label="平台数据统计"] span {
    display: block;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

main > section[aria-label="平台数据统计"] p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

main > section[id] {
    margin-bottom: 48px;
    scroll-margin-top: 90px;
}

main > section[id] > article {
    background: var(--gradient-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3.5vw, 40px);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

main > section[id] > article:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

main > section[id] > article p {
    text-align: justify;
    line-height: 1.85;
}

main > section[id] > article h3:first-child {
    margin-top: 0;
}

main > section[id] > article h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

main > section[id] > article h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gradient-accent);
    flex-shrink: 0;
    transform: rotate(45deg);
    box-shadow: 0 0 8px var(--accent-glow);
}

main > section#articles > article > h3 a {
    color: var(--text-primary);
    transition: color var(--transition);
}

main > section#articles > article > h3 a:hover {
    color: var(--accent-soft);
}

main > section#articles > article > p:nth-of-type(1) {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: inline-block;
    padding: 3px 12px;
    background: rgba(233, 69, 96, 0.08);
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

main > section#articles > article > p:nth-of-type(2) {
    background: rgba(15, 52, 96, 0.18);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

main > section#articles > article > a {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-soft);
    padding: 5px 0;
    border-bottom: 1px dashed transparent;
    transition: all var(--transition);
    margin-bottom: 20px;
}

main > section#articles > article > a::after {
    content: " →";
    transition: transform var(--transition);
    display: inline-block;
}

main > section#articles > article > a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

main > section#articles > article > a:hover::after {
    transform: translateX(4px);
}

main > section#articles > article > h3:not(:first-child) {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

main > section#faq details {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

main > section#faq details:hover {
    border-color: var(--border-color);
}

main > section#faq details[open] {
    border-color: var(--border-color);
    box-shadow: var(--shadow-glow);
}

main > section#faq summary {
    padding: 16px 22px;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: background var(--transition), color var(--transition);
    position: relative;
}

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

main > section#faq summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

main > section#faq details[open] summary::after {
    transform: rotate(45deg);
}

main > section#faq summary:hover {
    background: rgba(233, 69, 96, 0.06);
    color: var(--accent-soft);
}

main > section#faq details p {
    padding: 0 22px 18px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    animation: faqFade 0.35s ease;
}

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

main > nav#sitemap,
main > nav#friend-links {
    margin-bottom: 40px;
    background: var(--gradient-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3vw, 32px);
}

main > nav#sitemap h2,
main > nav#friend-links h2 {
    font-size: 1.15rem;
    margin-bottom: 18px;
}

main > nav#sitemap ul,
main > nav#friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

main > nav#sitemap ul li a,
main > nav#friend-links ul li a {
    display: inline-block;
    padding: 7px 16px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    transition: all var(--transition);
}

main > nav#sitemap ul li a:hover,
main > nav#friend-links ul li a:hover {
    color: #fff;
    background: var(--gradient-accent);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

footer[role="contentinfo"] {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: clamp(36px, 5vw, 56px) 20px 28px;
    position: relative;
}

footer[role="contentinfo"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.7;
}

footer[role="contentinfo"] > div {
    max-width: 1240px;
    margin: 0 auto;
}

footer[role="contentinfo"] > div:nth-child(1) {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-subtle);
}

footer[role="contentinfo"] h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    padding-left: 0;
}

footer[role="contentinfo"] h2::before {
    display: none;
}

footer[role="contentinfo"] h3 {
    font-size: 1rem;
    margin: 18px 0 8px;
    color: var(--accent-soft);
}

footer[role="contentinfo"] p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.7;
}

footer[role="contentinfo"] > div:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 40px;
    margin-bottom: 28px;
}

footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(1),
footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(1) {
    grid-column: 1;
}

footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(2),
footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(2) {
    grid-column: 2;
}

footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(3),
footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(3) {
    grid-column: 1;
}

footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(4),
footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(4) {
    grid-column: 2;
}

footer[role="contentinfo"] > div:nth-child(3) {
    text-align: center;
}

footer[role="contentinfo"] > div:nth-child(3) a {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all var(--transition);
}

footer[role="contentinfo"] > div:nth-child(3) a:hover {
    color: #fff;
    background: var(--gradient-accent);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

@media (prefers-reduced-motion: no-preference) {
    main > section[id],
    main > section[aria-label="平台数据统计"] > div > div,
    main > nav#sitemap,
    main > nav#friend-links {
        animation: fadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }

    main > section[id]:nth-of-type(odd) {
        animation-delay: 0.05s;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(28px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 1024px) {
    header[role="banner"] > nav > div {
        gap: 12px;
    }

    header[role="banner"] > nav > div > ul {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    header[role="banner"] > nav > div > ul::-webkit-scrollbar {
        display: none;
    }

    header[role="banner"] form[role="search"] {
        margin-left: auto;
    }

    main > section[aria-labelledby="hero-title"] {
        grid-template-columns: 1fr;
        text-align: center;
    }

    main > section[aria-labelledby="hero-title"] > div[aria-hidden="true"] {
        order: -1;
    }

    main > section[aria-labelledby="hero-title"] > div[aria-hidden="true"] svg {
        max-width: 400px;
    }

    main > section[aria-label="平台数据统计"] > div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    main {
        padding: 0 16px 48px;
    }

    header[role="banner"] > nav > div {
        padding: 10px 16px;
    }

    header[role="banner"] > nav > div > a span {
        font-size: 1rem;
    }

    header[role="banner"] form[role="search"] {
        flex-basis: 100%;
        order: 4;
    }

    header[role="banner"] form[role="search"] input[type="search"],
    header[role="banner"] form[role="search"] input[type="search"]:focus {
        width: 100%;
        flex: 1;
    }

    main > section[aria-labelledby="hero-title"] {
        padding: 32px 22px;
        border-radius: var(--radius-lg);
    }

    main > section[aria-labelledby="hero-title"] > div > a {
        display: block;
        margin-right: 0;
        text-align: center;
    }

    main > section[aria-label="平台数据统计"] > div {
        gap: 12px;
    }

    main > section[aria-label="平台数据统计"] > div > div {
        padding: 20px 12px;
    }

    main > section[id] > article {
        padding: 22px 18px;
        border-radius: var(--radius-md);
    }

    main > section[id] > article p {
        text-align: left;
    }

    main > section#faq summary {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    main > section#faq details p {
        padding: 0 16px 16px;
    }

    footer[role="contentinfo"] > div:nth-child(2) {
        grid-template-columns: 1fr;
    }

    footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(1),
    footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(1),
    footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(2),
    footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(2),
    footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(3),
    footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(3),
    footer[role="contentinfo"] > div:nth-child(2) h3:nth-of-type(4),
    footer[role="contentinfo"] > div:nth-child(2) p:nth-of-type(4) {
        grid-column: 1;
    }

    main > nav#sitemap ul,
    main > nav#friend-links ul {
        gap: 8px;
    }

    main > nav#sitemap ul li a,
    main > nav#friend-links ul li a {
        padding: 6px 13px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    h2 {
        padding-left: 14px;
        margin-bottom: 18px;
    }

    h2::before {
        width: 4px;
    }

    main > section[aria-label="平台数据统计"] > div {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    main > section[aria-label="平台数据统计"] span {
        font-size: 1.35rem;
    }

    main > section[aria-labelledby="hero-title"] > div > a {
        padding: 11px 22px;
        font-size: 0.9rem;
    }

    header[role="banner"] > nav > div > ul li a {
        padding: 5px 9px;
        font-size: 0.82rem;
    }
}

@media print {
    header[role="banner"],
    footer[role="contentinfo"],
    main > nav#sitemap,
    main > nav#friend-links,
    main > section[aria-labelledby="hero-title"] > div[aria-hidden="true"] {
        display: none !important;
    }

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

    main > section[id] > article {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}