/* 基础样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0e17;
    color: #ffd700; /* 金黄色 */
    line-height: 1.6;
    font-weight: bold; /* 加粗 */
}

/* 全局加粗样式 */
* {
    font-weight: bold !important;
}

/* 全局字体颜色为白色 */
body, p, h1, h2, h3, h4, h5, h6, div, span {
    color: #ffffff !important;
}

/* 特殊元素颜色调整 */
.logo {
    color: #ffd700 !important;
}

.nav-links a {
    color: #ffffff !important;
}

.nav-links a:hover {
    color: #ffed4e !important; /* 悬停时更亮的金黄色 */
}

/* 特定导航项保持金黄色 */
.nav-links a.golden-nav {
    color: #ffd700 !important;
}

/* 特定导航项悬停效果 */
.nav-links a.golden-nav:hover {
    color: #ffed4e !important;
}

.feature-card h3 {
    color: #ffffff !important;
}

.feature-card p {
    color: #ffffff !important;
}

/* 金黄色文字 */
.golden-text {
    color: #ffd700 !important;
}

.welcome-section h1 {
    color: #ffffff !important;
}

.welcome-section p {
    color: #ffffff !important;
}

/* 欢迎部分中的广寒宫相关文字保持金黄色 */
.welcome-section li:contains("广寒宫") {
    color: #ffd700 !important;
}

.footer {
    color: #ffd700 !important;
}

.footer a {
    color: #ffd700 !important;
}

.footer a:hover {
    color: #ffed4e !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #121826;
    padding: 15px 0;
    border-bottom: 1px solid #2a2f3d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4dabf7;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #b0b7c3;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #4dabf7;
}

/* 欢迎板块样式 */
.welcome-section {
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #1a1f2e 0%, #121826 100%);
    border-radius: 15px;
    border: 1px solid #2a2f3d;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.welcome-section h1 i {
    margin-right: 15px;
    color: #4dabf7;
}

.subtitle {
    font-size: 1.2rem;
    color: #8a94a6;
    margin-bottom: 25px;
}

.welcome-content {
    margin-top: 20px;
}

.welcome-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.welcome-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.welcome-content li {
    margin-bottom: 10px;
    color: #b0b7c3;
}

.cta-button {
    background: linear-gradient(90deg, #4dabf7 0%, #339af0 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
}

.cta-button i {
    margin-left: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 171, 247, 0.4);
}

/* 功能卡片样式 */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #2a2f3d;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #4dabf7;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.feature-card p {
    color: #8a94a6;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-link {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.feature-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* 页脚样式 */
.footer {
    background-color: #121826;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #2a2f3d;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: #8a94a6;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0b7c3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #4dabf7;
}

.footer-section i {
    margin-right: 10px;
    color: #4dabf7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .welcome-section {
        padding: 25px;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 8px 0;
    }
}

/* ========== 月相组件样式 ========== */

/* 主布局 */
.main-layout {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.main-left {
    flex: 1;
    min-width: 300px;
}

.main-right {
    width: 350px;
    min-width: 300px;
}

/* 月相组件容器 */
.moon-phase-widget {
    background: linear-gradient(135deg, #1a1f2e 0%, #121826 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #2a2f3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 100%;
}

/* 月相标题 */
.moon-phase-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.moon-phase-header h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.moon-phase-header .date {
    color: #8a94a6;
    font-size: 0.9rem;
}

/* 月相显示区域 */
.moon-phase-display {
    text-align: center;
    margin-bottom: 25px;
}

.moon-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.moon-phase-name {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.moon-phase-desc {
    color: #a0c8ff;
    font-size: 1rem;
    line-height: 1.5;
}

/* 月相进度 */
.moon-progress {
    margin: 25px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #8a94a6;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4dabf7, #ffd700);
    border-radius: 4px;
    width: 50%;
    transition: width 0.5s ease;
}

/* 月相详情 */
.moon-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    color: #8a94a6;
}

.detail-value {
    color: #ffffff;
    font-weight: bold;
}

/* 月相活动建议 */
.moon-activities {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.moon-activities h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    color: #a0c8ff;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.activity-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4dabf7;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    
    .main-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .moon-phase-widget {
        padding: 20px;
    }
    
    .moon-emoji {
        font-size: 3rem;
    }
    
    .moon-phase-name {
        font-size: 1.5rem;
    }
}

/* 月相动画 */
@keyframes moonGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                     0 0 20px rgba(255, 215, 0, 0.2),
                     0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% { 
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.5),
                     0 0 30px rgba(255, 215, 0, 0.3),
                     0 0 45px rgba(255, 215, 0, 0.2);
    }
}

.moon-emoji {
    animation: moonGlow 3s ease-in-out infinite;
}