/* ImageTwin 图片查重 - 全新浅绿色主题样式 */

/* ========== 1. 基础变量与重置 ========== */
:root {
  --primary-green: #2d8659;
  --light-green: #e8f5f0;
  --lighter-green: #f4faf8;
  --accent-green: #3aa876;
  --dark-green: #1f5d40;
  --text-dark: #1a1a1a;
  --text-gray: #4a4a4a;
  --text-light: #6b6b6b;
  --border-color: #d1e8df;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(45, 134, 89, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 134, 89, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 134, 89, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--lighter-green);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}



a.btn:hover,
button.btn:hover {
  border-bottom: 2px solid transparent !important;
}

strong {
  color: var(--dark-green);
  font-weight: 600;
}

/* ========== 2. 顶部导航栏 ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.header.hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
}

.logo-link:hover {
  opacity: 0.85;
  border: none;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  padding: 8px 0;
  border: none;
}

.nav-menu a:hover {
  color: var(--primary-green);
  border: none;
}

/* 移动端汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: 0.3s;
}

/* ========== 3. Banner 英雄区 ========== */
.hero-banner {
  background: linear-gradient(135deg, #e8f5f0 0%, #f4faf8 50%, #ffffff 100%);
  padding: 80px 24px 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--primary-green);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 134, 89, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark-green);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 720px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  animation: pulse-btn 2s infinite;
}

.btn-primary:hover {
  background: var(--accent-green);
  color: var(--white);
  border-color: transparent;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-secondary:hover {
  background: var(--light-green);
  color: var(--primary-green);
  border-color: var(--primary-green);
}

@keyframes pulse-btn {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(45, 134, 89, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(45, 134, 89, 0);
  }
}

.trust-badge {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}

/* ========== 4. 容器与栅格系统 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== 5. 卡片组件 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--light-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 12px;
}

.card-text {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ========== 6. 表格样式 ========== */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.data-table thead {
  background: var(--primary-green);
  color: var(--white);
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-weight: 600;
  font-size: 15px;
}

.data-table td {
  font-size: 15px;
  color: var(--text-gray);
}

.data-table tbody tr:hover {
  background: var(--lighter-green);
}

/* ========== 7. 列表样式 ========== */
.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.numbered-list {
  counter-reset: num-counter;
  list-style: none;
  margin: 24px 0;
}

.numbered-list li {
  counter-increment: num-counter;
  padding: 12px 0 12px 48px;
  position: relative;
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

.numbered-list li::before {
  content: counter(num-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 32px;
  height: 32px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* ========== 8. FAQ 手风琴 ========== */
.faq-container {
  max-width: 900px;
  margin: 40px auto;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark-green);
  text-align: left;
  transition: 0.3s;
}

.faq-question:hover {
  background: var(--lighter-green);
}

.faq-question::after {
  content: '+';
  font-size: 28px;
  color: var(--primary-green);
  transition: transform 0.3s;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ========== 9. 底部页脚 ========== */
.footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 60px 24px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--light-green);
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 8px;
  display: block;
  border: none;
}

.footer-section a:hover {
  color: var(--white);
  border: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== 10. 实用工具类 ========== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ========== 11. 回到顶部按钮 ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: var(--shadow-md);
  font-size: 20px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-green);
  transform: translateY(-4px);
}

/* ========== 12. 图片灯箱 ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: var(--light-green);
}

/* ========== 13. 加载动画 ========== */
.loading-spinner {
  border: 3px solid var(--light-green);
  border-top: 3px solid var(--primary-green);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== 14. 额外视觉增强 ========== */
.section {
  scroll-margin-top: 80px;
}

/* 卡片悬停增强 */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(45, 134, 89, 0.2);
}

.card:hover::after {
  opacity: 1;
}

/* 渐入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 数字强调样式 */
.highlight-number {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.1em;
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light-green);
  color: var(--primary-green);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
}

/* 分隔线样式 */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 40px 0;
}

/* 引用块样式 */
blockquote {
  border-left: 4px solid var(--primary-green);
  padding: 16px 24px;
  background: var(--light-green);
  margin: 24px 0;
  font-style: italic;
  color: var(--text-gray);
}

/* 代码样式 */
code {
  background: var(--lighter-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--dark-green);
}

