/* 主样式文件 - 哥特暗黑风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('/images/shubiao.png') 0 0, auto !important;
}

body {
    cursor: url('/images/shubiao.png') 0 0, auto !important;
}

/* 可点击元素的鼠标样式 */
a, button, input[type="button"], input[type="submit"], select, .clickable {
    cursor: url('/images/shubiao.png') 0 0, pointer !important;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-panel: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-red: #8b0000;
    --accent-blood: #660000;
    --accent-gold: #d4af37;
    --border-color: #333;
    --shadow-dark: rgba(0, 0, 0, 0.8);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(139, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.view {
    display: none;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.view.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-small {
    padding: 12px 24px;
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--accent-blood), var(--accent-red));
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px var(--shadow-dark);
}

.btn-primary:hover, .btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blood));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-dark);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-color: var(--border-color);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* 设置图标 */
.settings-icon {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.settings-icon:hover {
    transform: rotate(90deg);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-panel);
    padding: 30px;
    border: 3px solid var(--accent-gold);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 30px var(--accent-red);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-red);
}

/* 加载覆盖层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 输入框 */
input[type="text"], input[type="file"] {
    padding: 10px;
    background-color: var(--bg-darker);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blood);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}


/* 设置界面样式 */
.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 20px;
}

.settings-section h4 {
    color: var(--text-primary);
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.settings-section label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.settings-section input[type="range"] {
    width: 200px;
    margin: 0 10px;
}

.settings-section input[type="checkbox"] {
    margin-right: 8px;
}

.rules-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 隐藏游戏规则内容的滚动条 */
.rules-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

.rules-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.rules-content::-webkit-scrollb

.rules-content ul {
    list-style: none;
    padding-left: 0;
}

.rules-content li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rules-content li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.rules-content strong {
    color: var(--accent-gold);
}

.settings-section p {
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.6;
}

.settings-section p strong {
    color: var(--accent-gold);
}


/* 游戏载入界面 */
.game-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.loading-content {
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.loading-title {
    font-size: 72px;
    color: var(--accent-gold);
    font-family: 'Georgia', serif;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 
        0 0 20px var(--accent-red),
        0 0 40px var(--accent-red),
        0 0 60px rgba(139, 0, 0, 0.5);
    animation: titlePulse 2s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    letter-spacing: 4px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.loading-tip-container {
    min-height: 80px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-tip {
    font-size: 18px;
    color: var(--accent-gold);
    line-height: 1.8;
    font-style: italic;
    animation: fadeIn 1s ease-out 0.5s both;
    padding: 0 20px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--accent-blood) 0%,
        var(--accent-red) 50%,
        var(--accent-gold) 100%
    );
    border-radius: 8px;
    transition: width 0.1s linear;
    box-shadow: 
        0 0 10px var(--accent-gold),
        0 0 20px var(--accent-red);
    animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 
            0 0 10px var(--accent-gold),
            0 0 20px var(--accent-red);
    }
    50% {
        box-shadow: 
            0 0 20px var(--accent-gold),
            0 0 30px var(--accent-red),
            0 0 40px rgba(212, 175, 55, 0.5);
    }
}


/* 管理员入口按钮 */
.admin-entry-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    cursor: pointer;
}

.admin-entry-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.admin-entry-btn:active {
    transform: scale(0.95);
}

/* Toast提示动画 */
@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 重连覆盖层样式 */
#reconnecting-overlay {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 断线警告样式 */
.connection-warning {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    z-index: 9999;
    font-size: 14px;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}


/* ==================== 个人资料弹窗样式 ==================== */
.profile-section {
    padding: 20px 0;
}

.profile-avatar-display {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.profile-info {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: bold;
    color: var(--text-secondary);
    min-width: 100px;
    font-size: 14px;
}

.profile-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.profile-private {
    color: var(--accent-gold);
}

.profile-id {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 18px;
}

.profile-badge {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.profile-badge-public {
    background: var(--accent-blue);
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 10px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    min-width: 180px;
    border-radius: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ==================== 货币系统样式 ==================== */
/* 货币显示 */
.currency-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b3d 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 25px;
    padding: 6px 20px;
    box-shadow: 
        0 0 15px rgba(212, 175, 55, 0.3),
        inset 0 0 10px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.currency-display:hover {
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        inset 0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.currency-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
}

.currency-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
    animation: currency-glow 2s ease-in-out infinite;
}

@keyframes currency-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 1));
    }
}

.currency-amount {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    min-width: 60px;
    text-align: center;
}

.currency-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.currency-btn {
    background: linear-gradient(135deg, #4a3728 0%, #6b4e3d 100%);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.currency-btn:hover {
    background: linear-gradient(135deg, #6b4e3d 0%, #8b6347 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

/* 每日签到弹窗 */
#daily-reward-modal .modal-content {
    max-width: 600px;
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b3d 100%);
}

.daily-reward-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.reward-calendar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 20px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 15px;
}

.calendar-header h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.consecutive-days {
    color: var(--text-secondary);
    font-size: 14px;
}

.consecutive-days span {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 18px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.calendar-day.claimed {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
}

.calendar-day.today {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.calendar-day.special {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 215, 0, 0.3) 100%);
    border-color: var(--accent-gold);
}

.day-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.day-reward {
    font-size: 14px;
    color: var(--accent-gold);
}

.special-label {
    font-size: 10px;
    color: #FFD700;
    margin-top: 5px;
    font-weight: bold;
}

.reward-claim {
    text-align: center;
}

.today-reward {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 30px;
}

.today-reward h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.reward-amount {
    font-size: 48px;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    margin: 20px 0;
    font-weight: bold;
}

.reward-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.reward-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
}

.reward-btn:disabled {
    background: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.reward-status {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 货币变化动画 */
@keyframes currency-increase {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

@keyframes currency-decrease {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.currency-change {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}

.currency-change.increase {
    color: #4CAF50;
    animation-name: currency-increase;
}

.currency-change.decrease {
    color: #f44336;
    animation-name: currency-decrease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .currency-display {
        padding: 6px 12px;
    }
    
    .currency-amount {
        font-size: 16px;
        min-width: 50px;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        padding: 8px 5px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .day-reward {
        font-size: 12px;
    }
    
    .reward-amount {
        font-size: 36px;
    }
}

/* 签到按钮高亮效果（可领取时） */
.currency-btn.highlight {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(76, 175, 80, 0.9);
    }
}

