/* ShareX 全局样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #fff;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #d04060 0%, #8b0000 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-guest {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
}

.btn-guest:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-play {
    background: linear-gradient(135deg, #d04060 0%, #8b0000 100%);
    color: white;
    padding: 10px 20px;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

/* 登录页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #d04060 0%,#8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #d04060 0% #8b0000 100%);
    color: white;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #dc143c;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form .btn {
    width: 100%;
    margin-top: 10px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.4);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
}

/* 游戏大厅 */
.gamehall-container {
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0 40px;
    height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .logo {
    font-size: 24px;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.chips {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.main-content {
    display: flex;
    padding: 30px 40px;
    gap: 30px;
}

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: linear-gradient(145deg, rgba(20,20,20,0.6) 0%, rgba(10,10,10,0.8) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(220, 20, 60, 0.15);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc143c, transparent);
    opacity: 0.6;
}

.panel h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.announcement-item {
    padding: 12px;
    background: linear-gradient(145deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.9) 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(220, 20, 60, 0.15);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.1);
}

.announcement-item strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.announcement-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.9) 100%);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(220, 20, 60, 0.15);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.1);
}

.leaderboard-item .rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4d4646;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;  
    color: #ffffff;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.leaderboard-item .name {
    flex: 1;
    font-size: 14px;
}

.leaderboard-item .score {
    font-weight: 600;
    color: #dc143c;
}

/* 意见反馈入口 */
.feedback-entry {
    width: 300px;
    height: 70px;
    background: linear-gradient(145deg, rgba(20,20,20,0.6) 0%, rgba(10,10,10,0.8) 100%);
    border-radius: 16px;
    border: 1px solid rgba(220, 20, 60, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc143c, transparent);
    opacity: 0.6;
}

.feedback-entry:hover {
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.2);
    transform: translateY(-2px);
}

.feedback-entry.my-feedback {
    position: relative;
}

.feedback-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #0a0a0a;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feedback-icon {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.feedback-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feedback-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(220, 20, 60, 0.8);
}

.feedback-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.games-section {
    flex: 1;
}

.games-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 48px;
}

.game-info {
    flex: 1;
}

.game-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.game-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
}

.game-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .games-list {
        grid-template-columns: 1fr;
    }
}

/* 意见反馈弹窗 */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.feedback-modal-overlay.active {
    display: flex;
}

.feedback-modal-content {
    background: linear-gradient(145deg, rgba(25,25,25,0.95) 0%, rgba(15,15,15,0.98) 100%);
    border-radius: 20px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.feedback-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 25px 20px;
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
    position: relative;
}

.feedback-modal-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.feedback-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.feedback-close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feedback-close-btn:hover {
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
}

.feedback-form {
    padding: 25px;
}

.feedback-type-section {
    margin-bottom: 25px;
}

.feedback-label-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.feedback-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.type-btn {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.type-btn:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.3);
}

.type-btn.selected {
    background: rgba(220, 20, 60, 0.2);
    border-color: #dc143c;
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
}

.feedback-content-section {
    margin-bottom: 25px;
}

.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #dc143c;
    background: rgba(255, 255, 255, 0.08);
}

.feedback-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.feedback-char-count {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

.feedback-image-section {
    margin-bottom: 25px;
}

.feedback-image-upload {
    width: 100%;
    height: 120px;
    border: 2px dashed rgba(220, 20, 60, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-image-upload:hover {
    border-color: rgba(220, 20, 60, 0.6);
    background: rgba(220, 20, 60, 0.05);
}

.feedback-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feedback-upload-icon {
    font-size: 32px;
}

.feedback-upload-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.feedback-upload-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.feedback-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-image-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(220, 20, 60, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedback-image-remove:hover {
    background: #dc143c;
    transform: scale(1.1);
}

.feedback-image-remove.show {
    display: flex;
}

.feedback-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.feedback-btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.feedback-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.feedback-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feedback-btn-submit {
    background: linear-gradient(135deg, #d04060 0%, #8b0000 100%);
    color: #fff;
}

.feedback-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.feedback-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 响应式 */
@media (max-width: 600px) {
    .feedback-type-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feedback-modal-content {
        max-height: 95vh;
    }
}
