* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰 */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.bg-circle-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.bg-circle-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

.bg-circle-4 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 25%;
  animation-delay: 1s;
}

.bg-star {
  position: absolute;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  animation: twinkle 3s ease-in-out infinite;
}

.bg-star-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0.5s;
}

.bg-star-2 {
  top: 70%;
  right: 30%;
  animation-delay: 1.5s;
}

.bg-star-3 {
  bottom: 30%;
  left: 70%;
  animation-delay: 2.5s;
}

.bg-star-4 {
  top: 40%;
  left: 80%;
  animation-delay: 0.8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* 头部导航 */
.header {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo h1 {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu li {
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(-2px);
}

.main {
  flex: 1;
  padding: 2rem 0;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* 首页样式 */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.intro-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1rem;
}

.intro-text {
  flex: 1;
}

.intro-subtitle {
  display: block;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-weight: 500;
}

.intro-title {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  max-width: 600px;
}

.intro-decoration {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bagua-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 20s linear infinite;
}

.bagua-svg {
  width: 140px;
  height: 140px;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 首页今日宜忌样式 */
.home-fortune-section {
  margin-bottom: 3rem;
}

.fortune-header {
  text-align: center;
  margin-bottom: 2rem;
}

.fortune-title {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.fortune-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.fortune-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 日期卡片 */
.date-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.date-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

.date-number {
  font-size: 3rem;
  font-weight: 700;
  color: #6366f1;
  line-height: 1;
}

.date-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-gregorian {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.date-lunar {
  color: #6b7280;
  font-size: 0.85rem;
  text-align: center;
}

/* 宜忌卡片 */
.fortune-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fortune-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fortune-card-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yi-header {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.ji-header {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.fortune-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

.yi-icon {
  background: rgba(255, 255, 255, 0.2);
}

.ji-icon {
  background: rgba(255, 255, 255, 0.2);
}

.fortune-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.fortune-items {
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fortune-item {
  background: #f8fafc;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* 今日运势 */
.daily-luck {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.luck-header h3 {
  color: #374151;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.luck-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.luck-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  background: #f8fafc;
  border-radius: 10px;
}

.luck-label {
  font-weight: 500;
  color: #374151;
  min-width: 50px;
  font-size: 0.9rem;
}

.luck-stars {
  display: flex;
  gap: 0.2rem;
}

.star {
  color: #d1d5db;
  font-size: 1rem;
}

.star.active {
  color: #fbbf24;
}

.luck-desc {
  color: #6b7280;
  font-size: 0.8rem;
  flex: 1;
}

/* 功能表单区域 */
.function-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.function-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.function-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.function-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.function-icon {
  font-size: 2rem;
}

.function-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.function-content {
  padding: 2rem;
}

/* 表单样式 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.label-icon {
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

/* 日期选择器容器 */
.date-picker-container {
  position: relative;
  width: 100%;
}

.date-picker-input {
  padding-right: 3rem;
  cursor: pointer;
}

.date-picker-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
  color: #6b7280;
}

/* 性别选择器 */
.gender-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gender-selector input[type="radio"] {
  display: none;
}

.gender-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.gender-card:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

.gender-selector input[type="radio"]:checked + .gender-card {
  border-color: #6366f1;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.gender-icon {
  font-size: 2rem;
}

.gender-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* 日期选择器弹窗 */
.date-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
}

.date-picker-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.date-picker-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.date-picker-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-picker-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.date-picker-body {
  padding: 2rem;
}

.date-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.date-selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-selector-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.date-select {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.date-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.date-preview {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.preview-label {
  color: #6b7280;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.preview-text {
  color: #374151;
  font-weight: 600;
  font-size: 1rem;
}

.date-picker-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.date-picker-footer .btn-primary {
  width: auto;
}

/* 每日一言 */
.daily-quote {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.quote-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.quote-text {
  flex: 1;
}

.quote-main {
  font-size: 1.1rem;
  color: white;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.quote-author {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* 结果页面样式 */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.result-page {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.result-header {
  text-align: center;
  margin-bottom: 3rem;
}

.result-header h1 {
  font-size: 2.2rem;
  color: #374151;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.result-subtitle {
  color: #6b7280;
  font-size: 1rem;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 基本信息卡片 */
.info-card {
  background: #f8fafc;
  border-radius: 15px;
  padding: 2rem;
}

.info-card h3 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.info-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-label {
  color: #6b7280;
  font-weight: 500;
}

.info-value {
  color: #374151;
  font-weight: 600;
}

/* 运势预测结果样式 */
.fortune-overview {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 20px;
  color: white;
}

.fortune-overview h3 {
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

.fortune-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.score-circle {
  width: 120px;
  height: 120px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 2.5rem;
  font-weight: 700;
}

.score-text {
  font-size: 1rem;
  opacity: 0.9;
}

.score-desc p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 详细运势 */
.fortune-details,
.suggestions {
  background: #f8fafc;
  border-radius: 15px;
  padding: 2rem;
}

.fortune-details h3,
.suggestions h3 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.fortune-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.fortune-detail-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.item-icon {
  font-size: 1.5rem;
}

.item-title {
  font-weight: 600;
  color: #374151;
  flex: 1;
}

.item-score {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6366f1;
}

.item-desc {
  color: #6b7280;
  line-height: 1.6;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suggestion-item {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #6366f1;
  color: #374151;
  line-height: 1.6;
}

/* 八字分析结果样式 */
.bazi-chart {
  background: #f8fafc;
  border-radius: 15px;
  padding: 2rem;
}

.bazi-chart h3 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  text-align: center;
}

.bazi-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.bazi-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
}

.bazi-label {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bazi-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 五行分析 */
.wuxing-analysis {
  background: #f8fafc;
  border-radius: 15px;
  padding: 2rem;
}

.wuxing-analysis h3 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.wuxing-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wuxing-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wuxing-name {
  min-width: 40px;
  font-weight: 600;
  color: #374151;
}

.wuxing-bar {
  flex: 1;
  height: 20px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.wuxing-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.wuxing-fill.wood { background: #10b981; }
.wuxing-fill.fire { background: #ef4444; }
.wuxing-fill.earth { background: #f59e0b; }
.wuxing-fill.metal { background: #6b7280; }
.wuxing-fill.water { background: #3b82f6; }

.wuxing-percent {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: #374151;
}

/* 性格分析 */
.personality-analysis,
.luck-analysis {
  background: #f8fafc;
  border-radius: 15px;
  padding: 2rem;
}

.personality-analysis h3,
.luck-analysis h3 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.personality-content {
  color: #374151;
  line-height: 1.8;
  font-size: 1rem;
}

.luck-periods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.period-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.period-title {
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.period-content {
  color: #374151;
  line-height: 1.6;
}

/* 无结果状态 */
.no-result {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.no-result p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* 页脚 */
.footer {
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  backdrop-filter: blur(10px);
}

.footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .intro-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .intro-title {
    font-size: 2.2rem;
  }

  .function-forms {
    grid-template-columns: 1fr;
  }

  .fortune-cards {
    grid-template-columns: 1fr;
  }

  .date-main {
    flex-direction: column;
    gap: 1rem;
  }

  .date-number {
    font-size: 2.5rem;
  }

  .page-wrapper {
    padding: 1rem;
  }

  .result-page {
    padding: 2rem;
  }

  .luck-content {
    grid-template-columns: 1fr;
  }

  .luck-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .quote-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .fortune-title {
    font-size: 1.6rem;
  }

  .home-fortune-section {
    margin-bottom: 2rem;
  }

  .fortune-score {
    flex-direction: column;
    gap: 1rem;
  }

  .fortune-items {
    grid-template-columns: 1fr;
  }

  .info-items {
    grid-template-columns: 1fr;
  }

  .bazi-row {
    grid-template-columns: 60px repeat(4, 1fr);
    font-size: 0.9rem;
  }

  .bazi-label,
  .bazi-item {
    padding: 0.75rem 0.5rem;
  }

  .date-picker-content {
    width: 95%;
    margin: 1rem;
  }

  .date-selectors {
    grid-template-columns: repeat(2, 1fr);
  }

  .date-picker-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }

  .result-header h1 {
    font-size: 1.8rem;
  }

  .score-circle {
    width: 100px;
    height: 100px;
  }

  .score-number {
    font-size: 2rem;
  }

  .function-content {
    padding: 1.5rem;
  }

  .date-card {
    padding: 1rem;
  }

  .daily-luck {
    padding: 1rem;
  }

  .fortune-items {
    padding: 1rem;
  }

  .bazi-row {
    grid-template-columns: 50px repeat(4, 1fr);
    font-size: 0.8rem;
  }

  .bazi-label,
  .bazi-item {
    padding: 0.5rem 0.25rem;
  }

  .date-selectors {
    grid-template-columns: 1fr;
  }

  .date-picker-body {
    padding: 1rem;
  }

  .date-picker-header {
    padding: 1rem 1.5rem;
  }
}