/**
 * Satalite Cosmetics - 自定义装饰页面样式
 */

/* 页面容器 */
.cosmetics-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 20px;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-desc {
    color: #888;
    font-size: 1.1rem;
}

/* 未登录/无头衔提示 */
.not-logged-in,
.no-title-warning {
    text-align: center;
    padding: 80px 20px;
    background: rgba(30, 30, 40, 0.8);
    border-radius: 20px;
    margin: 60px auto;
    max-width: 500px;
}

.warning-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.not-logged-in h2,
.no-title-warning h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.not-logged-in p,
.no-title-warning p {
    color: #888;
    margin-bottom: 10px;
}

.btn-login-large {
    margin-top: 25px;
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 装饰品网格 */
.cosmetics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 装饰品卡片 */
.cosmetics-card {
    background: rgba(30, 30, 40, 0.9);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
}

/* 开关按钮 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 披风预览 */
.cape-preview-section {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.cape-preview {
    width: 200px;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.cape-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.no-image span {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 上传区域 */
.cape-upload-section {
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.upload-area p {
    color: #aaa;
    margin-bottom: 8px;
}

.upload-hint {
    color: #666;
    font-size: 0.85rem;
}

/* 操作按钮 */
.cape-actions {
    display: flex;
    gap: 15px;
}

.btn-upload,
.btn-delete {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-upload {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-delete {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.btn-delete:hover {
    background: rgba(255, 68, 68, 0.3);
}

/* 披风说明 */
.cape-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.cape-info h4 {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cape-info ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.85rem;
}

.cape-info li {
    margin-bottom: 5px;
}

/* 翅膀预览 */
.wings-preview-section {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.wings-preview {
    width: 150px;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(102, 126, 234, 0.5);
}

.wings-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.wings-preview p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* 翅膀选择 */
.wings-selection h4 {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.wings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.wings-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wings-item:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.wings-item.selected {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.wings-item-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.wings-item-name {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.wings-item-desc {
    color: #666;
    font-size: 0.7rem;
}

/* 预览说明 */
.preview-note {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.preview-note h3 {
    color: #fff;
    margin-bottom: 15px;
}

.preview-note ul {
    margin: 0;
    padding-left: 20px;
    color: #aaa;
}

.preview-note li {
    margin-bottom: 8px;
}

/* 消息提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 30, 40, 0.95);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-left: 4px solid #4caf50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.toast.info {
    border-left: 4px solid #2196f3;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(30, 30, 40, 0.98);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #888;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(20, 20, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand a {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

#navUserInfo {
    display: flex;
    align-items: center;
    gap: 15px;
}

#navUsername {
    color: #667eea;
    font-weight: 500;
}

.btn-login,
.btn-logout {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .cosmetics-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}
