/* 基础工具类 */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.text-white { color: white; }
.text-center { text-align: center; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.text-red-500 { color: rgb(239, 68, 68); }
.text-yellow-300 { color: rgb(253, 224, 71); }
.mb-4 { margin-bottom: 1rem; }
.text-xl { font-size: 1.25rem; }

:root {
  --primary-color: #7e57c2; /* 图片中的主紫色 */
  --secondary-color: #5e35b1; /* 更深的紫色 */
  --accent-color: #b39ddb; /* 较浅的紫色 */
  --text-color: #333333;
  --light-bg: #f7f7ff;
  --card-bg: #ffffff;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.header {
  background: linear-gradient(135deg, #7e57c2, #5e35b1);
  padding: 1rem 0;
  text-align: center;
}

.header h1 {
  margin: 0;
  padding: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header .subtitle {
  color: #f0f0f0;
  font-size: 1rem;
  margin: 0.5rem 0;
}

.header .description {
  color: #f0f0f0;
  font-size: 0.875rem;
  margin: 0.5rem auto;
  max-width: 800px;
  padding: 0 1rem;
}

.nav-link {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 0 0.25rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 搜索区块样式 */
.search-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-title {
  text-align: center;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search-instruction {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  text-align: center;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.2);
  outline: none;
}

.search-placeholder {
  color: #aaa;
  text-align: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0.25rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(94, 53, 177, 0.4);
}

/* 信息卡片样式 */
.info-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card h2 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.info-card p {
  margin: 0.5rem 0;
  color: #555;
}

/* 信息网格样式 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.grid-item {
  background: white;
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grid-item h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* 功能介绍区块 */
.feature-section {
  margin: 2rem 0;
}

.feature-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: #555;
  font-size: 0.9rem;
}

.feature-item .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 随机号码区域 */
.random-numbers {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  max-width: 800px;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .number-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.number-item {
  padding: 0.5rem;
  background: #f7f7ff;
  border-radius: 0.25rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  color: var(--text-color);
  text-decoration: none;
}

.number-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(126, 87, 194, 0.3);
}

/* 使用指南区域 */
.guide-section {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guide-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-section h2 .icon {
  margin-right: 0.5rem;
  color: #ffc107;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.guide-item .check-icon {
  color: #4caf50;
  margin-right: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.guide-item .content h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-color);
}

.guide-item .content p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* 分析方法说明 */
.method-section {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.method-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-section h2 .icon {
  margin-right: 0.5rem;
}

.method-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, #7e57c2, #5e35b1);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 页面底部声明区 */
.disclaimer {
  background: rgba(126, 87, 194, 0.1);
  color: #555;
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

/* 动画类 */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
} 