/* 统一风格样式 - 深色蓝紫色渐变主题 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4a5699 0%, #5d3f6a 100%);
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.6;
}

/* 统一容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px;
}

/* 统一卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #e2e8f0;
}

.card::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.6s ease;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.18);
}

/* 统一标题样式 */
.card h1, .card h2, .card h3 {
    color: #e2e8f0;
    margin-bottom: 20px;
    text-align: center;
}

.card h1 {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #8c94c9, #a67bb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 统一按钮样式 */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a67b8, #6a4a7d);
    z-index: -1;
    transition: transform 0.4s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary {
    background: linear-gradient(135deg, #5a67b8, #6a4a7d);
    color: white;
    box-shadow: 
        0 8px 25px rgba(90, 103, 184, 0.4),
        0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(90, 103, 184, 0.5),
        0 8px 15px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #8c94c9;
    border: 2px solid #8c94c9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary::before {
    background: #8c94c9;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(140, 148, 201, 0.4);
    border-color: transparent;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 统一导航菜单样式 */
.navigation-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.navigation-menu:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    gap: 8px;
    min-width: 120px;
}

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

/* 返回按钮样式 */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.nav-btn:hover {
    background: linear-gradient(135deg, #5a67b8, #6a4a7d);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(90, 103, 184, 0.4),
        0 8px 15px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(90, 103, 184, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(90, 103, 184, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    40%, 43% {
        transform: translateY(-8px);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
    70% {
        transform: translateY(-4px);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* 页面加载动画 */
.card {
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: both;
}

.navigation-menu {
    animation: fadeInUp 1s ease-out 0.2s both;
    opacity: 0;
}

/* 滚动动画 */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* 语言切换按钮样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 70vw;
    width: fit-content;
    overflow: hidden;
    box-sizing: border-box;
}

.language-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: #8c94c9;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 50px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.language-btn.active {
    background: linear-gradient(135deg, #5a67b8, #6a4a7d);
    color: white;
    box-shadow: 0 4px 15px rgba(90, 103, 184, 0.4);
}

/* 鼠标悬停效果 */
* {
    cursor: default;
}

a, button, .btn, .nav-btn {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 聚焦状态 */
.btn:focus,
.nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 禁用状态 */
.btn:disabled,
.nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .navigation-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .card h1 {
        font-size: 2em;
    }
    
    /* 调整语言切换按钮位置，避免挡住标题和溢出屏幕 */
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
        gap: 5px;
        max-width: 85vw;
        width: fit-content;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .language-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 45px;
        flex: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 统一表格样式 */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.table:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: linear-gradient(135deg, #5a67b8, #6a4a7d);
    color: white;
    font-weight: 600;
}

.table tr:hover {
    background: rgba(90, 103, 184, 0.1);
}

/* 统一网格布局 */
.grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 统一图标样式 */
.icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8c94c9, #a67bb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(140, 148, 201, 0.3));
}

.icon:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(166, 123, 180, 0.5));
}

/* 统一进度条样式 */
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #5a67b8, #6a4a7d, #5a67b8);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}