:/* ===== 91香蕉 - 完整样式表 ===== */
:root {
  --primary: #1F4A2C;
  --primary-light: #2D6A4F;
  --primary-dark: #0E2A18;
  --accent: #F5A623;
  --accent-light: #FFD700;
  --bg: #F7F4EF;
  --bg-card: #FFFFFF;
  --bg-soft: #F2EDE6;
  --text-primary: #1F2937;
  --text-secondary: #2D3A4A;
  --text-heading: #0E1E2B;
  --text-link: #0B4F2A;
  --text-footer: #E8E2D8;
  --border-color: #C8BFB4;
  --btn-bg: #1F4A2C;
  --btn-text: #FDFBF7;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-text: #1F2937;
  --banner-overlay: rgba(18, 32, 24, 0.7);
  --faq-bg: #F2EDE6;
  --code-bg: #E9E4DC;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --primary: #2F6B3C;
  --primary-light: #3A7A48;
  --primary-dark: #1A3A20;
  --bg: #121A12;
  --bg-card: #1E2A1E;
  --bg-soft: #1A261A;
  --text-primary: #E5E7EB;
  --text-secondary: #C0C8C8;
  --text-heading: #FFFFFF;
  --text-link: #B1D8B2;
  --text-footer: #D1D5DB;
  --border-color: #3E4E3E;
  --btn-bg: #2F6B3C;
  --btn-text: #F9FBF9;
  --nav-bg: rgba(30, 42, 30, 0.92);
  --nav-text: #F0F4F0;
  --banner-overlay: rgba(0, 0, 0, 0.65);
  --faq-bg: #1A261A;
  --code-bg: #2D3A2D;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  font-size: 1.05rem;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  transition: color 0.2s;
}

p {
  color: var(--text-primary);
  margin-bottom: 1em;
}

a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: var(--text-heading);
}

img, svg {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.8rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s;
  cursor: pointer;
}

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

.logo span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  color: var(--nav-text);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.3s, border-color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--text-heading);
  text-decoration: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(31, 74, 44, 0.15);
  border-color: var(--primary);
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 0.3rem 0.2rem;
  width: 130px;
  outline: none;
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.mode-toggle {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.mode-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.mode-toggle:hover::before {
  width: 200%;
  height: 200%;
}

.mode-toggle:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.mobile-menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-heading);
  transition: transform 0.3s;
}

.mobile-menu-icon:hover {
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
    background: var(--nav-bg);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
  }
  .nav-links.open {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  .mobile-menu-icon {
    display: block;
  }
  .search-box {
    width: 100%;
    margin-top: 0.5rem;
  }
  .search-box input {
    flex: 1;
  }
}

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

/* ===== Hero Banner ===== */
.hero {
  background: linear-gradient(135deg, #1F4A2C 0%, #2D6A4F 50%, #1F4A2C 100%);
  padding: 5rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 350px;
  color: white;
  animation: fadeInUp 0.8s ease;
}

.hero-text h1 {
  font-size: 3.2rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text p {
  color: #F0F8F0;
  font-size: 1.2rem;
  max-width: 600px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  color: white;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s, background-color 0.3s;
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.25);
}

.hero-svg {
  flex: 0 1 260px;
  animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-svg svg {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== 模块标题 ===== */
.section-title {
  margin: 3rem 0 1.5rem;
  border-left: 6px solid var(--primary);
  padding-left: 1rem;
  font-size: 2rem;
  position: relative;
  transition: border-color 0.3s;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 1rem;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-heading);
  transition: color 0.3s;
}

.card p {
  color: var(--text-primary);
  font-size: 0.98rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ===== 文章列表 ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.article-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  transition: background-color 0.3s, padding 0.3s;
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
}

.article-item:hover {
  background: var(--bg-soft);
  padding-left: 1.5rem;
}

.article-item h4 {
  font-size: 1.2rem;
  transition: color 0.3s;
}

.article-item:hover h4 {
  color: var(--primary);
}

.article-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta::before {
  content: '📅';
  font-size: 0.8rem;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--faq-bg);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  transition: box-shadow 0.3s, transform 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.faq-question {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question span {
  transition: transform 0.3s;
  font-size: 1.2rem;
}

.faq-item.active .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 0.8rem;
  color: var(--text-primary);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.3s ease;
}

/* ===== 表格 ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th, .info-table td {
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  text-align: left;
  color: var(--text-primary);
}

.info-table th {
  background: var(--btn-bg);
  color: white;
  font-weight: 600;
  transition: background-color 0.3s;
}

.info-table tr {
  transition: background-color 0.2s;
}

.info-table tbody tr:hover {
  background: var(--bg-soft);
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, #1E2A1E 0%, #142018 100%);
  color: var(--text-footer);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

footer a {
  color: var(--text-footer);
  text-decoration: underline;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-bottom {
  border-top: 1px solid #3A4A3A;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--btn-bg);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.to-top.visible {
  opacity: 0.8;
  visibility: visible;
}

.to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== 其他组件 ===== */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--text-link);
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--btn-bg), var(--primary-light));
  color: white;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--btn-bg), var(--primary-light));
  color: var(--btn-text);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn:hover::after {
  width: 200%;
  height: 200%;
}

.btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ===== 图片占位 ===== */
.svg-placeholder {
  background: linear-gradient(135deg, #DCE8DC, #C5D8C5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: transform 0.3s;
}

.svg-placeholder:hover {
  transform: scale(1.02);
}

/* ===== 暗黑模式适配 ===== */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0F1A0F 0%, #1A3A20 100%);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

[data-theme="dark"] .mode-toggle {
  background: #3A6B46;
}

[data-theme="dark"] .info-table th {
  background: #2F5B3A;
}

[data-theme="dark"] .stat-item {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .card {
  background: var(--bg-card);
}

[data-theme="dark"] .article-item:hover {
  background: var(--bg-soft);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0.5rem 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .hero-svg {
    flex-basis: 180px;
  }
  
  .hero-svg svg {
    width: 180px;
    height: 180px;
  }
  
  .faq-item {
    padding: 0.8rem 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .navbar, .to-top, .mode-toggle, .search-box, .mobile-menu-icon {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
  }
  
  .hero {
    background: white;
    color: black;
    padding: 1rem 0;
  }
  
  .hero-text h1, .hero-text p {
    color: black;
    text-shadow: none;
  }
  
  .card, .faq-item, .article-item {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== 焦点可见性 ===== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ===== 选中文本样式 ===== */
::selection {
  background: var(--accent);
  color: var(--text-heading);
}

/* ===== 无障碍支持 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 工具类 ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
}