* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(135deg, #0c0c15 0%, #1a1a2e 100%);
    color: #e0d6c9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    overflow-x: hidden;
    position: relative;
}

@keyframes rotateConstellation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* 头部样式 */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0c0c15;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.site-name {
    display: flex;
    flex-direction: column;
}

.site-name h1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #d4af37;
    letter-spacing: 0.5px;
}

.site-name .en {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #b8941a;
    margin-top: 1px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #d4af37;
    border-radius: 25px;
    background: transparent;
    color: #e0d6c9;
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* 主图样式 */
.main-image {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(1.2); /* 调亮主图亮度 */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(12, 12, 21, 0.3) 0%, /* 降低遮罩透明度，使图片更亮 */
                rgba(26, 26, 46, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: inline-block;
}
.language-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #d4af37;
    border-radius: 25px;
    color: #e0d6c9;
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.language-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}
.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgba(26, 26, 46, 0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.language-dropdown a {
    color: #e0d6c9;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}
.language-dropdown a:hover {
    background-color: rgba(212, 175, 55, 0.2);
}
.language-selector:hover .language-dropdown {
    display: block;
}

/* 天干颜色 */
.jia, .yi { color: #4caf50; } /* 甲乙绿色 */
.bing, .ding { color: #f44336; } /* 丙丁红色 */
.geng, .xin { color: #d4af37; } /* 庚辛金色 */
.wu_t, .ji { color: #a1887f; } /* 戊己土褐色 */
.ren, .gui { color: #2196f3; } /* 壬癸蓝色 */

/* 地支颜色 */
.zi, .hai { color: #2196f3; } /* 子亥蓝色 */
.chou, .xu, .chen, .wei { color: #a1887f; } /* 丑戌辰未土褐色 */
.shen, .you { color: #d4af37; } /* 申酉金色 */
.si, .wu_d { color: #f44336; } /* 巳午红色 */
.yin, .mao { color: #4caf50; } /* 寅卯绿色 */