/* OpenClaw Morning News - 极简苹果风格 */

:root {
    --primary: #1d1d1f;
    --secondary: #86868b;
    --accent: #f97316;
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --border: #d2d2d7;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --radius: 12px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航 ===== */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.logo-icon {
    font-size: 22px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* ===== 日期导航栏 ===== */
.date-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.date-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.date-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary);
    transition: all 0.2s;
}

.date-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.current-date {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    padding: 10px 24px;
    background: var(--bg);
    border-radius: 8px;
    min-width: 200px;
    text-align: center;
}

/* ===== 主内容区 ===== */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
}

/* ===== Hero导读区 ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 40px;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-summary {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    opacity: 0.9;
}

/* ===== 务实落地建议 ===== */
.recommendations {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rec-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.rec-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.rec-card p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

/* ===== 内容网格 ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-card.full-width {
    grid-column: 1 / -1;
}

.content-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 22px;
}

.content-card ul {
    list-style: none;
}

.content-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    line-height: 1.6;
}

.content-card li:last-child {
    border-bottom: none;
}

.content-card li strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 表格样式 ===== */
.global-table {
    overflow-x: auto;
}

.global-table table {
    width: 100%;
    border-collapse: collapse;
}

.global-table th {
    background: var(--primary);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.global-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.global-table tr:hover td {
    background: var(--bg);
}

/* ===== 洞察区 ===== */
.insight-section {
    margin-bottom: 40px;
}

.insight-box {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-left: 5px solid #48bb78;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.insight-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #276749;
    margin-bottom: 12px;
}

.insight-box p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}

/* ===== 页脚 ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    background: var(--card-bg);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-content p {
    color: var(--secondary);
    font-size: 14px;
    margin: 4px 0;
}

.footer-content a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .rec-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card.full-width {
        grid-column: 1;
    }
    
    .hero-section {
        padding: 32px;
    }
    
    .hero-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .date-container {
        flex-wrap: wrap;
    }
    
    .current-date {
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .main {
        padding: 24px 16px;
    }
    
    .hero-section {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-summary {
        font-size: 16px;
    }
    
    .hero-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ===== 大咖声音板块 ===== */
.voices-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.voice-item {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

.voice-item::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 48px;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.voice-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    z-index: 1;
}

.voice-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
    flex-wrap: wrap;
}

.voice-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.voice-title {
    color: var(--text-secondary);
    font-size: 13px;
}

.voice-source {
    color: var(--accent);
    font-size: 12px;
    background: rgba(249, 115, 22, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .voice-item {
        padding: 16px 20px;
    }
    
    .voice-text {
        font-size: 15px;
        padding-left: 16px;
    }
    
    .voice-meta {
        padding-left: 16px;
    }
}

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

.content-card,
.rec-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== 打印样式 ===== */
@media print {
    .header,
    .date-bar,
    .footer {
        display: none;
    }
    
    .main {
        padding: 0;
    }
    
    .content-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
