/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.logo i {
    font-size: 2.5rem;
    color: #ff9800;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 20px 20px 0;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background-color: rgba(255, 152, 0, 0.9);
    color: white;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

#theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

#theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 30px 0;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 模块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

body.dark-mode .section-header {
    border-bottom-color: #333;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    color: #1a237e;
}

body.dark-mode .section-header h2 {
    color: #90caf9;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.refresh-btn:hover {
    background-color: #388e3c;
}

.refresh-btn:active {
    transform: scale(0.98);
}

.last-update {
    color: #666;
    font-size: 0.9rem;
}

body.dark-mode .last-update {
    color: #aaa;
}

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 新闻卡片样式 */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

body.dark-mode .news-card {
    background: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 180px;
    background: linear-gradient(45deg, #1a237e, #283593);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a237e;
}

body.dark-mode .news-title {
    color: #90caf9;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
}

body.dark-mode .news-excerpt {
    color: #aaa;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

body.dark-mode .news-meta {
    border-top-color: #333;
}

.news-date {
    color: #888;
    font-size: 0.85rem;
}

.news-link {
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.news-link:hover {
    color: #f57c00;
}

/* 直播间样式 */
.stream-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

.stream-info {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .stream-info {
    background: #1e1e1e;
}

.stream-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

body.dark-mode .stat {
    background: #2d2d2d;
}

.stat i {
    font-size: 1.5rem;
    color: #1a237e;
}

body.dark-mode .stat i {
    color: #90caf9;
}

.stream-description h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

body.dark-mode .stream-description h3 {
    color: #90caf9;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00a1d6, #0097d6);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 161, 214, 0.3);
}

.stream-placeholder {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .stream-placeholder {
    background: #1e1e1e;
}

.placeholder-content {
    padding: 30px;
    text-align: center;
}

.placeholder-content i {
    font-size: 4rem;
    color: #00a1d6;
    margin-bottom: 20px;
}

.placeholder-content h3 {
    color: #1a237e;
    margin-bottom: 10px;
}

body.dark-mode .placeholder-content h3 {
    color: #90caf9;
}

.stream-preview {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.stream-title {
    color: #00a1d6;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.stream-chat {
    max-height: 200px;
    overflow-y: auto;
}

.chat-message {
    padding: 8px 12px;
    background: #2d2d2d;
    margin-bottom: 8px;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* 市场数据样式 */
.market-overview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .market-overview {
    background: #1e1e1e;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

body.dark-mode .stat-card {
    background: #2d2d2d;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h4 {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 5px;
}

body.dark-mode .stat-value {
    color: #90caf9;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.market-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

body.dark-mode .market-item {
    background: #1e1e1e;
}

.market-item:hover {
    transform: translateY(-3px);
}

.item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a237e;
}

body.dark-mode .item-name {
    color: #90caf9;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4caf50;
}

.item-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.item-change.positive {
    color: #4caf50;
}

.item-change.negative {
    color: #f44336;
}

/* 加载状态 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1a237e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

body.dark-mode .spinner {
    border-color: #333;
    border-top-color: #90caf9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 设置面板 */
.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
}

body.dark-mode .settings-panel {
    background: #1e1e1e;
}

.settings-panel.active {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #1a237e;
    color: white;
}

body.dark-mode .settings-header {
    background: #0d1b2a;
}

.close-settings {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-settings:hover {
    transform: rotate(90deg);
}

.settings-content {
    padding: 25px;
}

.setting-group {
    margin-bottom: 30px;
}

.setting-group h4 {
    color: #1a237e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

body.dark-mode .setting-group h4 {
    color: #90caf9;
    border-bottom-color: #333;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.setting-control {
    margin-top: 10px;
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-control select {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
}

body.dark-mode .setting-control select {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

.save-settings {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    margin-top: 20px;
}

.save-settings:hover {
    transform: translateY(-2px);
}

/* 底部样式 */
.footer {
    background: #1a237e;
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    margin-top: 50px;
}

body.dark-mode .footer {
    background: #0d1b2a;
}

.footer-content {
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

.footer-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ff9800;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 通知区域 */
.notification-area {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 300px;
    z-index: 1000;
}

.notification {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #1a237e;
    animation: slideInRight 0.5s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-mode .notification {
    background: #1e1e1e;
    border-left-color: #90caf9;
}

.notification.success {
    border-left-color: #4caf50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification i {
    font-size: 1.3rem;
}

.notification-content h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.notification-content p {
    font-size: 0.9rem;
    color: #666;
}

body.dark-mode .notification-content p {
    color: #aaa;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .stream-container {
        grid-template-columns: 1fr;
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav ul {
        gap: 15px;
        padding: 15px 15px 0;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        position: relative;
        top: 0;
        right: 0;
        margin-left: auto;
    }
    
    .notification-area {
        width: calc(100% - 60px);
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

/* ==================== 游戏平台模块样式 ==================== */

/* 平台状态指示器 */
.platform-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

#platform-status-icon {
    color: #4caf50;
    font-size: 0.7rem;
}

/* 平台检测区域 */
.platform-detection {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .platform-detection {
    background: #1e1e1e;
}

.detection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detection-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a237e;
}

body.dark-mode .detection-header h3 {
    color: #90caf9;
}

.detect-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s;
}

.detect-btn:hover {
    transform: translateY(-2px);
}

.platform-counter {
    display: flex;
    gap: 30px;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.counter-item i {
    font-size: 1.2rem;
}

.counter-item i.fa-check-circle {
    color: #4caf50;
}

.counter-item i.fa-times-circle {
    color: #f44336;
}

/* 平台网格 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.platform-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.dark-mode .platform-card {
    background: #1e1e1e;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.platform-card.installed {
    border-left: 5px solid #4caf50;
}

.platform-card.not-installed {
    border-left: 5px solid #f44336;
    opacity: 0.7;
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a237e, #283593);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.platform-card.installed .platform-icon {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.platform-card.not-installed .platform-icon {
    background: linear-gradient(135deg, #757575, #616161);
}

.platform-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a237e;
}

body.dark-mode .platform-name {
    color: #90caf9;
}

.platform-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.9rem;
}

body.dark-mode .platform-desc {
    color: #aaa;
}

.platform-status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.platform-status-badge.installed {
    background: #e8f5e9;
    color: #2e7d32;
}

body.dark-mode .platform-status-badge.installed {
    background: #1b5e20;
    color: #c8e6c9;
}

.platform-status-badge.not-installed {
    background: #ffebee;
    color: #c62828;
}

body.dark-mode .platform-status-badge.not-installed {
    background: #b71c1c;
    color: #ffcdd2;
}

.launch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.launch-btn:disabled {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.launch-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 快捷启动区域 */
.quick-launch {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .quick-launch {
    background: #1e1e1e;
}

.quick-launch h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a237e;
    margin-bottom: 20px;
}

body.dark-mode .quick-launch h3 {
    color: #90caf9;
}

.quick-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.quick-launch-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    padding: 20px 15px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

body.dark-mode .quick-launch-btn {
    background: #2d2d2d;
}

.quick-launch-btn:hover {
    transform: translateY(-3px);
    background: #e8f5e9;
}

body.dark-mode .quick-launch-btn:hover {
    background: #1b5e20;
}

.quick-launch-btn i {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 10px;
}

body.dark-mode .quick-launch-btn i {
    color: #90caf9;
}

.quick-launch-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-launch-controls {
    display: flex;
    gap: 15px;
}

.add-quick-btn, .edit-quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s;
}

.edit-quick-btn {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.add-quick-btn:hover, .edit-quick-btn:hover {
    transform: translateY(-2px);
}

/* 启动历史 */
.launch-history {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .launch-history {
    background: #1e1e1e;
}

.launch-history h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a237e;
    margin-bottom: 20px;
}

body.dark-mode .launch-history h3 {
    color: #90caf9;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

body.dark-mode .history-item {
    background: #2d2d2d;
}

.history-item i {
    font-size: 1.2rem;
    color: #1a237e;
}

body.dark-mode .history-item i {
    color: #90caf9;
}

.history-info {
    flex: 1;
}

.history-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.history-time {
    font-size: 0.8rem;
    color: #666;
}

body.dark-mode .history-time {
    color: #aaa;
}

.clear-history-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s;
}

.clear-history-btn:hover {
    transform: translateY(-2px);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

body.dark-mode .modal-content {
    background: #1e1e1e;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #1a237e;
    color: white;
}

body.dark-mode .modal-header {
    background: #0d1b2a;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a237e;
}

body.dark-mode .form-group label {
    color: #90caf9;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    color: #333;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

body.dark-mode .form-help {
    color: #aaa;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 25px;
    border-top: 1px solid #eee;
}

body.dark-mode .modal-footer {
    border-top-color: #333;
}

.modal-cancel, .modal-save {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-cancel {
    background: #f5f5f5;
    color: #333;
}

body.dark-mode .modal-cancel {
    background: #2d2d2d;
    color: #e0e0e0;
}

.modal-save {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.modal-cancel:hover, .modal-save:hover {
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-launch-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .quick-launch-controls {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-cancel, .modal-save {
        width: 100%;
    }
}

/* 快捷方式删除按钮（编辑模式） */
.quick-launch-btn {
    position: relative;
}

.delete-quick {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
    line-height: 1;
}

.delete-quick:hover {
    transform: scale(1.2);
}

/* ==================== 第三方对战平台样式 ==================== */

/* 第三方平台卡片边框用橙色区分 */
.platform-card.third-party {
    border-left: 5px solid #e67e22;
    opacity: 1;
}

.platform-card.third-party .platform-icon {
    background: linear-gradient(135deg, #e67e22, #c0392b) !important;
}

/* "第三方" 小标签 */
.third-party-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22, #c0392b);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* 进入平台按钮 */
.third-party-enter {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.third-party-enter:hover {
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4) !important;
}

/* 平台标签组 */
.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
}

.platform-tag {
    background: #fff3e0;
    color: #e65100;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #ffcc80;
}

body.dark-mode .platform-tag {
    background: #3e2723;
    color: #ffcc80;
    border-color: #6d4c41;
}

/* 第三方平台状态徽章：用橙色中性风格 */
.platform-card.third-party .platform-status-badge.not-installed {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

body.dark-mode .platform-card.third-party .platform-status-badge.not-installed {
    background: #33280a;
    color: #ffe082;
    border-color: #8a6d00;
}