/* 电脑端头部和登录/注册/设置模态框样式 */

/* 头部样式 */
.header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    min-height: auto;
    position: relative;
}

.header h1 {
    margin: 0;
    font-weight: 300;
    color: var(--gold);
    font-size: 28px;
    letter-spacing: 10px;
    text-shadow: 0 0 15px rgba(238, 187, 85, 0.3);
    text-align: center;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    position: absolute;
    left: 20px;
    top: 15px;
}

.user-name {
    color: var(--gold);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 12px;
    border: 1px solid rgba(238,187,85,0.3);
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.user-name:hover {
    background: var(--gold);
    color: #000;
}

.btn-settings {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(238,187,85,0.3);
    color: var(--gold);
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
    line-height: 1;
}

.btn-settings:hover {
    background: var(--gold);
    color: #000;
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(238,187,85,0.3);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.btn-logout:hover {
    background: var(--gold);
    color: #000;
}

.tool-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    right: 20px;
    top: 15px;
}

.tool-btn {
    font-size: 12px;
    color: var(--gold);
    border: 1px solid rgba(238,187,85,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    transition: all 0.3s;
    user-select: none;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
}

.tool-btn:hover {
    background: var(--gold);
    color: #000;
}

/* 登录/注册/忘记密码模态框 - 电脑端 */
.auth-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    margin: 6vh auto;
    padding: 40px;
    border: 1px solid rgba(238,187,85,0.3);
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    max-height: none;
    overflow-y: visible;
    color: #eee;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    position: relative;
}

.modal-overlay.show .auth-box {
    transform: scale(1);
}

#auth-title {
    color: var(--gold);
    margin-bottom: 35px;
    font-size: 26px;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cyan);
    border-radius: 10px;
    outline: none;
    text-align: center;
    font-size: 17px;
    transition: all 0.3s ease;
    margin-bottom: 35px;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="tel"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(238, 187, 85, 0.1);
    background: rgba(0,0,0,0.6);
}

/* 记得密码区域 */
.auth-form > div {
    margin: 20px 0 30px 0;
}

/* 记得密码复选框样式 - 金色发光效果 */
.auth-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    border: 3px solid #eebb55;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(238,187,85,0.4);
}

.auth-form input[type="checkbox"]:hover {
    background: rgba(238,187,85,0.1);
    box-shadow: 0 0 18px rgba(238,187,85,0.7);
    border-color: #f5c866;
}

.auth-form input[type="checkbox"]:checked {
    background: transparent;
    border-color: #eebb55;
    box-shadow: 0 0 25px rgba(238,187,85,1);
}

.auth-form input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #eebb55;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 8px rgba(238,187,85,0.8);
}

.auth-form label {
    color: var(--gold);
    cursor: pointer;
    user-select: none;
    font-size: 16px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 18px;
    height: auto;
    line-height: 1.5;
    background: linear-gradient(135deg, #eebb55 0%, #d4a03a 100%) !important;
    color: #000 !important;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238,187,85,0.3);
}

.auth-form .btn:hover {
    background: linear-gradient(135deg, #f5c866 0%, #e0b04b 100%) !important;
    box-shadow: 0 6px 20px rgba(238,187,85,0.5);
    transform: translateY(-2px);
}

.auth-switch {
    margin-top: 25px;
    font-size: 16px;
    color: #999;
}

.auth-switch a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-switch a:hover {
    text-decoration: none;
    color: #f5c866;
}

/* 设置界面样式 - 电脑端 - 原始简洁布局 */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.settings-info {
    background: rgba(0,0,0,0.35);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

/* 清空缓存小按钮 - 右上角 */
.btn-clear-cache {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(238,187,85,0.15);
    border: 2px solid rgba(238,187,85,0.4);
    color: var(--gold);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-clear-cache:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 15px rgba(238,187,85,0.5);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 20px;
}

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

.info-label {
    color: var(--gold);
    font-size: 15px;
    white-space: nowrap;
    min-width: 70px;
    text-align: left;
    font-weight: 500;
}

#settings-username,
#settings-phone {
    color: var(--cyan);
    font-size: 15px;
    text-align: right;
}

#settings-nickname {
    flex: 1;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cyan);
    border-radius: 8px;
    outline: none;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

#settings-nickname:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(238, 187, 85, 0.1);
    background: rgba(0,0,0,0.6);
}

