/* 每日原料药行情简报 - 样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 24px 20px 60px; }
.nav { margin-bottom: 20px; }
.nav a { color: #2563eb; text-decoration: none; font-size: 14px; margin-right: 8px; }
.nav a:hover { text-decoration: underline; }
.nav-index { text-align: right; margin: -10px 0 20px; }

/* 顶部图片 banner */
.top-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: white;
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.banner-logo { flex-shrink: 0; }
.banner-logo img { max-height: 64px; max-width: 200px; }
.banner-qr { display: flex; gap: 16px; }
.qr-item { text-align: center; }
.qr-item img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    padding: 2px;
    background: white;
}
.qr-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 32px 28px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}
.page-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.page-date { font-size: 32px; font-weight: 800; opacity: 0.95; }
.page-subtitle { font-size: 15px; opacity: 0.9; margin-top: 6px; }

.meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.meta-item {
    background: white;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.meta-label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.meta-value { display: block; font-size: 15px; font-weight: 600; color: #1f2937; }

.report-section, .user-report { margin-bottom: 32px; }
.section-title {
    font-size: 20px;
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.user-report .section-title { color: #7c2d12; border-left-color: #ea580c; }
.badge {
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}
.badge-user { background: #fed7aa; color: #9a3412; }

.cards { display: grid; gap: 14px; }
.card {
    background: white;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.1s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}
.card-num {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}
.card-title {
    color: #111827;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}
.card-title:hover { color: #2563eb; }
.card-summary {
    color: #374151;
    font-size: 14px;
    line-height: 1.75;
    margin: 8px 0 12px;
    padding-left: 32px;
    word-wrap: break-word;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 32px;
    font-size: 12px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 8px;
}
.card-source { color: #6b7280; }
.card-link { color: #2563eb; text-decoration: none; word-break: break-all; }
.card-link:hover { text-decoration: underline; }

/* 用户投稿区 */
.user-report {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
}
.user-report-meta {
    font-size: 13px;
    color: #78350f;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #fde68a;
}
.user-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #7c2d12;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #fed7aa;
}
.user-subsection { margin: 14px 0; }
.user-subsection-title {
    font-size: 15px;
    font-weight: 600;
    color: #9a3412;
    margin: 10px 0 8px;
}
.user-item { margin: 8px 0; }
.callout {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 4px;
    color: #78350f;
    font-size: 14px;
}
.bullet-list { padding-left: 24px; margin: 6px 0; }
.bullet-list li { margin: 4px 0; color: #374151; font-size: 14px; }
.user-item p { margin: 6px 0; color: #374151; font-size: 14px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 14px;
    background: white;
    font-size: 13px;
    border: 1px solid #fed7aa;
}
.data-table th {
    background: #fed7aa;
    color: #7c2d12;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #fdba74;
}
.data-table td {
    padding: 7px 12px;
    border: 1px solid #fed7aa;
    color: #374151;
    vertical-align: top;
}
.data-table tr:hover td { background: #fffbeb; }

/* 列表页 */
.reports-list { display: grid; gap: 12px; }
.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 18px 22px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.report-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}
.report-date {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    min-width: 130px;
}
.report-info { flex: 1; }
.report-count { font-size: 15px; font-weight: 600; color: #1f2937; }
.report-time { font-size: 12px; color: #6b7280; margin-top: 2px; }
.report-arrow { font-size: 20px; color: #9ca3af; }

.empty { text-align: center; color: #9ca3af; padding: 60px 0; }

.page-footer {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 600px) {
    .container { padding: 16px 12px 40px; }
    .page-header { padding: 20px 18px; }
    .page-header h1 { font-size: 20px; }
    .page-date { font-size: 24px; }
    .card-summary, .card-footer { padding-left: 0; }
    .card-header { flex-wrap: wrap; }
    .report-date { min-width: 100px; font-size: 16px; }
    .user-report { padding: 16px; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 6px 8px; }
}
