/* ================================================================
   作文小事 内容页公共样式 v1
   适用：热点素材、历年真题、同步辅导 列表页 + 详情页
   品牌色：暖橙 #FF8C42  辅助：紫 #7C4DFF  金 #FFB800
   ================================================================ */

/* ========== 站点导航栏 ========== */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }
.logo::before { content: '✏️'; font-size: 24px; }

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}
.main-nav a:hover { background: var(--brand-light); color: var(--brand); }
.main-nav a.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,140,66,0.3);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 0;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumb li {
  font-size: 13px;
  color: var(--text-gray);
}
.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }
.crumb-sep {
  margin: 0 6px;
  color: var(--text-light);
  font-size: 12px;
  user-select: none;
}
.crumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== 页面主体容器 ========== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 80px;
  min-height: 60vh;
}

/* ========== 页面 Hero 区 ========== */
.page-hero {
  text-align: center;
  padding: 56px 0 40px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: 2px;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.page-hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.page-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
  background: var(--brand-lighter);
  padding: 8px 20px;
  border-radius: 20px;
}
.stat-sep { color: var(--border); }

/* ========== 内容卡片列表 ========== */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.content-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--gold));
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.content-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: #FFD4A8;
}
.content-card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.card-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
  min-width: 42px;
  line-height: 1;
  opacity: 0.7;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-hot {
  background: linear-gradient(135deg, #FF4444, #FF6B6B);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,68,68,0); }
}
.card-date { font-size: 13px; color: var(--text-gray); }
.card-grade {
  font-size: 12px;
  color: var(--purple);
  background: var(--purple-light);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  background: linear-gradient(var(--brand), var(--brand)) no-repeat left bottom;
  background-size: 0 2px;
  transition: color 0.2s, background-size 0.3s;
}
.card-title a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}
.card-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.card-tag:hover { background: var(--brand); color: #fff; }
.card-link {
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 8px; }

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 0 0;
}
.page-prev, .page-next {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.page-prev:hover, .page-next:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.page-info {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

/* ========== 详情页布局 ========== */
.detail-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding-top: 28px;
  align-items: start;
}
/* 面包屑跨越两列 */
.detail-page .breadcrumb {
  grid-column: 1 / -1;
}

/* 文章主体 */
.detail-article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}
.detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--brand-lighter);
}
.detail-header h1 {
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.detail-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-gray);
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.detail-date, .detail-source, .detail-grade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-date::before { content: '📅'; font-size: 13px; }
.detail-source::before { content: '📰'; font-size: 13px; }
.detail-grade::before { content: '🎯'; font-size: 13px; }
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 文章内容区 */
.detail-body { line-height: 1.9; }
.detail-section {
  margin-bottom: 36px;
}
.detail-section:last-child { margin-bottom: 0; }
.detail-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding: 0 0 0 16px;
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}
.detail-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  text-align: justify;
}

/* 素材列表 */
.materials-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.material-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--brand-lighter);
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: all var(--transition);
}
.material-item:hover { transform: translateX(4px); }
.material-type {
  flex-shrink: 0;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  height: fit-content;
}
.material-fact { background: #E3F2FD; color: #1565C0; }
.material-item:has(.material-fact) { border-left-color: #1565C0; }
.material-quote { background: #FFF3E0; color: #E65100; }
.material-item:has(.material-quote) { border-left-color: #E65100; }
.material-example { background: #E8F5E9; color: #2E7D32; }
.material-item:has(.material-example) { border-left-color: #2E7D32; }
.material-data { background: #F3E5F5; color: #7B1FA2; }
.material-item:has(.material-data) { border-left-color: #7B1FA2; }
.material-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  flex: 1;
}

/* 写作角度 */
.angles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.angle-item {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--bg-alt), #fff);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.angle-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: #FFD4A8;
}
.angle-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}
.angle-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 参考题目 */
.ref-topics-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ref-topics-list li {
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  background: var(--brand-lighter);
  border-radius: 10px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.ref-topics-list li:hover {
  border-left-color: var(--brand);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ref-topics-list li::before { content: '📝 '; margin-right: 4px; }

/* 真题题目 */
.exam-question {
  padding: 24px 28px;
  background: linear-gradient(135deg, #F8F4FF, #EDE7FF);
  border-radius: 12px;
  border-left: 5px solid var(--purple);
  font-size: 15px;
  color: var(--text);
  line-height: 2;
  white-space: pre-line;
}

/* 满分范文 */
.fullscore-essay {
  padding: 24px 28px;
  background: linear-gradient(135deg, #FFF8E0, #FFF3CD);
  border-radius: 12px;
  border: 1px solid #FFE082;
}
.fullscore-essay h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fullscore-essay h3::before { content: '⭐'; }
.essay-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
  font-style: italic;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--gold);
}
.essay-highlights { margin-top: 16px; }
.essay-highlights h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.essay-highlights ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.essay-highlights li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0 6px 22px;
  position: relative;
}
.essay-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: 700;
}

/* 真题分组 */
.exam-group {
  margin-bottom: 40px;
}
.exam-group:last-child { margin-bottom: 0; }
.exam-group-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding: 0 0 0 16px;
  border-left: 4px solid var(--purple);
  display: flex;
  align-items: center;
  gap: 10px;
}
.exam-group-title::before { content: '📝'; font-size: 22px; }

/* ========== 侧边栏 ========== */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}
.sidebar-card {
  padding: 24px;
  background: linear-gradient(135deg, var(--brand-lighter), #fff);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.sidebar-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-card h3::before { content: '💡'; font-size: 16px; }
.sidebar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.sidebar-card a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.sidebar-card a:hover { color: var(--brand-dark); }

/* ========== 年级网格（同步辅导） ========== */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 0 40px;
}
.tutor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tutor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tutor-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: #FFD4A8;
}
.tutor-card:hover::before { opacity: 1; }
.tutor-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.3s ease;
}
.tutor-card:hover .tutor-icon { transform: scale(1.15); }
.tutor-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.tutor-card p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

/* ========== 单元列表 ========== */
.unit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 40px;
}
.unit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  text-decoration: none;
  color: inherit;
}
.unit-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-color: #e8e0d8;
}
.unit-number {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 6px 16px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255,140,66,0.3);
}
.unit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.unit-card p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 300px;
}

