/* Windows Vista/7 Aero Style - 经典玻璃质感设计 */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* Windows Aero 深蓝色渐变背景 */
    background: linear-gradient(180deg, 
                #4A90E2 0%, 
                #2E5A8B 25%, 
                #1E3D5C 50%, 
                #0F2A3D 75%, 
                #061823 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Windows Aero 光效 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 30%, 
                transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: aeroGlow 20s ease-in-out infinite alternate;
}

@keyframes aeroGlow {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: rotate(10deg) scale(1.1);
        opacity: 0.1;
    }
}

header {
    /* Windows Aero 橙色标题栏 */
    background: linear-gradient(180deg, 
                #FF8C00 0%, 
                #FF7F00 25%, 
                #FF6600 50%, 
                #E55100 75%, 
                #CC4500 100%);
    border-bottom: 1px solid #B8860B;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: bold;
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

header .logo:hover {
    opacity: 0.7;
}

header .logo img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-switch a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    /* Windows Aero 橙色按钮 */
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.3) 0%, 
                rgba(255, 255, 255, 0.1) 50%, 
                rgba(255, 140, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.language-switch a:hover {
    background: linear-gradient(180deg, 
                #ffffff 0%, 
                #f0f0f0 3%, 
                #e0e0e0 50%, 
                #d0d0d0 97%, 
                #c0c0c0 100%);
}

.language-switch a:active {
    background: linear-gradient(180deg, 
                #d8d8d8 0%, 
                #e0e0e0 50%, 
                #e8e8e8 100%);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

nav {
    background: linear-gradient(180deg, 
                rgba(0, 0, 0, 0.6) 0%, 
                rgba(0, 0, 0, 0.4) 50%, 
                rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    text-align: center;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 3px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
}

nav button {
    /* Windows Aero 玻璃质感按钮 */
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.4) 0%, 
                rgba(255, 255, 255, 0.2) 25%, 
                rgba(0, 0, 0, 0.1) 50%, 
                rgba(0, 0, 0, 0.2) 75%, 
                rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    color: white;
    margin: 0 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    /* Windows Aero 立体阴影 */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    min-width: 120px;
}

nav button:hover {
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.5) 0%, 
                rgba(255, 255, 255, 0.3) 25%, 
                rgba(255, 140, 0, 0.2) 50%, 
                rgba(255, 140, 0, 0.3) 75%, 
                rgba(0, 0, 0, 0.2) 100%);
    border-color: rgba(255, 140, 0, 0.5);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(255, 140, 0, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 140, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(255, 140, 0, 0.3),
        0 0 20px rgba(255, 140, 0, 0.2);
    transform: translateY(-1px);
}

nav button:active {
    background: linear-gradient(180deg, 
                #d0d0d0 0%, 
                #d8d8d8 50%, 
                #e0e0e0 100%);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.6),
        0 1px 1px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

main {
    padding: 40px;
    margin: 30px auto;
    max-width: 90%;
    /* Windows Aero 玻璃面板 */
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.2) 0%, 
                rgba(255, 255, 255, 0.1) 25%, 
                rgba(0, 0, 0, 0.1) 50%, 
                rgba(0, 0, 0, 0.2) 75%, 
                rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    animation: aeroSlideIn 0.6s ease;
    position: relative;
    z-index: 3;
}

main h2 {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main p {
    line-height: 1.6;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 12px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer {
    background: linear-gradient(180deg, 
                rgba(0, 0, 0, 0.6) 0%, 
                rgba(0, 0, 0, 0.5) 50%, 
                rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 -5px 15px rgba(0, 0, 0, 0.4);
    font-size: 11px;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

footer a {
    color: #FFB347;
    text-decoration: none;
    margin: 0 12px;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
}

footer a:hover {
    color: #FF8C00;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

/* 隐藏类 */
.hidden {
    display: none;
}

.lang-en .cn {
    display: none;
}

.lang-en .en {
    display: block;
}

/* Windows Aero 动画 */
@keyframes aeroSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* 经典Mac滚动条样式 */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(90deg, #e0e0e0, #f0f0f0, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, 
                #c8c8c8 0%, 
                #d8d8d8 50%, 
                #c8c8c8 100%);
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, 
                #b8b8b8 0%, 
                #c8c8c8 50%, 
                #b8b8b8 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 6px 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    nav button {
        margin: 4px;
        padding: 5px 12px;
        font-size: 12px;
    }
    
    main {
        margin: 12px;
        padding: 16px;
        max-width: 95%;
    }
    
    main h2 {
        font-size: 15px;
    }
    
    main p {
        font-size: 12px;
    }
}