/* ===== 全局变量与基础 ===== */
:root {
    --bg-primary: #0a0a18;
    --bg-secondary: #14142a;
    --bg-card: rgba(26, 26, 53, 0.85);
    --bg-card-alt: rgba(28, 28, 62, 0.85);
    --border-color: rgba(45, 45, 85, 0.8);
    --text-primary: #f0f0ff;
    --text-secondary: #d0d0e8;
    --text-muted: #b0b0d0;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(139, 92, 246, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(20, 20, 46, 0.6);
    --glass-border: rgba(139, 92, 246, 0.2);
}

/* 暗色模式切换（基于系统偏好） */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f5f5fa;
        --bg-secondary: #e8e8f0;
        --bg-card: rgba(255, 255, 255, 0.85);
        --bg-card-alt: rgba(245, 245, 250, 0.85);
        --border-color: rgba(139, 92, 246, 0.15);
        --text-primary: #1a1a2e;
        --text-secondary: #3d3d5c;
        --text-muted: #6b6b8d;
        --shadow-card: 0 4px 20px rgba(139, 92, 246, 0.1);
        --shadow-hover: 0 8px 30px rgba(139, 92, 246, 0.2);
        --glass-bg: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(139, 92, 246, 0.15);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

/* 视口动画 */
main > section,
main > div {
    animation: fadeInUp 0.8s ease both;
}

main > section:nth-child(2) {
    animation-delay: 0.1s;
}

main > section:nth-child(3) {
    animation-delay: 0.2s;
}

main > section:nth-child(4) {
    animation-delay: 0.3s;
}

main > section:nth-child(5) {
    animation-delay: 0.4s;
}

/* ===== Header 导航 ===== */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

header:hover {
    border-bottom-color: var(--accent);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

header nav {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
    cursor: default;
}

header nav div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

header nav div a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 0.2rem 0;
}

header nav div a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

header nav div a:hover {
    color: var(--accent-light);
    transform: translateY(-1px);
}

header nav div a:hover::after {
    width: 100%;
}

header nav div a[style*="border-bottom"] {
    color: var(--accent);
    border-bottom: none !important;
    position: relative;
}

