* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-color: #333;
  --light-bg: #f8f9ff;
  --white: #ffffff;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(102, 126, 234, 0.3);
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--light-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 0.8rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo 优化 */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fff 0%, #f0f0ff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-icon .star {
  font-size: 28px;
  animation: starPulse 2s ease-in-out infinite;
}

.logo-icon .star-small {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 14px;
  animation: twinkle 1.5s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(180deg); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.logo-title {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
}

.logo-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 导航优化 */
.nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-icon {
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-link:hover .nav-icon {
  transform: scale(1.2);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.admin-link {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 40px 60px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-btn {
  padding: 15px 40px;
  font-size: 1.2rem;
  background: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  animation: fadeInUp 1s ease 0.6s both;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 星座区域 */
.constellations-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.constellations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.constellation-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.constellation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.constellation-card:hover::before {
  transform: scaleX(1);
}

.constellation-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.constellation-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s;
}

.constellation-card:hover .constellation-icon {
  transform: scale(1.15) rotate(5deg);
}

.constellation-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.constellation-name-en {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.constellation-date {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.constellation-element {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  margin: 0 auto;
  display: block;
  width: fit-content;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s;
}

.constellation-card:hover .constellation-element {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* 更新区域 */
.updates-section {
  background: var(--white);
  padding: 4rem 0;
}

.updates-container {
  max-width: 800px;
  margin: 0 auto;
}

.update-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s;
}

.update-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.update-title {
  font-weight: 700;
  color: var(--primary-color);
}

.update-time {
  color: #999;
  font-size: 0.85rem;
}

.update-content {
  color: #666;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 15px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #000;
}

.modal-body {
  padding: 2rem;
  clear: both;
}

.detail-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--light-bg);
}

.detail-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.detail-name {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.info-label {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.info-value {
  color: var(--text-color);
  font-weight: 600;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section p {
  line-height: 1.8;
  color: #666;
}

.fortune-grid {
  display: grid;
  gap: 1.5rem;
}

.fortune-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.fortune-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

/* 页脚 */
.footer {
  background: #2c3e50;
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* 加载动画 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  text-align: center;
}

.spinner-circle {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* 骨架屏加载 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}

.empty-state-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state-subtext {
  font-size: 1rem;
  opacity: 0.7;
}

/* 提示信息 */
.toast {
  position: fixed;
  top: 100px;
  right: 30px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9998;
  transform: translateX(400px);
  transition: transform 0.3s;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid #4caf50;
}

.toast-error {
  border-left: 4px solid #f44336;
}

.toast-info {
  border-left: 4px solid #2196f3;
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-message {
  flex: 1;
  font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem 1.5rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }

  .constellations-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .constellation-card {
    padding: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .detail-info {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* 滚动条样式 */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ==================== 新功能样式 ==================== */

/* 通用样式 */
.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* 星座配对样式 */
.match-section {
  padding: 4rem 0;
  background: var(--white);
}

.match-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.match-select {
  padding: 12px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.3s;
}

.match-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.match-icon {
  font-size: 2rem;
}

.btn-match {
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-match:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.match-result {
  max-width: 800px;
  margin: 2rem auto;
}

.match-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.match-card h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.match-score {
  text-align: center;
  margin-bottom: 2rem;
}

.score-label {
  color: #999;
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-bar {
  width: 100%;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.score-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 1s ease;
}

.match-analysis, .match-suggestion {
  margin-top: 2rem;
}

.match-analysis h4, .match-suggestion h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.match-analysis p, .match-suggestion p {
  line-height: 1.8;
  color: #666;
}

/* 本周运势样式 */
.weekly-section {
  padding: 4rem 0;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.weekly-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.weekly-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.weekly-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-bg);
}

.weekly-item {
  margin: 0.8rem 0;
  line-height: 1.6;
}

.weekly-label {
  font-weight: 600;
  color: var(--primary-color);
}

.lucky-day {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* 星座百科样式 */
.articles-section {
  padding: 4rem 0;
  background: var(--white);
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 4px solid var(--primary-color);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.article-category {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.article-title {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.article-preview {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-time {
  color: #999;
  font-size: 0.9rem;
}

.article-detail {
  padding: 1rem;
}

.article-detail h2 {
  color: var(--primary-color);
  margin: 1rem 0;
}

.article-content {
  line-height: 2;
  color: #666;
  margin-top: 2rem;
}

/* 星座测试样式 */
.quiz-section {
  padding: 4rem 0;
}

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.btn-start-quiz {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-start-quiz:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.quiz-question {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.quiz-progress {
  text-align: center;
  color: #999;
  margin-bottom: 1rem;
}

.quiz-question h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.quiz-options {
  display: grid;
  gap: 1rem;
}

.quiz-option {
  padding: 15px 20px;
  background: var(--light-bg);
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background: var(--white);
  transform: translateX(5px);
}

.quiz-option:active {
  transform: translateX(5px) scale(0.98);
}

.quiz-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quiz-result-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
}

.quiz-result-card h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.quiz-score-big {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.quiz-percentage {
  font-size: 2rem;
  color: #666;
  margin-bottom: 1rem;
}

.quiz-level {
  font-size: 1.5rem;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 8px;
}

.btn-restart-quiz {
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 2rem;
}

.btn-restart-quiz:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* 留言板样式 */
.messages-section {
  padding: 4rem 0;
  background: var(--white);
}

.message-form {
  max-width: 700px;
  margin: 0 auto 3rem;
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
  display: grid;
  gap: 1rem;
}

.msg-input, .msg-select {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
}

.msg-input:focus, .msg-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.msg-textarea {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  min-height: 100px;
  resize: vertical;
  transition: all 0.3s;
}

.msg-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-submit-msg {
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit-msg:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.messages-container {
  max-width: 800px;
  margin: 0 auto;
}

.message-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.message-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.message-user {
  font-weight: 600;
  color: var(--primary-color);
}

.message-constellation {
  background: var(--primary-color);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.message-time {
  color: #999;
  font-size: 0.85rem;
  margin-left: auto;
}

.message-content {
  color: #666;
  line-height: 1.8;
}

.no-messages {
  text-align: center;
  color: #999;
  padding: 3rem;
  font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .nav {
    gap: 0.3rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .nav-link span:last-child {
    display: none;
  }
  
  .nav-icon {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-icon {
    width: 45px;
    height: 45px;
  }
  
  .logo-icon .star {
    font-size: 24px;
  }
  
  .logo-title {
    font-size: 1.2rem;
  }
  
  .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .hero {
    padding: 4rem 0;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .constellations-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .match-selector {
    flex-direction: column;
  }
  
  .match-select, .btn-match {
    width: 100%;
  }
  
  .weekly-grid,
  .articles-container {
    grid-template-columns: 1fr;
  }
  
  .quiz-score-big {
    font-size: 3rem;
  }
  
  .message-time {
    margin-left: 0;
    width: 100%;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .constellations-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-text {
    display: none;
  }
}

