/* ============================================
   彩民互动社区 - 主样式表
   配色：暖阳金 #FFD700 / 象牙白 #FFFFF0 / 幸运红 #FF4500
   字体：ZCOOL KuaiLe (标题) / PingFang SC (正文)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

:root {
  --primary-gold: #FFD700;
  --bg-ivory: #FFFFF0;
  --accent-red: #FF4500;
  --text-dark: #2D2D2D;
  --text-gray: #666666;
  --text-light: #999999;
  --border-color: #E8E0D0;
  --card-bg: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ZCOOL KuaiLe', 'PingFang SC', sans-serif;
  font-weight: normal;
  line-height: 1.4;
  color: var(--text-dark);
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== 导航栏 ========== */
.site-nav {
  background: linear-gradient(135deg, #2D2D2D 0%, #1a1a2e 100%);
  padding: 0;
  position: relative;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 64px;
}

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

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-logo span {
  color: var(--primary-gold);
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links li a {
  display: block;
  padding: 20px 18px;
  color: #E0E0E0;
  font-size: 0.95rem;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
  background: rgba(255,215,0,0.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-gold);
  transition: all 0.3s;
}

/* ========== 面包屑 ========== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-gray);
}

.breadcrumb a:hover {
  color: var(--accent-red);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-light);
}

/* ========== 主容器 ========== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 模块标题 ========== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--accent-red));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-gray);
  margin-top: 18px;
  font-size: 1rem;
}

/* ========== 模块一：社区英雄榜 ========== */
.hero-board {
  padding: 40px 0;
}

.hero-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-carousel::-webkit-scrollbar {
  height: 6px;
}

.hero-carousel::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 3px;
}

.hero-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 3px;
}

.hero-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hero-card .rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: var(--primary-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.hero-card .rank-badge.top3 {
  background: var(--accent-red);
}

.hero-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--primary-gold);
  object-fit: cover;
}

.hero-card .username {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
}

