/* 基础重置和全局样式 */
:root {
    --primary-color: #4a90e2;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #ccc;
    --bg-dark: #000;
    --bg-light: #f8f9fa;
    --header-height: 52px;
    --transition-speed: 0.2s;
    --font-family: 'Noto Sans SC', "Microsoft YaHei", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-weight: 300;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* 链接通用样式 */
a {
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.link-in-card {
    color: var(--primary-color);
}

/* 布局组件 */
.card {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.card > section,
.card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 顶部导航 */
.header {
    backdrop-filter: blur(9.4px);
    -webkit-backdrop-filter: blur(9.4px);
    background-image: linear-gradient(45deg, rgba(66,60,90,0.5), rgba(66,60,90,0.5));
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

.logo img {
    height: 100%;
    width: auto;
}

/* 页脚样式 */
.footer {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
    color: var(--text-light);
}

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

.footer-bottom-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* 媒体查询 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
        padding: 0 20px;
    }
}

/* 语言选择弹框样式 */
.language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

.language-modal.active {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.language-modal-content {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    width: 400px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -400px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.language-modal.active .language-modal-content {
    transform: translateX(-400px);
}

.language-modal-content h3 {
    color: #fff;
    margin: 20px 0 40px;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
}

.language-option {
    padding: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.language-option:hover,
.language-option:focus {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.language-option:active {
    transform: scale(0.98);
}

.language-option.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.language-option .lang-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.language-option .lang-native {
    font-size: 0.9rem;
    opacity: 0.8;
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(-90deg);
}

/* 语言选择器按钮样式 */
.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.language-selector .arrow {
    transition: transform 0.3s ease;
}

.language-selector:hover .arrow {
    transform: rotate(180deg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-modal-content {
        width: 100%;
        right: -100%;
    }

    .language-modal.active .language-modal-content {
        transform: translateX(-100%);
    }

    .language-modal-content h3 {
        font-size: 1.5rem;
        margin: 40px 0 30px;
    }

    .language-options {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .language-option {
        padding: 15px;
    }

    .language-option .lang-name {
        font-size: 1rem;
    }

    .language-option .lang-native {
        font-size: 0.85rem;
    }
} 