/* 自定义工具类 */
.content-auto {
  content-visibility: auto;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.transition-smooth {
  transition: all 0.3s ease-in-out;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.card-shadow {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-bg {
  background: linear-gradient(135deg, rgba(255,140,0,0.1) 0%, rgba(255,99,71,0.1) 100%);
}

/* 全局样式 */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #333333;
  background-color: #F8F9FA;
}

/* 导航栏样式 */
nav#navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav#navbar a {
  transition: all 0.3s ease-in-out;
}

nav#navbar a:hover:not(.bg-primary) {
  color: #FF8C00;
}

/* 按钮样式 */
.btn-primary {
  background-color: #FF8C00;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
  background-color: rgba(255, 140, 0, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* 表单样式 */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #FF8C00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* 页脚样式 */
footer {
  background-color: #333333;
  color: white;
}

footer a {
  color: #a1a1aa;
  transition: all 0.3s ease-in-out;
}

footer a:hover {
  color: #FF8C00;
}

/* 回到顶部按钮 */
#back-to-top {
  background-color: rgba(255, 140, 0, 0.8);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
}

#back-to-top:hover {
  background-color: #FF8C00;
  transform: translateY(-2px);
}

/* 加载动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

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

/* FAQ样式 */
.faq-toggle {
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.faq-toggle:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-content.show {
  max-height: 20rem;
  padding: 0 1.5rem 1rem;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f9fafb;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* 图表容器 */
.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
}

/* 响应式工具类 */
@media (max-width: 640px) {
  .sm\:hidden {
    display: none;
  }
  
  .sm\:flex {
    display: flex;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .md\:hidden {
    display: none;
  }
  
  .md\:flex {
    display: flex;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .lg\:hidden {
    display: none;
  }
  
  .lg\:flex {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .xl\:hidden {
    display: none;
  }
  
  .xl\:flex {
    display: flex;
  }
}