/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #c9d1d9;
    overflow-x: hidden;
    height: 100vh;
    background: #0d1117; /* 确保body有背景色作为备用 */
}

/* 背景容器 - 渐变背景 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1117, #161b22, #1c2128);
    z-index: -1;
    overflow: hidden;
}

/* 确保背景可见 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1117, #161b22, #1c2128);
    z-index: -2;
}

/* 气泡样式 */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(88, 166, 255, 0.1);
    animation: float 15s infinite ease-in-out;
    z-index: -1;
}

.bubble:nth-child(2n) {
    background: rgba(188, 140, 255, 0.08);
}

.bubble:nth-child(3n) {
    background: rgba(56, 139, 253, 0.06);
}

.bubble:nth-child(4n) {
    background: rgba(45, 164, 78, 0.05);
}

.bubble:nth-child(5n) {
    background: rgba(249, 117, 131, 0.04);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) translateX(-5px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) translateX(-10px) rotate(270deg);
    }
}

/* 主要内容容器 - 设置为70%透明 */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(22, 27, 34, 0.7); /* 70% 透明度 */
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* 面板容器 */
.panels-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* 通用面板样式 */
.panel {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.panel h3 {
    color: #58a6ff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
}

/* 天气预报面板 */
.weather-panel {
    flex: 2;
    min-height: 300px;
}

.weather-content {
    line-height: 1.6;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #30363d;
}

.weather-item:last-child {
    border-bottom: none;
}

/* 鸡汤面板 */
.quotes-panel {
    flex: 2;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.quotes-content {
    line-height: 1.6;
}

.quote-item {
    padding: 12px 0;
    border-bottom: 1px solid #30363d;
    font-style: italic;
    color: #8b949e;
}

.quote-item:last-child {
    border-bottom: none;
}

/* 个人介绍面板 */
.profile-panel {
    flex: 1;
    min-height: 300px;
    text-align: center;
}

.profile-content .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: url('https://www.ajuncctv.com/favicon.ico') center/cover no-repeat;
    margin: 0 auto 16px;
    border: 3px solid #30363d;
}

.profile-content h4 {
    color: #f0f6fc;
    margin-bottom: 8px;
    font-size: 20px;
}

.profile-content p {
    color: #8b949e;
    line-height: 1.6;
}

/* 登录切换按钮 */
.login-toggle {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid #30363d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.login-toggle:hover {
    background: #58a6ff;
    border-color: #58a6ff;
    transform: translateX(-50%) scale(1.1);
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #c9d1d9;
    transition: all 0.3s ease;
}

.login-toggle:hover .arrow-down {
    border-top-color: #ffffff;
}

/* 登录表单 */
.login-form-container {
    position: fixed;
    bottom: -500px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    display: none;
}

.login-form-container.active {
    bottom: 100px;
    display: block;
}

.login-form h3 {
    color: #58a6ff;
    text-align: center;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.form-group input::placeholder {
    color: #6e7681;
}

.login-btn {
    width: 100%;
    padding: 12px 16px;
    background: #238636;
    border: 1px solid #2ea043;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #2ea043;
    border-color: #3fb950;
}

.login-btn:active {
    transform: scale(0.98);
}

/* 加载状态 */
.loading {
    text-align: center;
    color: #8b949e;
    font-style: italic;
}

/* 滚动条样式 */
.quotes-panel::-webkit-scrollbar {
    width: 6px;
}

.quotes-panel::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 3px;
}

.quotes-panel::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.quotes-panel::-webkit-scrollbar-thumb:hover {
    background: #58a6ff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .panels-container {
        flex-direction: column;
    }
    
    .panel {
        flex: 1;
    }
    
    .container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .login-form-container {
        width: 90%;
        max-width: 350px;
    }
    
    .panel {
        padding: 16px;
    }
}
