/* ============================================================
   午夜影院 - 暗夜紫金主题样式表
   风格：暗色系 + 紫金渐变 + 毛玻璃 + 圆角卡片
   ============================================================ */

/* ---------- 全局重置与基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0a0a18 0%, #14142a 50%, #1a1030 100%);
    color: #e0e0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: #a78bfa;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

::-webkit-scrollbar-track {
    background: #14142a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #6d28d9);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #7c3aed);
}

/* ---------- 头部导航 ---------- */
header {
    background: rgba(13, 13, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 45, 85, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #f0f0ff;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #f0f0ff 0%, #c4b5fd 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4)); }
    to { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8)); }
}

.logo h1 span {
    background: linear-gradient(135deg, #a78bfa, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

nav ul li a {
    display: block;
    padding: 8px 16px;
    color: #d0d0e8;
    font-size: 0.95rem;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #6d28d9);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    text-decoration: none;
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li a.active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    font-weight: 600;
}

nav ul li a.active::before {
    width: 80%;
}

/* ---------- 主体内容 ---------- */
main {
    padding: 30px 0;
}

section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: sectionReveal 0.8s ease forwards;
}

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.8rem;
    color: #f0f0ff;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #8b5cf6;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
}

/* ---------- 卡片网格 ---------- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(24, 24, 53, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 45, 85, 0.5);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    padding-bottom: 15px;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25), 0 0 20px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

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

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card img:hover {
    transform: scale(1.06);
}

.card-body {
    padding: 12px 15px;
}

.card-body h3 {
    font-size: 1.1rem;
    color: #f0f0ff;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.card:hover .card-body h3 {
    color: #c4b5fd;
}

.card-body p {
    font-size: 0.85rem;
    color: #b0b0d0;
    margin: 3px 0;
}

.card-body .tag {
    display: inline-block;
    background: rgba(124, 58, 237, 0.25);
    backdrop-filter: blur(5px);
    color: #a78bfa;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 8px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s ease;
}

.card:hover .tag {
    background: rgba(124, 58, 237, 0.4);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* ---------- 推荐卡片 ---------- */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.recommend-card {
    background: rgba(28, 28, 58, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 45, 85, 0.5);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.recommend-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.recommend-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

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

.recommend-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommend-card:hover img {
    transform: scale(1.05);
}

.recommend-body {
    padding: 15px;
    position: relative;
    z-index: 1;
}

.recommend-body h3 {
    color: #f0f0ff;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.recommend-card:hover .recommend-body h3 {
    color: #c4b5fd;
}

.recommend-body p {
    color: #d0d0e8;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ---------- 详情区域 ---------- */
.detail-area {
    background: rgba(22, 22, 48, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(45, 45, 85, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.detail-area h3 {
    color: #f0f0ff;
    font-size: 1.4rem;
    margin: 20px 0 10px;
    background: linear-gradient(135deg, #f0f0ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-area p {
    color: #e0e0f0;
    margin-bottom: 12px;
    text-indent: 2em;
    line-height: 2;
}

.detail-area img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.detail-area img:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    transform: scale(1.01);
}

/* ---------- 角色卡片 ---------- */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.role-card {
    background: rgba(26, 26, 53, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 45, 85, 0.5);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid rgba(45, 45, 85, 0.8);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.role-card:hover img {
    border-color: #8b5cf6;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.role-card h3 {
    color: #f0f0ff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.role-card .role-tag {
    color: #a78bfa;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.role-card p {
    color: #d0d0e8;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ---------- 平台区域 ---------- */
.platform-area {
    background: rgba(20, 20, 46, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(45, 45, 85, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.platform-area h3 {
    color: #f0f0ff;
    font-size: 1.3rem;
    margin: 20px 0 15px;
    background: linear-gradient(135deg, #f0f0ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-area p {
    color: #e0e0f0;
    margin-bottom: 15px;
    line-height: 2;
}

/* ---------- 下载区域 ---------- */
.download-section {
    background: linear-gradient(135deg, rgba(26, 26, 53, 0.9) 0%, rgba(20, 20, 46, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(45, 45, 85, 0.5);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
}

.download-section h3 {
    color: #f0f0ff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f0f0ff, #c4b5fd, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)); }
}

.download-section p {
    color: #d0d0e8;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    text-decoration: none;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn:hover::before {
    left: 100%;
}

/* ---------- 评论卡片 ---------- */
.comment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.comment-card {
    background: rgba(26, 26, 53, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 45, 85, 0.5);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.comment-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 4rem;
    color: rgba(139, 92, 246, 0.2);
    font-family: Georgia, serif;
}

.comment-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.comment-card .user {
    color: #a78bfa;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.comment-card .time {
    color: #8888aa;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.comment-card p {
    color: #e0e0f0;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ---------- 侧边栏布局 ---------- */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.sidebar {
    background: rgba(20, 20, 46, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(45, 45, 85, 0.5);
    border-radius: 20px;
    padding: 25px;
    position: sticky;
    top: 90px;
}

.sidebar h3 {
    color: #f0f0ff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(45, 45, 85, 0.5);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(28, 28, 58, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.sidebar ul li:hover {
    padding-left: 10px;
    background: rgba(139, 92, 246, 0.05);
}

.sidebar ul li:last-child {
    border: none;
}

.sidebar ul li span {
    color: #d0d0e8;
    font-size: 0.9rem;
}

.sidebar ul li .rank {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.sidebar .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stats-box {
    background: rgba(26, 26, 53, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(45, 45, 85, 0.5);
    transition: all 0.3s ease;
}

.stats-box:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.1);
}

.stats-box .num {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.stats-box .label {
    font-size: 0.8rem;
    color: #b0b0d0;
    margin-top: 4px;
}

/* ---------- 标签云 ---------- */
.sidebar a[style*="background"] {
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 45, 85, 0.5);
}

.sidebar a[style*="background"]:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    text-decoration: none;
}

/* ---------- 页脚 ---------- */
footer {
    background: linear-gradient(135deg, rgba(10, 10, 24, 0.95) 0%, rgba(13, 13, 32, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(28, 28, 58, 0.8);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #a78bfa;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #a78bfa, #6d28d9);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #c4b5fd;
    text-decoration: none;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-info {
    text-align: center;
    color: #8888aa;
    font-size: 0.8rem;
    line-height: 2.2;
}

.footer-info a {
    color: #a78bfa;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #c4b5fd;
}

/* ---------- 滚动动画 ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.card:nth-child(even) {
    animation: float 6s ease-in-out 3s infinite;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .grid-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .recommend-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-area,
    .platform-area,
    .download-section {
        padding: 20px;
    }
    
    .role-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .role-card img {
        width: 140px;
        height: 140px;
    }
    
    .comment-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .download-section {
        padding: 25px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    nav ul li a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .card-body h3 {
        font-size: 0.95rem;
    }
    
    .card-body p {
        font-size: 0.75rem;
    }
    
    .card-body .tag {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    .section-title {
        font-size: 1.2rem;
        padding-left: 10px;
    }
    
    .detail-area,
    .platform-area {
        padding: 15px;
    }
    
    .role-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .role-card {
        padding: 15px;
    }
    
    .role-card img {
        width: 100px;
        height: 100px;
    }
    
    .stats-box .num {
        font-size: 1.4rem;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* ---------- 暗色模式支持 ---------- */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a18 0%, #14142a 50%, #1a1030 100%);
    }
    
    .card,
    .recommend-card,
    .role-card,
    .comment-card,
    .stats-box {
        background: rgba(24, 24, 53, 0.85);
    }
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 焦点可见性 ---------- */
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* ---------- 文本选择 ---------- */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #f0f0ff;
}

/* ---------- 工具类 ---------- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    main {
        padding: 20px 0;
    }
    
    section {
        margin-bottom: 40px;
    }
}