
/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 全局样式 */
body {
  color: #1D2129;
  background-color: #F5F7FA;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader {
  border: 4px solid rgba(22, 93, 255, 0.2);
  border-top-color: #165DFF;
  border-radius: 50%;
  animation: loader-rotate 1s linear infinite;
}

@keyframes loader-rotate {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* 按钮样式 */
.btn-primary {
  background-color: #1143af;
  color: white;
  padding: 4px 6px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #0F3885;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  transition: background-color 0.3s;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 选项卡样式 */
.tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: #4E5969;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: #165DFF;
  border-bottom-color: #165DFF;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* 头部导航 */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s;
}

.navbar {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.25rem;
  color: #165DFF;
}

.logo span {
  margin-left: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #4E5969;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #165DFF;
}

.mobile-menu-btn {
  display: none;
  color: #4E5969;
  font-size: 1.5rem;
}

.mobile-menu {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  position: absolute;
  width: 100%;
}

.mobile-menu a {
  display: block;
  padding: 8px 0;
  color: #4E5969;
}

.mobile-menu a.active {
  color: #165DFF;
  font-weight: 500;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(135deg, #165DFF 0%, #0F3885 100%);
  color: white;
  padding: 64px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-buttons button {
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 查询区域 */
.search-section {
  background-color: white;
  padding: 64px 0;
}

.search-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 32px;
  max-width: 800px;
  margin: -80px auto 0;
  position: relative;
  z-index: 10;
}

.search-card h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.search-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: #165DFF;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

.search-btn {
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 500;
}

.search-tips {
  background-color: #E8F3FF;
  color: #165DFF;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.search-tips h3 {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.search-tips h3::before {
  content: "💡";
  margin-right: 8px;
}

.popular-searches h3 {
  margin-bottom: 12px;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: #E8F3FF;
  color: #165DFF;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.tag:hover {
  color: #0F3885;
}

/* 结果区域 */
.results-section {
  padding: 60px 0 48px;
  background-color: #F5F7FA;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.results-count {
  color: #4E5969;
}

.results-count span {
  color: #165DFF;
  font-weight: 500;
}

/* 结果表格样式 */
.results-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.results-table th,
.results-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
}

.results-table th {
  background-color: #F5F7FA;
  font-weight: 600;
  color: #4E5969;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table tr:hover {
  background-color: #f9f9f9;
}

.table-actions {
  text-align: right !important;
}

.table-actions button {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-primary {
  background-color: #E8F3FF;
  color: #165DFF;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  gap: 4px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.page-btn:hover {
  border-color: #165DFF;
  color: #165DFF;
}

.page-btn.active {
  background-color: #165DFF;
  color: white;
  border-color: #165DFF;
}

/* 功能特点区域 */
.features-section {
  padding: 64px 0;
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.section-description {
  color: #4E5969;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  border: 1px solid #f1f1f1;
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: #E8F3FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #165DFF;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-description {
  color: #4E5969;
}

/* 使用指南区域 */
.how-it-works {
  padding: 64px 0;
  background-color: #F5F7FA;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  background-color: #165DFF;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-description {
  color: #4E5969;
}

.chart-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.chart-container h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.chart-placeholder {
  height: 256px;
  background-color: #f9f9f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4E5969;
  position: relative;
  overflow: hidden;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  height: 200px;
  width: 100%;
  padding: 0 20px;
  gap: 10px;
}

.chart-bar {
  flex: 1;
  background-color: rgba(22, 93, 255, 0.6);
  border-radius: 4px 4px 0 0;
  position: relative;
}

.chart-bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #4E5969;
  white-space: nowrap;
}

/* 常见问题区域 */
.faq-section {
  padding: 64px 0;
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  background-color: white;
}

.faq-icon {
  color: #165DFF;
  transition: transform 0.3s;
}

.faq-content {
  padding: 0 16px 16px;
  color: #4E5969;
}

/* 用户评价区域 */
.testimonials-section {
  padding: 64px 0;
  background-color: #F5F7FA;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.author-info h4 {
  font-weight: 600;
}

.author-info p {
  color: #4E5969;
  font-size: 0.9rem;
}

.testimonial-rating {
  color: #FFC107;
  margin-bottom: 12px;
}

.testimonial-text {
  color: #4E5969;
}

/* 行动召唤区域 */
.cta-section {
  background: linear-gradient(135deg, #165DFF 0%, #0F3885 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-buttons button {
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
}

/* 页脚 */
footer {
  background-color: #1D2129;
  color: white;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-logo span {
  margin-left: 8px;
}

.footer-column p {
  color: #9CA3AF;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #9CA3AF;
  font-size: 1rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #165DFF;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #9CA3AF;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #165DFF;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #9CA3AF;
}

.footer-contact li::before {
  content: "✉️";
  margin-right: 8px;
  color: #165DFF;
}

.footer-contact li:last-child::before {
  content: "⏰";
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.copyright {
  color: #9CA3AF;
  font-size: 0.9rem;
}

.bottom-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.bottom-links a {
  color: #9CA3AF;
  transition: color 0.3s;
}

.bottom-links a:hover {
  color: #165DFF;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .search-input-group {
    flex-direction: column;
  }
  
  .search-btn {
    width: 100%;
    padding: 12px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .chart-bar-label {
    font-size: 0.7rem;
  }
  
  .tabs {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tab {
    border-bottom: 1px solid #ddd;
    border-left: 3px solid transparent;
  }
  
  .tab.active {
    border-left-color: #165DFF;
    border-bottom-color: #ddd;
  }
  
  /* 响应式表格 */
  .results-table {
    font-size: 0.9rem;
  }
  
  .results-table th,
  .results-table td {
    padding: 12px 8px;
  }
  
  /* 在小屏幕上隐藏部分列，通过详情查看完整信息 */
  @media (max-width: 576px) {
    .results-table th:nth-child(5),
    .results-table td:nth-child(5),
    .results-table th:nth-child(6),
    .results-table td:nth-child(6) {
      display: none;
    }
  }
}


.message-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.message {
  background-color: #333;
  color: #fff;
  padding: 15px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  display: none;
  z-index: 9999;
}