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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* 平台头部样式 - 报社风格 */
.platform-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 4px solid #d32f2f;
}

.platform-header h1 {
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    font-size: 3rem;
    letter-spacing: -0.5px;
}

.platform-header .lead {
    opacity: 0.95;
    font-weight: 400;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* 功能徽章样式 */
.feature-badge {
    background: linear-gradient(45deg, #1976d2, #42a5f5);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin: 0.3rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

/* 模块卡片样式 */
.module-card {
    transition: all 0.4s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    background: white;
    border: 1px solid #e0e0e0;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: #1976d2;
}

.module-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    color: #1976d2;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主功能区域样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    background: white;
    border: 1px solid #e0e0e0;
}

.card-header {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    border: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #1565c0;
}

.card-header-tabs .nav-link {
    color: rgba(255,255,255,0.85);
    border: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin: 0 0.2rem;
}

.card-header-tabs .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-header-tabs .nav-link:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
}

/* 表单控件样式 - 报社风格 */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
    transform: translateY(-2px);
    background: white;
    outline: none;
}

.form-text {
    font-size: 0.9rem;
    color: #757575;
    font-weight: 500;
}

/* 按钮样式 - 报社风格 */
.btn {
    border-radius: 10px;
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
}

.btn-success {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
}

.btn-outline-primary, .btn-outline-success {
    border: 2px solid;
    background: transparent;
    font-weight: 600;
}

.btn-outline-primary {
    border-color: #1976d2;
    color: #1976d2;
}

.btn-outline-primary:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.btn-outline-success {
    border-color: #d32f2f;
    color: #d32f2f;
}

.btn-outline-success:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* 白色下载按钮样式 */
.btn-light {
    background: white;
    border: 2px solid #e0e0e0;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
    border-color: #1976d2;
    color: #1976d2;
}

/* 结果区域样式 */
#voiceResult, #newsResult {
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    background: #fafbfc;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

#voiceResult:hover, #newsResult:hover {
    border-color: #1976d2;
    background: white;
    box-shadow: inset 0 2px 12px rgba(25, 118, 210, 0.1);
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 1px solid #e0e0e0;
}

.modal-header {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #1565c0;
}

.modal-body {
    padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .platform-header h1 {
        font-size: 2rem;
    }
    
    .module-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-badge {
        margin: 0.2rem;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .card {
        margin: 0 -15px;
        border-radius: 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-card, .card {
    animation: fadeIn 0.6s ease-out;
}

/* 滚动条样式 - 报社风格 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f8ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 5px;
    border: 2px solid #f1f8ff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
}

/* 用户面板样式 */
#userPanel {
    background: rgba(255,255,255,0.15);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
}

#userAvatar {
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 历史记录样式 */
#historyList .list-group-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    border: 1px solid #e0e0e0;
    padding: 1.2rem;
}

#historyList .list-group-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.2);
    border-color: #1976d2;
}

.status-completed {
    color: #2e7d32;
    font-weight: 700;
}

.status-processing {
    color: #1976d2;
    font-weight: 700;
}

.status-failed {
    color: #d32f2f;
    font-weight: 700;
}

/* 加载状态样式 */
.text-center.text-muted {
    opacity: 0.8;
    color: #757575 !important;
}

.text-center.text-muted i {
    opacity: 0.6;
    color: #1976d2;
}

/* 按钮增强 */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

/* 上传区域样式 */
.upload-area {
    border: 3px dashed #bbdefb;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    background: #f3f8ff;
    transition: all 0.4s ease;
}

.upload-area:hover {
    border-color: #1976d2;
    background: #e3f2fd;
    transform: translateY(-2px);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .platform-header {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .platform-header h1 {
        font-size: 2.2rem;
    }
    
    .platform-header .lead {
        font-size: 1.1rem;
    }
    
    .card-header {
        padding: 1.2rem 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
}

/* 添加新闻媒体特有的视觉元素 */
.news-accent {
    position: relative;
}

.news-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #d32f2f, #1976d2);
    border-radius: 2px;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

.dropdown-item {
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #e3f2fd;
    color: #1976d2;
}