.hero-card .level-badge {
  display: inline-block;
  padding: 2px 12px;
  background: linear-gradient(135deg, var(--primary-gold), #FFA500);
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
}

.hero-card .points {
  margin-top: 8px;
  color: var(--text-gray);
  font-size: 0.85rem;
}

/* ========== 模块二：热门话题 ========== */
.trending-topics {
  padding: 40px 0;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.topic-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.topic-item .topic-index {
  flex: 0 0 40px;
  height: 40px;
  background: var(--primary-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.topic-item:nth-child(-n+3) .topic-index {
  background: var(--accent-red);
}

.topic-item .topic-content {
  flex: 1;
  min-width: 0;
}

.topic-item .topic-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-item .topic-title a {
  color: var(--text-dark);
}

.topic-item .topic-title a:hover {
  color: var(--accent-red);
}

.topic-item .topic-meta {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topic-item .topic-reply {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.topic-item .topic-stats {
  flex: 0 0 auto;
  text-align: center;
}

.topic-item .topic-stats .count {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-red);
}

.topic-item .topic-stats .label {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ========== 模块三：直播日历 ========== */
.live-calendar {
  padding: 40px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.calendar-day-header {
  text-align: center;
  font-weight: bold;
  color: var(--text-gray);
  padding: 10px 0;
  font-size: 0.9rem;
}

.calendar-day {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.calendar-day:hover {
  box-shadow: var(--shadow-md);
}

.calendar-day .day-number {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.calendar-day.today .day-number {
  color: var(--accent-red);
}

.calendar-event {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,69,0,0.1));
  border-left: 3px solid var(--primary-gold);
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.calendar-event .event-time {
  color: var(--accent-red);
  font-weight: bold;
}

.calendar-event .event-host {
  color: var(--text-gray);
}

.btn-remind {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 20px;
  font-size: 0.7rem;
  margin-top: 4px;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.btn-remind:hover {
  background: #E03E00;
  color: #fff;
}

/* ========== 模块四：新手村指南 ========== */
.newbie-guide {
  padding: 40px 0;
}

.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step-item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 30px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-indicator {
  flex: 0 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.5s;
  z-index: 2;
}

.step-item.active .step-circle,
.step-item.completed .step-circle {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-red));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

.step-line {
  flex: 1;
  width: 3px;
  background: var(--border-color);
  margin-top: 4px;
}

.step-item.completed .step-line {
  background: var(--primary-gold);
}

.step-content {
  flex: 1;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.step-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--primary-gold);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.step-btn:hover {
  background: var(--accent-red);
  color: #fff;
  transform: scale(1.05);
}

/* ========== 模块五：幸运晒单墙 ========== */
.lucky-wall {
  padding: 40px 0;
}

.masonry-grid {
  columns: 3;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.masonry-item img {
  width: 100%;
  display: block;
}

.masonry-item .item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 16px 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.masonry-item:hover .item-overlay {
  opacity: 1;
}

.masonry-item .item-overlay .stats {
  display: flex;
  gap: 16px;
  color: #fff;
  font-size: 0.9rem;
}

.masonry-item .item-info {
  padding: 14px 16px;
}

.masonry-item .item-info .user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.masonry-item .item-info .item-desc {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ========== 模块六：悬赏问答 ========== */
.qa-bounty {
  padding: 40px 0 60px;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qa-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}

.qa-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.qa-bounty-badge {
  flex: 0 0 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-gold), #FFA500);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.qa-bounty-badge .amount {
  font-size: 1.4rem;
  font-weight: bold;
  font-family: 'ZCOOL KuaiLe', sans-serif;
}

.qa-bounty-badge .label {
  font-size: 0.7rem;
}

.qa-content {
  flex: 1;
}

.qa-content .qa-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.qa-content .qa-title a {
  color: var(--text-dark);
}

.qa-content .qa-title a:hover {
  color: var(--accent-red);
}

.qa-content .qa-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.qa-content .qa-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.qa-answer-count {
  flex: 0 0 auto;
  text-align: center;
  padding: 10px;
}

.qa-answer-count .count {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-red);
}

.qa-answer-count .label {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ========== 页脚 ========== */
.site-footer {
  background: linear-gradient(135deg, #2D2D2D 0%, #1a1a2e 100%);
  color: #ccc;
  padding: 50px 0 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--primary-gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-family: 'ZCOOL KuaiLe', sans-serif;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-gold);
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #999;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: all 0.3s;
  font-size: 0.85rem;
}

.footer-social a:hover {
  background: var(--primary-gold);
  color: #fff;
}

.footer-disclaimer {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.8;
}

.footer-copyright {
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ========== 内页通用 ========== */
.page-hero {
  background: linear-gradient(135deg, #2D2D2D 0%, #1a1a2e 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 12px;
}

.page-hero p {
  color: #ccc;
  font-size: 1rem;
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-container h2 {
  font-size: 1.6rem;
  margin: 30px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-gold);
}

.article-container h3 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: var(--accent-red);
}

.article-container p {
  margin-bottom: 16px;
  text-indent: 2em;
}

.article-container .article-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.article-tags .tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,215,0,0.15);
  color: var(--text-dark);
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,215,0,0.3);
}

/* ========== 评论区 ========== */
.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

.comments-section h3 {
  border: none;
  margin-bottom: 20px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.comment-item .comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-item .comment-body {
  flex: 1;
}

.comment-item .comment-user {
  font-weight: 600;
  margin-bottom: 4px;
}

.comment-item .comment-time {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.comment-item .comment-text {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.comment-form {
  margin-top: 24px;
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.95rem;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
}

.btn-submit {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 28px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: #E03E00;
  transform: scale(1.05);
}

/* ========== 排行榜 ========== */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.leaderboard-table th {
  background: linear-gradient(135deg, var(--primary-gold), #FFA500);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: 'ZCOOL KuaiLe', sans-serif;
}

.leaderboard-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tr:hover {
  background: rgba(255,215,0,0.05);
}

/* ========== 视频播放器 ========== */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
}

.video-container .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #1a1a2e, #2D2D2D);
}

.play-btn {
  width: 72px;
  height: 72px;
  background: rgba(255,69,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* ========== 时间线 ========== */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-gold);
}

.timeline-item {
  position: relative;
  padding: 16px 0 24px 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 3px solid var(--bg-ivory);
}

.timeline-item .time-stamp {
  font-weight: bold;
  color: var(--accent-red);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.timeline-item .time-content {
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* ========== APP下载页 ========== */
.app-download-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2D2D2D 50%, #1a1a2e 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.app-feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.app-feature-card:hover {
  transform: translateY(-5px);
}

.app-feature-card .feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.download-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.download-btn.ios {
  background: #000;
  color: #fff;
}

.download-btn.android {
  background: var(--accent-red);
  color: #fff;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ========== 呼吸灯动画 ========== */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 5px rgba(255,69,0,0.3); }
  50% { box-shadow: 0 0 20px rgba(255,69,0,0.6); }
}

.notification-dot {
  animation: breathe 2s ease-in-out infinite;
}

/* ========== 爱心粒子 ========== */
@keyframes heartBurst {
  0% { transform: scale(0) translateY(0); opacity: 1; }
  50% { transform: scale(1.2) translateY(-20px); opacity: 0.8; }
  100% { transform: scale(0.5) translateY(-40px); opacity: 0; }
}

.heart-particle {
  position: absolute;
  color: var(--accent-red);
  font-size: 1rem;
  pointer-events: none;
  animation: heartBurst 0.8s ease-out forwards;
}

/* ========== 卡片滑动 ========== */
@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

/* ========== 淡入动画 ========== */
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ========== 点赞按钮 ========== */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-gray);
  transition: all 0.3s;
  position: relative;
}

.like-btn:hover,
.like-btn.liked {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(255,69,0,0.05);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .masonry-grid {
    columns: 2;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #2D2D2D;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 14px 24px;
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-day-header {
    display: none;
  }

  .masonry-grid {
    columns: 1;
  }

  .topic-item {
    flex-direction: column;
    gap: 10px;
  }

  .topic-item .topic-stats {
    align-self: flex-start;
  }

  .qa-item {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-card {
    flex: 0 0 160px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .app-features {
    grid-template-columns: 1fr;
  }

  .download-btns {
    flex-direction: column;
    align-items: center;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-indicator {
    flex-direction: row;
    gap: 12px;
  }

  .step-line {
    height: 3px;
    width: auto;
    flex: 1;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .hero-carousel {
    gap: 12px;
  }

  .hero-card {
    flex: 0 0 140px;
    padding: 16px 12px;
  }

  .hero-card .avatar {
    width: 56px;
    height: 56px;
  }
}
