/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff0000;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.upgrade-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ai-tag {
    background: rgba(139, 69, 19, 0.2);
    color: #8b4513;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.free-tag {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.input-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 1rem;
    gap: 1rem;
}

.channel-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

.channel-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.analyze-btn {
    background: #1f2937;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analyze-btn:hover {
    background: #374151;
    transform: translateY(-2px);
}

.input-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 频道信息 */
.channel-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.channel-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.channel-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-details {
    flex: 1;
}

.channel-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.channel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #6b7280;
}

.location-tag {
    background: #fee2e2;
    color: #dc2626;
}

.channel-description {
    color: #6b7280;
    line-height: 1.6;
}

/* 统计卡片 */
.stats-section {
    margin-bottom: 2rem;
}

/* 流量趋势图 */
.traffic-trends-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.traffic-trends-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #667eea;
}

.trend-controls {
    display: flex;
    gap: 0.5rem;
}

.trend-tab {
    background: #f3f4f6;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.trend-tab.active {
    background: #667eea;
    color: white;
}

.trend-tab:hover:not(.active) {
    background: #e5e7eb;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
    background: #f9fafb;
    border-radius: 15px;
    padding: 1rem;
}

.trend-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.summary-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.summary-item:nth-child(1) {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.summary-item:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.summary-item:nth-child(3) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.summary-item:nth-child(4) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.shorts-card .stat-icon {
    background: linear-gradient(45deg, #f43f5e, #ec4899);
}

.videos-card .stat-icon {
    background: linear-gradient(45deg, #3b82f6, #6366f1);
}

.frequency-card .stat-icon {
    background: linear-gradient(45deg, #10b981, #059669);
}

.likes-card .stat-icon {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* 收益区域 */
.revenue-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.revenue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.revenue-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.revenue-title i {
    color: #f59e0b;
}

.settings-btn {
    background: #f3f4f6;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.3s ease;
}

.settings-btn:hover {
    background: #e5e7eb;
}

.revenue-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.revenue-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.revenue-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.revenue-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.revenue-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.revenue-rpm,
.revenue-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.shorts-revenue {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.long-revenue {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.total-revenue {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 可复制度评估 */
.replication-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-header i {
    color: #8b5cf6;
}

.replication-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.replication-btn {
    background: #1f2937;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.replication-btn:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* 热力图区域 */
.heatmap-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.heatmap-section .section-header {
    justify-content: space-between;
    margin-bottom: 2rem;
}

.date-range {
    color: #6b7280;
    font-size: 0.9rem;
}

.heatmap-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.heatmap-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.heatmap-tab.active {
    background: #667eea;
    color: white;
}

.heatmap-container {
    margin-bottom: 2rem;
}

.heatmap-grid {
    background: #f9fafb;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
}

.time-axis {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.heatmap-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.heatmap-row {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.day-label {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: right;
    padding-right: 1rem;
}

.heat-cells {
    display: contents;
}

.heat-cell {
    width: 100%;
    height: 25px;
    border-radius: 4px;
}

.heat-cell.low {
    background: #ebedf0;
}

.heat-cell.medium {
    background: #9be9a8;
}

.heat-cell.high {
    background: #40c463;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.legend-colors {
    display: flex;
    gap: 2px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.best-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.best-time-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.best-time-section h3 i {
    color: #f59e0b;
}

.time-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
}

.rank {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.day, .time {
    flex: 1;
    font-weight: 500;
}

.count {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 视频列表 */
.videos-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.videos-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.video-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.video-tab.active {
    background: #667eea;
    color: white;
}

.videos-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 2fr 120px 80px 120px 100px 100px 80px;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 2fr 120px 80px 120px 100px 100px 80px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background 0.3s ease;
}

.table-row:hover {
    background: #f9fafb;
}

.thumbnail-cell img {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.title-cell {
    font-weight: 500;
    color: #1f2937;
}

.cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.action-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* 视频自动解说功能样式 */
.video-analysis-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.video-analysis-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.analysis-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.analysis-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.analysis-header h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.analysis-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* 上传区域 */
.upload-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-area:hover {
    border-color: #5a67d8;
    background: #f0f2ff;
}

.upload-area.dragover {
    border-color: #4c51bf;
    background: #e6f3ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-area h3 {
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.upload-area p {
    color: #718096;
    margin: 0 0 1.5rem 0;
}

.select-file-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.upload-tips {
    margin-top: 1rem;
    text-align: center;
}

.upload-tips p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* 自定义提示词设置 */
.prompt-settings {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.prompt-input-group label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-input-group small {
    display: block;
    color: #718096;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.prompt-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.clear-prompt-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-prompt-btn:hover {
    background: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
}

/* 生成按钮 */
.generate-section {
    text-align: center;
    margin-bottom: 2rem;
}

.generate-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(72, 187, 120, 0.4);
}

.generate-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
}

/* 进度条 */
.progress-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #4a5568;
    font-weight: 600;
    margin: 0;
}

/* 结果区域 */
.results-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f7fafc;
}

.result-header h2 {
    color: #2d3748;
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 1rem;
}

.copy-btn, .download-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.copy-btn:hover, .download-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* 视频信息卡片 */
.video-info-card {
    background: #f7fafc;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.video-preview video {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-details h3 {
    color: #2d3748;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-meta span {
    color: #718096;
    font-size: 0.9rem;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

/* 风格分析 */
.style-analysis {
    margin-bottom: 2rem;
}

.style-analysis h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detected-style {
    background: #f0f2ff;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 1rem;
}

.style-tag {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 解说文案 */
.script-content {
    margin-bottom: 2rem;
}

.script-content h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.script-text {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.5rem;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.05rem;
    white-space: pre-wrap;
    border-left: 4px solid #667eea;
}

/* 结构化数据 */
.structured-data h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.structured-data pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 视频自动解说响应式设计 */
@media (max-width: 768px) {
    .video-analysis-container {
        padding: 0 1rem;
    }
    
    .analysis-header h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .prompt-textarea {
        min-height: 100px;
        font-size: 0.9rem;
    }
    
    .prompt-actions {
        justify-content: center;
    }
    
    .clear-prompt-btn {
        width: 100%;
        justify-content: center;
    }
    
    .video-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .result-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .result-actions {
        justify-content: center;
    }
    
    .generate-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

/* 流量趋势图响应式设计 */
@media (max-width: 768px) {
    .traffic-trends-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .trend-controls {
        width: 100%;
        justify-content: center;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .trend-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-item {
        padding: 1rem;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    .channel-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .revenue-cards {
        grid-template-columns: 1fr;
    }
    
    .best-times {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .heatmap-row {
        grid-template-columns: 1fr;
    }
    
    .time-axis {
        display: none;
    }
} 