/* ========== 好词好句标签 ========== */
.words-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== 范文片段 ========== */
.example-text {
  white-space: pre-wrap;
  font-style: italic;
  padding: 16px 20px;
  background: var(--brand-lighter);
  border-radius: 10px;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.9;
}

/* ========== 返回导航 ========== */
.back-nav {
  padding: 0 0 32px;
}
.back-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 0;
  transition: gap var(--transition);
}
.back-nav a:hover { gap: 10px; }

/* ========== 站点页脚 ========== */
.site-footer {
  background: linear-gradient(180deg, #2B2520 0%, #1f1a16 100%);
  color: #b8b0a8;
  padding: 64px 28px 0;
  margin-top: 0;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3a3530;
}
.footer-info h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 800;
}
.footer-info p {
  font-size: 13px;
  color: #9a928a;
  line-height: 1.7;
}
.footer-tagline {
  color: var(--brand) !important;
  font-weight: 600;
  margin-top: 4px;
}
.site-footer .footer-links {
  display: flex;
  gap: 56px;
}
.footer-col h4 {
  font-size: 14px;
  color: #e0d8d0;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #9a928a;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition);
  line-height: 1.4;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  padding: 24px 0;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: #6a625a;
}
.footer-bottom-links a {
  font-size: 13px;
  color: #6a625a;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--brand); }
.footer-beian-sep {
  font-size: 13px;
  color: #4a4540;
  margin: 0 8px;
  user-select: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .detail-page {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .grade-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; height: 56px; }
  .logo { font-size: 18px; }
  .logo::before { font-size: 20px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 6px 12px; font-size: 13px; }

  .page-content { padding: 0 20px 60px; }
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero-desc { font-size: 15px; }

  .content-card { padding: 22px 20px; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card-title { font-size: 18px; }
  .card-footer { flex-direction: column; gap: 12px; align-items: flex-start; }

  .detail-article { padding: 24px 20px; }
  .detail-header h1 { font-size: 24px; }
  .detail-meta { flex-direction: column; gap: 8px; }
  .material-item { flex-direction: column; gap: 10px; }

  .grade-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tutor-card { padding: 24px 16px; }

  .unit-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .unit-card p { max-width: none; }

  .detail-sidebar { grid-template-columns: 1fr; }

  .site-footer .footer-inner { flex-direction: column; gap: 32px; }
  .site-footer .footer-links { gap: 32px; flex-wrap: wrap; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 24px; }
  .grade-grid { grid-template-columns: 1fr; }

  .main-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav::-webkit-scrollbar { display: none; }

  .pagination { gap: 12px; }
  .page-prev, .page-next { padding: 8px 16px; font-size: 13px; }
}

/* ========== 打印样式 ========== */
@media print {
  .site-header, .site-footer, .detail-sidebar, .breadcrumb { display: none; }
  .detail-article { box-shadow: none; border: none; }
  body { background: #fff; color: #000; }
}