/* 基础样式 - 金茂府：打假风暴 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff4757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 头部样式 */
.game-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.game-title {
    color: #ff4757;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-title i {
    margin-right: 10px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.anger-meter {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.anger-meter i {
    color: #ff4757;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.points-display {
    color: #ff4757;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.progress-bar {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
    transition: width 0.5s ease;
    width: 0%;
}

.current-focus {
    color: #ffa726;
    font-weight: 500;
}

/* 标语区域 */
.slogan-section {
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.slogan-carousel {
    text-align: center;
    position: relative;
    height: 50px;
    overflow: hidden;
}

.slogan-item {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slogan-item.active {
    opacity: 1;
}

/* 场景导航 */
.scene-navigation {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 0;
    border-bottom: 3px solid #ff4757;
}

.scene-tabs {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.scene-tab {
    flex: 1;
    min-width: 120px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.scene-tab:hover {
    background: rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.scene-tab.active {
    background: rgba(74, 144, 226, 0.4);
    border-color: #4a90e2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.5);
}

.scene-tab i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.scene-tab span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 游戏区域 */
.game-area {
    padding: 40px 0;
    min-height: 400px;
}

.game-scene {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.scene-description {
    text-align: center;
    margin-bottom: 30px;
}

.scene-description h2 {
    color: #ff4757;
    font-size: 2rem;
    margin-bottom: 10px;
}

.scene-description p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.interaction-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.target-container {
    position: relative;
    text-align: center;
}

.click-target {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.click-target:hover {
    transform: scale(1.05);
}

.click-target img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.click-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 15px;
    overflow: hidden;
}

.click-hint {
    margin-top: 20px;
    color: #666;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.click-hint i {
    color: #ff4757;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 道具栏 */
.tools-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tool-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
}

.tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tool-btn:active {
    transform: translateY(-1px);
}

.tool-btn i {
    font-size: 1.5rem;
}

.tool-btn span {
    font-size: 0.9rem;
}

/* 功能按钮 */
.action-buttons {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 0;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 25px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.action-btn:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

.comment-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
}

.stats-btn:hover {
    background: #5352ed;
    border-color: #5352ed;
    color: #fff;
}

.share-btn:hover {
    background: #2ed573;
    border-color: #2ed573;
    color: #fff;
}

/* 留言区域 */
.comments-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 0;
}

.comments-section h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-section h3 i {
    color: #ff4757;
}

.comment-count {
    color: #666;
    font-size: 1rem;
    font-weight: normal;
}

.comments-list {
    display: grid;
    gap: 20px;
}

.comment-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff4757;
    transition: transform 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.comment-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

.comment-time {
    color: #999;
}

.comment-likes {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-likes:hover {
    color: #ff4757;
}

.load-more-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: #5a67d8;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff4757;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 留言输入样式 */
#comment-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#comment-input:focus {
    outline: none;
    border-color: #ff4757;
}

.char-count {
    text-align: right;
    color: #999;
    font-size: 0.9rem;
    margin-top: 5px;
}

.notice {
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.submit-btn {
    padding: 10px 20px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #ff3838;
}

.cancel-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }
    
    .status-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .progress-bar {
        width: 150px;
    }
    
    .scene-tabs {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .click-target {
        width: 250px;
        height: 250px;
    }
    
    .tools-bar {
        flex-wrap: wrap;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .scene-tab {
        min-width: 80px;
        padding: 10px 8px;
    }
    
    .scene-tab i {
        font-size: 1.2rem;
    }
    
    .scene-tab span {
        font-size: 0.8rem;
    }
    
    .click-target {
        width: 200px;
        height: 200px;
    }
}
