:root {
    --day-bg: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    --night-bg: linear-gradient(120deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --day-text: #333;
    --night-text: #fff;
    --transition: all 0.5s ease;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, 'Roboto', sans-serif;
    min-height: 100vh;
    background-size: 200% 200%; /* 减少背景尺寸，提高性能 */
    animation: gradientBG 25s ease infinite; /* 延长动画时间，降低CPU使用 */
    color: var(--day-text);
    transition: var(--transition);
    background: var(--day-bg);
    /* 优化字体渲染和性能 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    will-change: background-position;
    transform: translateZ(0);
}

body.night {
    background: var(--night-bg);
    color: var(--night-text);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

/* 页面头部样式 - 改进版 */
.page-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.15) 0%, 
        rgba(255, 167, 38, 0.1) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(255, 107, 107, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    will-change: transform, backdrop-filter;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 1s ease;
}

.page-header:hover::before {
    left: 100%;
}

.page-header:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 16px 48px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.header-icon {
    font-size: 4.5rem;
    color: #ff6b6b;
    background: linear-gradient(135deg, #ff6b6b, #ffa726, #ffd54f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 4s ease-in-out infinite, pulse 2s ease-in-out infinite;
    will-change: transform, filter;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.3));
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 0 0 0.8rem 0;
    background: linear-gradient(135deg, #ff6b6b, #ffa726, #ffd54f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 12px rgba(255, 107, 107, 0.2);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
}

.version-badge {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.insider {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.badge.insider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.badge.insider:hover::before {
    left: 100%;
}

.badge.insider:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.badge.version {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge.version:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .header-icon {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .version-badge {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem;
    }
    
    .header-icon {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

h1, h2 {
    text-align: center;
    margin: 2rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid #007BFF;
    transition: var(--transition);
}

li:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(173, 216, 230, 0.8); /* 修改为浅蓝色 */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar ul {
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 10px 0;
    border-left: none;
    border-radius: 10px;
    transition: var(--transition);
}

.navbar li:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.navbar a {
    text-decoration: none;
    color: var(--day-text);
    padding: 8px 16px;
    display: block;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar a:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #007BFF;
}

/* Insider 计划表格样式 */
.insider-program table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insider-program th,
.insider-program td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.insider-program th {
    background: rgba(0, 123, 255, 0.2);
    color: #007BFF;
    font-weight: bold;
}

.insider-program tr:hover {
    background: rgba(0, 123, 255, 0.1);
}

.insider-program tr:last-child td {
    border-bottom: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 16px rgba(255, 107, 107, 0.4));
    }
}

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

h1 {
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    section {
        padding: 1rem;
    }
}