/* 日报站点样式 - 专业商务风 */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* 头部 */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 32px 0;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header .subtitle {
  opacity: 0.9;
  font-size: 14px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 登出按钮 */
.logout-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* 首页日报列表 */
.report-list {
  display: grid;
  gap: 16px;
}

.report-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.report-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.report-item .date {
  font-size: 20px;
  font-weight: 600;
}

.report-item .weekday {
  color: var(--text-light);
  font-size: 14px;
  margin-left: 12px;
  background: var(--bg-gray);
  padding: 4px 12px;
  border-radius: 20px;
}

.report-item .arrow {
  color: var(--primary);
  font-size: 24px;
  transition: transform 0.2s;
}

.report-item:hover .arrow {
  transform: translateX(4px);
}

/* 导航 */
.nav {
  margin-bottom: 24px;
}

.nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav a:hover {
  text-decoration: underline;
}

/* 日报头部 */
.report-header {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.report-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text);
}

.report-header .meta {
  color: var(--text-light);
  font-size: 14px;
}

/* 日报内容 */
.report-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: var(--shadow);
}

/* 核心摘要 */
.report-content h1 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}

/* 板块标题 */
.report-content h2 {
  font-size: 22px;
  margin: 40px 0 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 8px;
}

/* 子板块标题 */
.report-content h3 {
  font-size: 18px;
  margin: 28px 0 16px;
  color: var(--primary);
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.report-content h4 {
  font-size: 16px;
  margin: 20px 0 12px;
  color: var(--text);
}

/* 段落 */
.report-content p {
  margin: 12px 0;
  color: var(--text);
  line-height: 1.8;
}

/* 新闻标题 */
.report-content strong {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

/* 链接 */
.report-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.report-content a:hover {
  border-bottom-color: var(--primary);
}

/* 表格 */
.report-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.report-content th,
.report-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.report-content th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 600;
  color: var(--text);
}

.report-content tr:nth-child(even) {
  background: var(--bg-gray);
}

.report-content tr:hover {
  background: #eff6ff;
}

/* 分隔线 */
.report-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
}

/* 涨跌颜色 */
.up { color: var(--danger); font-weight: 600; }
.down { color: var(--success); font-weight: 600; }

/* 解读区块 */
.report-content p:has(.💡) {
  background: #fffbeb;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

/* 市场解读 */
.report-content h3:contains("解读") {
  background: var(--bg-gray);
  padding: 8px 16px;
  border-radius: 6px;
  border-left: none;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 20px;
}

/* 登录界面 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-box {
  background: white;
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.login-box h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.login-subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 15px;
}

.login-box input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-box button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.login-hint {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 28px;
}

.login-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 16px;
  background: #fef2f2;
  padding: 10px;
  border-radius: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .header {
    padding: 24px 0;
  }
  
  .header h1 {
    font-size: 22px;
  }
  
  .report-header h1 {
    font-size: 24px;
  }
  
  .report-content {
    padding: 20px;
  }
  
  .report-content h2 {
    font-size: 18px;
  }
  
  .report-content table {
    font-size: 12px;
  }
  
  .report-content th,
  .report-content td {
    padding: 8px 10px;
  }
  
  .login-box {
    padding: 32px 24px;
  }
}