.info-item .btn-cyan {
    padding: 10px 16px !important;
    font-size: 13px !important;
    height: auto !important;
    white-space: nowrap !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    width: auto !important;
}

.change-password-section {
    background: rgba(238,187,85,0.05);
    padding: 22px;
    border-radius: 10px;
    border: 1px solid rgba(238,187,85,0.2);
    margin-top: 0;
}

.change-password-section h4 {
    margin: 0 0 18px 0;
    color: var(--gold);
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

.change-password-section input {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cyan);
    border-radius: 8px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
}

.change-password-section input:last-of-type {
    margin-bottom: 20px;
}

.change-password-section input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(238, 187, 85, 0.1);
    background: rgba(0,0,0,0.6);
}

.change-password-section .btn {
    width: 100%;
    margin-top: 0;
    padding: 12px;
    font-size: 15px;
    height: auto;
    background: linear-gradient(135deg, #eebb55 0%, #d4a03a 100%) !important;
    color: #000 !important;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238,187,85,0.3);
}

.change-password-section .btn:hover {
    background: linear-gradient(135deg, #f5c866 0%, #e0b04b 100%) !important;
    box-shadow: 0 6px 20px rgba(238,187,85,0.5);
    transform: translateY(-2px);
}

/* 模态框关闭按钮 */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: rotate(90deg);
}

/* 青色按钮样式 */
.btn-cyan {
    background: linear-gradient(135deg, rgba(136,255,234,0.15), rgba(136,255,234,0.25)) !important;
    border: 1px solid rgba(136,255,234,0.4) !important;
    color: var(--cyan) !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-cyan:hover {
    background: linear-gradient(135deg, rgba(136,255,234,0.25), rgba(136,255,234,0.35)) !important;
    box-shadow: 0 4px 15px rgba(136,255,234,0.3);
    border-color: var(--cyan) !important;
    transform: translateY(-1px);
}

/* 缓存管理区域 */
.cache-management-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.cache-management-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

.cache-management-section p {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center;
}

.cache-management-section .btn-gold {
    width: 100%;
    padding: 16px !important;
    font-size: 17px !important;
    height: auto !important;
    background: linear-gradient(135deg, #eebb55 0%, #d4a03a 100%) !important;
    color: #000 !important;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238,187,85,0.3);
}

.cache-management-section .btn-gold:hover {
    background: linear-gradient(135deg, #f5c866 0%, #e0b04b 100%) !important;
    box-shadow: 0 6px 20px rgba(238,187,85,0.5);
    transform: translateY(-2px);
}

/* 动态日历图标 */
.header-dynamic-icon {
    width: 26px;
    height: 26px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #bbb;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
}

.hdi-top {
    width: 100%;
    height: 7px;
    background: #e74c3c;
    flex-shrink: 0;
}

.hdi-num {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tool-btn .header-dynamic-icon {
    margin: 0;
}

.tool-btn .tool-btn-text {
    line-height: 1;
}

.modal-icon {
    transform: scale(1.2);
    margin-right: 8px;
}

/* 日期变更动画效果 */
@keyframes dateChange {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15) rotateY(10deg);
        box-shadow: 0 4px 12px rgba(238,187,85,0.6);
    }
    50% {
        transform: scale(1.25) rotateY(0deg);
        box-shadow: 0 6px 16px rgba(238,187,85,0.8);
    }
    75% {
        transform: scale(1.15) rotateY(-10deg);
        box-shadow: 0 4px 12px rgba(238,187,85,0.6);
    }
    100% {
        transform: scale(1);
    }
}

.date-change-animation {
    animation: dateChange 0.6s ease-in-out;
}

/* 日期变更提示框 */
.date-change-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, rgba(238,187,85,0.95), rgba(212,160,58,0.95));
    color: #000;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(238,187,85,0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid rgba(255,255,255,0.3);
}

.date-change-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