header nav div a[style*="border-bottom"]::after {
    width: 100%;
    background: var(--accent-gradient);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ===== Main 主内容 ===== */
main {
    max-width: 1360px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* ===== 通用卡片样式 ===== */
article {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

article:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(139, 92, 246, 0.4);
}

article:hover::before {
    left: 100%;
}

article img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

article:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

article div {
    padding: 0.8rem 0.9rem 1.2rem;
    background: linear-gradient(to top, var(--bg-card) 80%, transparent);
}

article h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    background: linear-gradient(135deg, var(--text-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article:hover h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article p {
    margin: 0.2rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

article p:nth-of-type(3) {
    color: var(--text-muted);
    font-size: 0.8rem;
}

article p:last-of-type {
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.4rem;
}

/* ===== 章节标题 ===== */
h2 {
    color: var(--text-primary);
    font-size: 2rem;
    border-left: 6px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1.8rem;
    position: relative;
    overflow: hidden;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 4px;
    animation: pulse-glow 2s ease-in-out infinite;
}

h2[style*="border-bottom"] {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    border-left: none;
    font-size: 1.5rem;
}

h2[style*="border-bottom"]::after {
    display: none;
}

/* ===== 热门漫画网格 ===== */
section > div[style*="grid-template-columns"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* ===== 精品推荐 + 侧边栏布局 ===== */
main > div[style*="display: flex"] {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

main > div[style*="display: flex"] > section {
    flex: 2;
    min-width: 280px;
}

main > div[style*="display: flex"] > aside {
    flex: 1;
    min-width: 240px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    height: fit-content;
    position: sticky;
    top: 80px;
    transition: var(--transition);
}

main > div[style*="display: flex"] > aside:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

main > div[style*="display: flex"] > aside ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
    color: var(--text-secondary);
}

main > div[style*="display: flex"] > aside ul li {
    padding: 0.3rem 0;
    transition: var(--transition);
    cursor: default;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

main > div[style*="display: flex"] > aside ul li:hover {
    color: var(--accent-light);
    transform: translateX(8px);
    border-bottom-color: var(--accent);
}

main > div[style*="display: flex"] > aside ul li span {
    color: var(--accent-light);
    font-weight: 500;
}

main > div[style*="display: flex"] > aside p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    transition: var(--transition);
}

main > div[style*="display: flex"] > aside p:hover {
    color: var(--accent-light);
}

main > div[style*="display: flex"] > aside strong {
    color: var(--text-primary);
    font-size: 1.1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 详细介绍区块 ===== */
section[style*="background:#161630"] {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

section[style*="background:#161630"]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

section[style*="background:#161630"]:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

section[style*="background:#161630"] article {
    color: var(--text-secondary);
    max-width: 900px;
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0;
}

section[style*="background:#161630"] article p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

section[style*="background:#161630"] article p strong {
    color: var(--accent-light);
    font-size: 1.1rem;
}

section[style*="background:#161630"] article p:last-of-type {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

/* ===== 角色介绍 ===== */
section > div[style*="text-align:center"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

section > div[style*="text-align:center"] article {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

section > div[style*="text-align:center"] article:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

section > div[style*="text-align:center"] article img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 3px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

section > div[style*="text-align:center"] article:hover img {
    border-color: var(--accent);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

section > div[style*="text-align:center"] article h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section > div[style*="text-align:center"] article:hover h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section > div[style*="text-align:center"] article p {
    margin: 0.2rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

section > div[style*="text-align:center"] article p:first-of-type {
    color: var(--accent-light);
    font-weight: 500;
}

/* ===== 平台介绍 ===== */
section[style*="background:#14142e"] {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem 0;
    transition: var(--transition);
}

section[style*="background:#14142e"]:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

section[style*="background:#14142e"] div {
    color: var(--text-secondary);
    max-width: 900px;
}

section[style*="background:#14142e"] div p {
    margin-bottom: 1rem;
    line-height: 1.8;
    transition: var(--transition);
}

section[style*="background:#14142e"] div p:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* ===== APP下载区块 ===== */
section[style*="text-align:center"] {
    margin: 3rem 0;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

section[style*="text-align:center"]::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08), transparent 50%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

section[style*="text-align:center"]:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

section[style*="text-align:center"] p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0.5rem auto 2rem;
}

section[style*="text-align:center"] div {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

section[style*="text-align:center"] a {
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

section[style*="text-align:center"] a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

section[style*="text-align:center"] a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

section[style*="text-align:center"] a:hover::before {
    left: 100%;
}

section[style*="text-align:center"] a:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== 用户评论 ===== */
section > div[style*="minmax(260px"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

section > div[style*="minmax(260px"] div {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

section > div[style*="minmax(260px"] div::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 80px;
    color: rgba(139, 92, 246, 0.1);
    font-family: Georgia, serif;
    transition: var(--transition);
}

section > div[style*="minmax(260px"] div:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    background: var(--bg-card-alt);
}

section > div[style*="minmax(260px"] div:hover::after {
    color: rgba(139, 92, 246, 0.3);
    transform: scale(1.2);
}

section > div[style*="minmax(260px"] div p {
    color: var(--accent-light);
    font-weight: bold;
    margin-bottom: 0.2rem;
    transition: var(--transition);
}

section > div[style*="minmax(260px"] div p:nth-child(2) {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-weight: normal;
    line-height: 1.6;
}

section > div[style*="minmax(260px"] div span {
    color: #8888aa;
    font-size: 0.8rem;
    transition: var(--transition);
}

section > div[style*="minmax(260px"] div:hover span {
    color: var(--accent-light);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    margin-top: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

footer div[style*="max-width"] {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    color: #8888aa;
}

footer div[style*="max-width"] > div {
    min-width: 150px;
}

footer h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

footer div[style*="max-width"] > div:hover h3::after {
    width: 100%;
}

footer a {
    color: var(--accent-light);
    display: block;
    margin: 0.2rem 0;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

footer a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
    color: var(--accent);
}

footer a:hover {
    color: var(--accent);
    padding-left: 15px;
    transform: translateX(5px);
}

footer a:hover::before {
    opacity: 1;
    left: 0;
}

footer div[style*="max-width"] p {
    margin: 0.2rem 0;
    transition: var(--transition);
}

footer div[style*="max-width"] p:hover {
    color: var(--text-secondary);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    header {
        padding: 0.6rem 0.8rem;
    }

    header h1 {
        font-size: 1.3rem;
    }

    header nav div {
        gap: 0.8rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.3rem;
    }

    header nav div::-webkit-scrollbar {
        height: 3px;
    }

    header nav div::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 3px;
    }

    main {
        padding: 0 0.8rem;
        margin: 1rem auto;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        padding-left: 0.8rem;
    }

    section > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem;
    }

    main > div[style*="display: flex"] > aside {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    section[style*="background:#161630"],
    section[style*="background:#14142e"],
    section[style*="text-align:center"] {
        padding: 1.2rem;
        margin: 2rem 0;
    }

    section[style*="text-align:center"] {
        padding: 1.5rem;
    }

    section[style*="text-align:center"] a {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }

    section > div[style*="text-align:center"] {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem;
    }

    section > div[style*="text-align:center"] article {
        padding: 0.8rem;
    }

    section > div[style*="text-align:center"] article img {
        width: 90px;
        height: 90px;
    }

    section > div[style*="minmax(260px"] {
        grid-template-columns: 1fr !important;
    }

    footer div[style*="max-width"] {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    footer div[style*="max-width"] > div {
        width: 100%;
    }

    footer a {
        display: inline-block;
        margin: 0.3rem 0.5rem;
    }

    footer a::before {
        display: none;
    }

    footer a:hover {
        padding-left: 0;
        transform: none;
    }

    article div {
        padding: 0.6rem 0.7rem 1rem;
    }

    article h3 {
        font-size: 1.1rem;
    }

    article p {
        font-size: 0.8rem;
    }
}

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

    header nav div {
        font-size: 0.8rem;
        gap: 0.6rem 0.8rem;
    }

    section > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    section > div[style*="text-align:center"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    main > div[style*="display: flex"] > section > div {
        grid-template-columns: 1fr !important;
    }

    h2 {
        font-size: 1.3rem;
    }

    section[style*="background:#161630"] article p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    section[style*="text-align:center"] p {
        font-size: 0.9rem;
    }

    section > div[style*="minmax(260px"] div {
        padding: 0.8rem;
    }
}

/* ===== 高性能动画 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    border-radius: 8px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* ===== 选中文本样式 ===== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* ===== 链接通用样式 ===== */
a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== 图片加载动画 ===== */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

img[src*="loading"] {
    opacity: 0.5;
}

/* ===== 卡片间隔动画 ===== */
article:nth-child(even) {
    animation-delay: 0.1s;
}

article:nth-child(odd) {
    animation-delay: 0.2s;
}

/* ===== 侧边栏列表动画 ===== */
main > div[style*="display: flex"] > aside ul li {
    animation: fadeIn 0.5s ease both;
}

main > div[style*="display: flex"] > aside ul li:nth-child(1) { animation-delay: 0.1s; }
main > div[style*="display: flex"] > aside ul li:nth-child(2) { animation-delay: 0.2s; }
main > div[style*="display: flex"] > aside ul li:nth-child(3) { animation-delay: 0.3s; }
main > div[style*="display: flex"] > aside ul li:nth-child(4) { animation-delay: 0.4s; }
main > div[style*="display: flex"] > aside ul li:nth-child(5) { animation-delay: 0.5s; }

/* ===== 评论卡片动画 ===== */
section > div[style*="minmax(260px"] div {
    animation: fadeInUp 0.6s ease both;
}

section > div[style*="minmax(260px"] div:nth-child(1) { animation-delay: 0.1s; }
section > div[style*="minmax(260px"] div:nth-child(2) { animation-delay: 0.2s; }
section > div[style*="minmax(260px"] div:nth-child(3) { animation-delay: 0.3s; }
section > div[style*="minmax(260px"] div:nth-child(4) { animation-delay: 0.4s; }
section > div[style*="minmax(260px"] div:nth-child(5) { animation-delay: 0.5s; }
section > div[style*="minmax(260px"] div:nth-child(6) { animation-delay: 0.6s; }
section > div[style*="minmax(260px"] div:nth-child(7) { animation-delay: 0.7s; }
section > div[style*="minmax(260px"] div:nth-child(8) { animation-delay: 0.8s; }

/* ===== 玻璃拟态效果增强 ===== */
@supports (backdrop-filter: blur(10px)) {
    header,
    main > div[style*="display: flex"] > aside,
    section[style*="background:#161630"],
    section[style*="background:#14142e"],
    section[style*="text-align:center"],
    footer {
        background: var(--glass-bg);
        backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
    }
}

/* ===== 渐变Banner特效 ===== */
section[style*="text-align:center"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.05)), var(--glass-bg);
}

/* ===== 文本渐变效果 ===== */
h1, h2, h3 {
    text-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
}

/* ===== 响应式字体 ===== */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
}

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