/* MC 账号中心样式 - 淡蓝色主题 */

/* 基础布局 */
body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 50%, #e0e7ff 100%);
    color: #1e3a5f;
    min-height: 100vh;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f9ff;
    z-index: 9999;
    transition: opacity 0.3s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 导航栏 */
header {
    background: #ffffff;
    border-bottom: 2px solid #bfdbfe;
    padding: 0;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-item {
    color: #475569;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    border-radius: 8px;
}

.nav-item:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.nav-login-btn {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: 2px solid #2563eb;
}
.nav-login-btn:hover {
    background: linear-gradient(180deg, #7cb5fa 0%, #4f90f5 100%);
    color: #fff;
}

.nav-register-btn {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: 2px solid #2563eb;
}
.nav-register-btn:hover {
    background: linear-gradient(180deg, #7cb5fa 0%, #4f90f5 100%);
    color: #fff;
}

/* 设置下拉菜单 */
.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-btn {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: #fff;
    border: 2px solid #2563eb;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    border-radius: 8px;
}

.settings-btn:hover {
    background: linear-gradient(180deg, #7cb5fa 0%, #4f90f5 100%);
}

.settings-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #ffffff;
    border: 2px solid #bfdbfe;
    box-shadow: 0 8px 24px rgba(59,130,246,0.12);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    color: #333;
    border-radius: 12px;
}

.settings-dropdown-content a {
    color: #475569;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.settings-dropdown-content a:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* 底部 */
footer {
    text-align: center;
    padding: 2rem 0;
    background: #ffffff;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 2px solid #bfdbfe;
}

/* 主内容区 */
main {
    padding: 2rem 0;
}

/* MC 卡片样式 */
.mc-card {
    background: #ffffff;
    border: 2px solid #bfdbfe;
    box-shadow: 0 4px 12px rgba(59,130,246,0.1);
    padding: 24px;
    color: #333;
    border-radius: 12px;
}

/* MC 按钮样式 */
.mc-btn {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border: 3px solid #2563eb;
    color: white;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    padding: 12px 24px;
    cursor: pointer;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.15), inset 2px 2px 0 rgba(255,255,255,0.2);
    transition: all 0.1s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    border-radius: 8px;
}
.mc-btn:hover {
    background: linear-gradient(180deg, #7cb5fa 0%, #4f90f5 100%);
    transform: translateY(-2px);
}
.mc-btn:active {
    transform: translateY(1px);
}
.mc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.mc-btn-blue {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #1e40af;
}
.mc-btn-blue:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.mc-btn-red {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    border-color: #b91c1c;
}
.mc-btn-red:hover {
    background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
}

.mc-btn-gray {
    background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
    border-color: #4b5563;
}
.mc-btn-gray:hover {
    background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
}

/* MC 徽章 */
.mc-badge {
    display: inline-block;
    padding: 4px 12px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    border-radius: 12px;
    font-size: 12px;
}
.mc-badge-green { background: #dbeafe; color: #1e40af; }
.mc-badge-gray { background: #e5e7eb; color: #6b7280; }
.mc-badge-blue { background: #dbeafe; color: #1e40af; }
.mc-badge-yellow { background: #fef3c7; color: #92400e; }

/* MC 输入框 */
.mc-input {
    background: #ffffff;
    border: 2px solid #bfdbfe;
    color: #1e3a5f;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
}
.mc-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* 标题样式 */
.mc-title {
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.05);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .navbar-left, .navbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .mc-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* 像素化效果 */
.pixel-border {
    box-shadow: 
        0 -3px 0 #bfdbfe,
        0 3px 0 #bfdbfe,
        -3px 0 0 #bfdbfe,
        3px 0 0 #bfdbfe;
}

/* 悬浮动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 加载动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #bfdbfe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 消息提示 */
.message-box {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}
.message-box.success {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
}
.message-box.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}
.message-box.info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
}
