/* 节日倒计时网站 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #f7f4ee; color: #3a3226; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 顶部 */
.top { background: linear-gradient(135deg, #c62828 0%, #e53935 60%, #ff7043 100%); color: #fff; padding: 14px 0; box-shadow: 0 2px 10px rgba(198,40,40,.25); }
.top-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.logo:hover { opacity: .9; }
.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a { padding: 6px 14px; border-radius: 20px; font-size: 15px; }
.nav a:hover { background: rgba(255,255,255,.15); }
.nav a.on { background: #fff; color: #c62828; font-weight: 600; }
.search { margin-left: auto; display: flex; }
.search input { border: none; border-radius: 20px 0 0 20px; padding: 8px 14px; width: 200px; outline: none; font-size: 14px; }
.search button { border: none; border-radius: 0 20px 20px 0; background: #fff; color: #c62828; padding: 0 16px; cursor: pointer; font-size: 14px; font-weight: 600; }

/* 大倒计时 */
.hero { margin: 26px 0 8px; background: linear-gradient(135deg, #fff7f2 0%, #fff 60%, #fff3e8 100%); border: 1px solid #f5dcc8; border-radius: 18px; text-align: center; padding: 34px 20px 30px; box-shadow: 0 6px 24px rgba(198,40,40,.08); }
.hero-label { font-size: 14px; color: #b07a5a; letter-spacing: 4px; }
.hero-name { font-size: 44px; font-weight: 800; margin: 8px 0 4px; color: #c62828; }
.hero-name a:hover { text-decoration: underline; }
.hero-date { font-size: 15px; color: #8a6d52; margin-bottom: 18px; }
.hero-timer { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.t-days { font-size: 64px; font-weight: 800; color: #c62828; line-height: 1; }
.t-box { font-size: 34px; font-weight: 700; color: #c62828; background: #fff0e6; border-radius: 10px; padding: 6px 12px; min-width: 64px; }
.t-unit { font-size: 14px; color: #a0714f; margin: 0 2px; }
.hero-cat { margin-top: 16px; font-size: 13px; color: #b08a6a; }

/* 分类 */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.cats a { background: #fff; border: 1px solid #eee2d4; border-radius: 20px; padding: 6px 14px; font-size: 14px; color: #6b5639; }
.cats a:hover { border-color: #e5a38a; color: #c62828; }
.cats a.on { background: #c62828; border-color: #c62828; color: #fff; font-weight: 600; }
.cats em { font-style: normal; font-size: 12px; opacity: .7; margin-left: 4px; }

.list-head { margin: 18px 0 12px; }
.list-head h2 { font-size: 20px; color: #4a3a28; border-left: 4px solid #c62828; padding-left: 10px; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eee2d4; border-radius: 14px; padding: 14px 16px; transition: all .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(198,40,40,.12); border-color: #f0c4a8; }
.card-date { font-size: 15px; font-weight: 700; color: #c62828; background: #fff1e8; border-radius: 10px; padding: 8px 6px; min-width: 52px; text-align: center; }
.card-main { flex: 1; min-width: 0; }
.card-name { font-size: 17px; font-weight: 600; color: #3a3226; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 12px; color: #a08a6e; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-days { font-size: 14px; font-weight: 700; color: #e56a3a; white-space: nowrap; }

/* 月份分组 */
.month-block { margin: 20px 0; }
.month-title { font-size: 18px; color: #4a3a28; margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.month-title::before { content: ""; width: 8px; height: 22px; background: #e56a3a; border-radius: 4px; }

/* 详情页 */
.detail { background: #fff; border: 1px solid #eee2d4; border-radius: 18px; padding: 30px; margin: 24px 0; box-shadow: 0 6px 24px rgba(198,40,40,.06); }
.detail-head { text-align: center; border-bottom: 1px dashed #ead9c6; padding-bottom: 22px; }
.detail-head h1 { font-size: 38px; color: #c62828; }
.detail-tags { margin-top: 10px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tag { background: #fdf1e8; color: #b05b35; border: 1px solid #f0cdb4; border-radius: 20px; padding: 4px 12px; font-size: 13px; }
.tag.lunar { background: #e8f5ee; color: #2e7d56; border-color: #c4e3d2; }

/* 目标站风格：标题 + 倒计时 */
.djs-date { margin-top: 18px; font-size: 16px; color: #4a3a28; }
.djs-date b { color: #c62828; font-size: 18px; }
.djs-tip { margin-top: 8px; font-size: 15px; color: #757584; }
#si_wang_sheng_yu_shi_jian { font-size: 22px; }
.countdown-container { display: flex; justify-content: center; margin-top: 18px; }
.countdown-container .time { display: flex; font-size: 1.2em; flex-direction: column; margin: 0 14px; text-align: center; font-family: 'Muli', 'Helvetica Neue', Arial, sans-serif; }
.countdown-container .time h1 { margin: 0; color: #c00; font-size: 58px; line-height: 1.15; font-weight: 800; }
.countdown-container .time small { color: #757584; text-align: center; font-size: 15px; margin-top: 4px; }
.sync-tip { margin-top: 14px; font-size: 12px; color: #a08a6e; }

/* 年份导航条 */
.detail-years { margin-top: 24px; }
.detail-years h2, .detail-dates h2 { font-size: 18px; color: #4a3a28; border-left: 4px solid #e56a3a; padding-left: 10px; margin-bottom: 12px; }
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.year-nav a { padding: 6px 14px; border-radius: 20px; border: 1px solid #f0cdb4; color: #b05b35; font-size: 14px; background: #fff; transition: all .15s; }
.year-nav a:hover { border-color: #c62828; color: #c62828; }
.year-nav a.on { background: #c62828; color: #fff; border-color: #c62828; font-weight: 600; }

.detail-desc, .detail-dates { margin-top: 24px; }
.detail-desc p { font-size: 15px; line-height: 1.9; color: #5a4a38; }
.detail-dates table { width: 100%; border-collapse: collapse; font-size: 14px; }
.detail-dates th, .detail-dates td { border: 1px solid #eee2d4; padding: 10px 12px; text-align: center; }
.detail-dates th { background: #fdf1e8; color: #b05b35; font-weight: 600; }
.detail-dates tr:hover td { background: #fff8f3; }
.detail-dates td a { color: #6b5639; }
.detail-dates td a:hover { color: #c62828; text-decoration: underline; }
.detail-dates td a.cur-year { color: #c62828; font-weight: 700; }

.empty { text-align: center; padding: 60px 20px; color: #a08a6e; font-size: 16px; }
.empty a { color: #c62828; text-decoration: underline; }

/* 底部 */
.foot { margin-top: 40px; background: #3a2f22; color: #cbbba5; padding: 22px 0; text-align: center; font-size: 13px; }

@media (max-width: 640px) {
  .search { width: 100%; margin: 4px 0 0; }
  .search input { flex: 1; width: auto; }
  .hero-name { font-size: 32px; }
  .t-days { font-size: 46px; }
  .t-box { font-size: 24px; min-width: 52px; padding: 5px 8px; }
}
