:root {
  /* 现代配色方案 */
  --primary: #0f141c;
  --primary-light: #2c3440;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary: #1f2530;
  --accent: #55657b;
  --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* 背景与文本 - 使用更丰富的配色 */
  --bg: #f8f9fb;
  --bg-secondary: #f0f2f7;
  --bg-tertiary: #e8ebf0;
  --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 255, 0.88) 100%);
  --bg-card-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 253, 255, 0.95) 100%);
  --bg-warm: linear-gradient(135deg, #fff5f0 0%, #fff9f5 50%, #fef7f0 100%);
  --bg-cool: linear-gradient(135deg, #f0f5ff 0%, #f5f9ff 50%, #fafcff 100%);
  --text: #1d1d1f;
  --text-secondary: #555555;
  --text-muted: #86868b;
  --border: rgba(102, 126, 234, 0.15);
  --border-light: rgba(102, 126, 234, 0.08);
  --border-warm: rgba(245, 87, 108, 0.15);
  
  /* 圆角与间距 */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.18), 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础 */
html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  margin: 0;
  background: linear-gradient(135deg, 
    #f8f9fb 0%, 
    #f0f4f8 25%,
    #eef2f7 50%, 
    #f2f5fa 75%,
    #f8f9fb 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 100px;
  overflow-x: hidden;
}

/* 工具页面 body 样式 - 移除底部 padding，因为工具页面不需要 footer */
body:has(.tool-page-container) {
  padding-bottom: 0;
}

/* 添加动态背景粒子效果 - 增强色彩 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 87, 108, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

body.home-active {
  overflow: hidden;
  padding-bottom: 0;
}

#bg-rotator {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

#bg-rotator .bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#bg-rotator .bg-slide.active {
  opacity: 1;
}

#bg-rotator.no-transition .bg-slide {
  transition: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航 — 所有页面统一使用磨砂玻璃效果 */
.header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(15, 20, 28, 0.06);
  transition: var(--transition);
}

body.home-active .logo,
body.home-active .nav-link,
body.home-active .menu-toggle {
  color: #000000;
}

body.home-active .logo-icon {
  color: #000000;
}

body.home-active .nav-link:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.08);
}

body.home-active .nav-link.active {
  color: #000000;
  background: rgba(0, 0, 0, 0.1);
}

body.home-active .nav-link.active::after {
  background: #000000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
}

.logo-icon {
  color: #000000;
  width: 32px;
  height: 32px;
  transition: var(--transition);
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(5deg);
  }
}
.logo-section:hover .logo-icon {
  transform: scale(1.1) rotate(10deg);
  animation: none;
}

.logo {
  font-size: 1.3em;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}
.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.4s ease;
}
.logo:hover::after {
  width: 100%;
}
.logo:hover {
  color: #000000;
  transform: translateY(-1px);
  opacity: 0.8;
}

/* 导航栏 */
.nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.95em;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}
.nav-link:hover::before {
  left: 100%;
}
.nav-link:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.nav-link.active {
  color: #000000;
  background: rgba(0, 0, 0, 0.1);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: #000000;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* 主视觉 */
.hero-container {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
}

.hero-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  z-index: 2;
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  display: none;
}

.menu-toggle {
  display: none;
}

.gradient-blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.15;
  filter: blur(40px);
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #000000, #333333);
  top: -50px;
  right: -100px;
  animation: blobAnimation 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #333333, #555555);
  top: 150px;
  right: -200px;
  animation: blobAnimation 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #555555, #1d1d1f);
  bottom: 50px;
  right: 100px;
  animation: blobAnimation 12s ease-in-out infinite;
}

.hero-content h1 {
  font-size: 3.5em;
  font-weight: 800;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
}
body.home-active .hero-content h1 {
  color: #000000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.subtitle {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 40px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  font-weight: 500;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
body.home-active .subtitle {
  color: #000000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hero-features {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 2em;
}

.feature-text {
  font-weight: 600;
  color: var(--text-secondary);
}
.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.btn {
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.btn svg {
  transition: transform 0.3s ease;
}
.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}
.btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(15, 20, 28, 0.1);
  position: relative;
  overflow: hidden;
}
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: left 0.4s;
  z-index: -1;
}
.btn-secondary:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}
.btn-secondary:hover::before {
  left: 0;
}
.btn-secondary:active {
  transform: translateY(0);
}

/* 内容切换动画 */
#content {
  flex: 1;
}

.view {
  display: none;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  position: relative;
}
.view.active {
  display: block;
  opacity: 1;
}
.section-container {
  display: block;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

/* 所有页面统一透明背景，透出旋转背景图 + body::before 光斑 */
#view-home,
#view-tools,
#view-about,
#view-hashmaster,
#view-contact {
  background: transparent;
}

#view-about,
#view-hashmaster {
  padding-bottom: 20px;
}

#view-about .info-card,
#view-about .code-section,
#view-hashmaster .info-card,
#view-hashmaster .code-section,
#view-hashmaster .download-card,
#view-hashmaster .faq-item {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

#view-contact .contact-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.glass-panel {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-panel:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.download-card,
.faq-item {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.faq-item {
  border-left: 4px solid var(--primary);
  background: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
  background: #fafbff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  padding-bottom: 28px;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header h2 {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.section-header h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  position: relative;
  padding-left: 16px;
}
.section-header h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tools-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0;
  margin-top: 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.tools-layout:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.2);
}

/* 左侧工具导航 */
.tools-list {
  padding: 16px 12px;
  border-right: 1px solid var(--border-light);
  background: #fafbff;
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.tools-list::-webkit-scrollbar {
  width: 4px;
}
.tools-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.tools-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92em;
  transition: var(--transition-fast);
  margin-bottom: 4px;
  position: relative;
  border-left: 3px solid transparent;
}
.tools-list a .tool-icon {
  font-size: 1.1em;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.tools-list a .tool-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tools-list a:hover {
  background: rgba(102, 126, 234, 0.06);
  color: var(--primary);
}
.tools-list a.active {
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

/* 右侧工具内容区 */
.tools-display {
  display: flex;
  flex-direction: column;
  min-height: 780px;
  background: #fff;
}
.tools-display-frame {
  flex: 1;
  position: relative;
}
.tools-display-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: none;
  background: #fff;
  display: block;
}

/* 关于模块 */
.skills {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 25px;
  list-style: none;
  box-shadow: var(--shadow);
}

/* 信息卡片 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.card-list {
  list-style: none;
}

.card-list li {
  padding: 10px 0;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  font-weight: 500;
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}
.card-list li:hover::before {
  transform: scale(1.3) rotate(10deg);
}

/* 联系卡片 */
.contact-content {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 50px 45px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  flex: 0 1 460px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* 邮箱专属卡片：渐变背景 + 发光 */
.contact-card--email {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 243, 255, 0.95) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.contact-card--email::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* 装饰浮动光斑 */
.contact-card__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.35;
  animation: blobFloat 8s ease-in-out infinite;
}

.deco-blob--1 {
  width: 120px;
  height: 120px;
  background: #8b5cf6;
  top: -30px;
  left: -30px;
}

.deco-blob--2 {
  width: 100px;
  height: 100px;
  background: #667eea;
  bottom: -20px;
  right: -20px;
  animation-delay: -3s;
}

.deco-blob--3 {
  width: 80px;
  height: 80px;
  background: #764ba2;
  top: 40%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.15); }
}

/* 在线状态徽章 */
.contact-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-size: 0.8em;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  z-index: 2;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(102, 126, 234, 0.22), 0 14px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(102, 126, 234, 0.4);
}

.contact-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.3);
}

.contact-info {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.85em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contact-value {
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  line-height: 1.1;
}

.contact-subtitle {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 复制按钮 */
.contact-copy-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
  margin-top: 6px;
}

.contact-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

.contact-copy-btn:active {
  transform: translateY(0);
}

.contact-copy-btn .check-icon {
  display: none;
}

.contact-copy-btn.copied {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.contact-copy-btn.copied .copy-icon {
  display: none;
}

.contact-copy-btn.copied .check-icon {
  display: block;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
  word-break: break-all;
}

.contact-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95em;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.95em;
  color: var(--text);
  background: #f8f9fa;
  transition: var(--transition-fast);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: transparent;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: transparent;
}

.form-group textarea {
  min-height: 120px;
}

/* 代码块 */
.code-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.code-section:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.code-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-wrapper--centered {
  justify-content: center;
}

.code-wrapper--centered .code-input {
  flex: 0 1 auto;
  max-width: 700px;
  width: 100%;
  text-align: center;
  cursor: text;
}

.code-input {
  flex: 1;
  background: #f8f9fa;
  border: 2px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.95em;
  color: var(--text);
  line-height: 1.6;
  transition: var(--transition-fast);
}
.code-input:focus {
  outline: none;
  border-color: transparent;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.install-tip {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-muted);
  line-height: 1.6;
}

.copy-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}
.copy-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.copy-btn:hover::before {
  width: 300px;
  height: 300px;
}
.copy-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}
.copy-btn:active {
  transform: translateY(-1px) scale(1);
}
.copy-btn.copied {
  background: linear-gradient(135deg, #48bb78, #38a169);
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}
.footer {
  text-align: center;
  padding: 16px 0;
  color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 0.85em;
  background: rgba(15, 20, 28, 0.85);
  line-height: 1.4;
  flex-shrink: 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
.footer a:hover {
  color: #f5f5f7;
}

.footer span {
  display: inline;
  margin: 0;
}

/* 动画 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes blobAnimation {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -50px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* 移动端 */
@media (max-width: 1024px) {
  .hero-visual {
    opacity: 0.3;
  }

  .hero-content h1 {
    font-size: 2.5em;
  }

  .tools-layout {
    grid-template-columns: 200px 1fr;
  }

  .tools-list {
    padding: 16px 10px;
  }

  .section-header h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .logo-section {
    margin-right: 20px;
  }

  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 20, 28, 0.08);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 12px 28px rgba(15, 20, 28, 0.2);
    min-width: 200px;
    backdrop-filter: blur(16px);
  }

  .nav.open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 24px;
    color: #000000;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
  }

  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
  }

  body.home-active .menu-toggle {
    color: #000000;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  body.home-active .nav ul .nav-link {
    color: #000000;
  }

  body.home-active .nav ul .nav-link:hover,
  body.home-active .nav ul .nav-link.active {
    color: #000000;
    background: rgba(0, 0, 0, 0.08);
  }

  .hero-container {
    padding: 60px 20px;
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .hero-content h1 {
    font-size: 2em;
  }

  .hero-content {
    max-width: 100%;
  }

  .subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .hero-features {
    gap: 20px;
    margin-bottom: 30px;
  }

  .feature-item {
    flex: 1;
    min-width: 150px;
  }

  .tools-layout {
    grid-template-columns: 1fr;
  }

  .tools-list {
    position: static;
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .tools-list a {
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 8px 14px;
    border-left: none;
  }

  .tools-display {
    min-height: 400px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.8em;
  }

  .section-header h3 {
    text-align: center;
  }

  .contact-card {
    padding: 40px 28px;
  }

  .contact-value {
    font-size: 2em;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
  }

  .code-block code {
    font-size: 0.85em;
    padding-right: 40px;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section-container {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6em;
  }

  .subtitle {
    font-size: 1em;
  }

  .hero-features {
    gap: 15px;
  }

  .feature-item {
    flex: 0 1 100%;
  }

  .section-header h2 {
    font-size: 1.5em;
  }

  .nav ul {
    right: 5px;
    min-width: 180px;
  }

  .contact-card {
    padding: 35px 22px;
  }

  .contact-value {
    font-size: 1.7em;
  }

  .info-card {
    padding: 20px;
  }
}

/* ============================================
   工具页面样式 (Tools Page Styles)
   ============================================ */

/* 工具页面容器 - 用于 iframe 内的工具页面 */
body .tool-page-container,
.tool-page-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* 工具页面背景 - 统一浅色基调 */
body:has(.tool-page-container) {
  background: #f4f6fb;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body:has(.tool-page-container)::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* 为工具页面添加通用背景样式（适用于独立加载的工具页面） */
.tool-page-container {
  position: relative;
  z-index: 1;
}

/* 如果工具页面是独立加载的，确保 body 有正确的背景 */
html body:not(:has(.header)) {
  background: #f4f6fb;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

html body:not(:has(.header))::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 20s ease infinite;
}

/* 工具页面标题 */
.tool-page-container h1,
.tool-page-container h2 {
  font-size: 1.75em;
  margin-bottom: 35px;
  color: var(--text);
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.tool-page-container h1::after,
.tool-page-container h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.tool-page-container p {
  margin: 15px 0;
  font-size: 0.95em;
  color: var(--text-secondary);
  text-align: left;
}

/* 工具布局 - 自适应网格 */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}

.tool-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-section.full {
  grid-column: 1 / -1;
}

/* 工具页面表单组 */
.tool-page-container .form-group {
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-page-container .form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9em;
  letter-spacing: 0.2px;
  height: 20px;
  display: flex;
  align-items: center;
}

/* 工具页面输入框样式 */
.tool-page-container input[type="text"],
.tool-page-container input[type="number"],
.tool-page-container textarea {
  padding: 11px 14px;
  font-size: 0.95em;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
  transition: var(--transition-fast);
  font-family: inherit;
  background: #f8f9fa;
  color: var(--text);
  width: 100%;
}

.tool-page-container input[type="text"]:focus,
.tool-page-container input[type="number"]:focus,
.tool-page-container textarea:focus {
  outline: none;
  border-color: transparent;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

/* 工具页面 Select 选择框 */
.tool-page-container select {
  padding: 11px 14px;
  font-size: 0.95em;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
  transition: var(--transition-fast);
  font-family: inherit;
  background: #f8f9fa;
  color: var(--text);
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27 fill=%27none%27 xmlns=%27http:%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 stroke=%27%23000000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 32px;
}

.tool-page-container select:focus {
  outline: none;
  border-color: transparent;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.tool-page-container textarea {
  min-height: 40px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95em;
}

/* 工具页面复选框组 */
.tool-page-container .checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}
/* 向后兼容：--plain 现为默认行为，保留别名 */
.tool-page-container .checkbox-group--plain {
  padding: 0;
  margin: 0;
}

.tool-page-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin: 0;
}

.tool-page-container .checkbox-group label {
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-size: 0.95em;
}

/* 工具页面按钮组 */
.tool-page-container .button-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tool-page-container button {
  padding: 12px 24px;
  font-size: 0.95em;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
  display: inline-block;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.tool-page-container button:hover {
  transform: translateY(-2px);
  background: #5568d3;
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.tool-page-container button:active {
  transform: translateY(0);
}

/* 全宽按钮：.btn-full 为规范名，.full 为旧名兼容 */
.tool-page-container button.full,
.tool-page-container button.btn-full {
  width: 100%;
}

.tool-page-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 工具页面输出区域 */
.tool-page-container .output-section {
  margin-top: 12px;
  grid-column: 1 / -1;
}

.tool-page-container .output {
  padding: 18px;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  word-break: break-all;
  color: var(--text);
  user-select: all;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.8;
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: pre-wrap;
  word-wrap: break-word;
  transition: var(--transition);
}

.tool-page-container .output:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(102, 126, 234, 0.2);
}

.tool-page-container .output-item {
  padding: 12px;
  margin-bottom: 12px;
  background: #f8f9fb;
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.tool-page-container .output-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.tool-page-container .output-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  background: #f0f3fa;
}

.tool-page-container .output-item:hover::before {
  transform: scaleY(1);
}

.tool-page-container .output-item:last-child {
  margin-bottom: 0;
}

.tool-page-container .output-item strong {
  color: var(--primary);
  font-weight: 600;
  display: inline;
  margin-right: 6px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-page-container .output-item code {
  display: inline;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  color: var(--text);
  word-break: break-all;
  font-size: 0.9em;
  line-height: 1.6;
  background: transparent;
  padding: 0;
  border-radius: 0;
  overflow-x: auto;
}

/* 多项输出容器（规范名 .output-list，.output-group/.output-stack 为旧名兼容） */
.tool-page-container .output-list,
.tool-page-container .output-group,
.tool-page-container .output-stack {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 带复制按钮的输出行（用于密码等列表项） */
.tool-page-container .output-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-page-container .output-row-item .output-value {
  flex: 1;
  padding: 12px 16px;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  word-break: break-all;
  font-size: 0.95em;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tool-page-container .output-row-item .output-value:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: var(--shadow-md);
}

.tool-page-container .output-row-item .btn-copy {
  flex-shrink: 0;
}

/* 工具页面响应式设计 */
@media (max-width: 768px) {
  .tool-page-container {
    padding: 30px 16px;
    max-width: 100%;
  }

  .tool-page-container h1,
  .tool-page-container h2 {
    font-size: 1.4em;
    margin-bottom: 25px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tool-page-container button {
    padding: 11px 20px;
    font-size: 0.9em;
  }

  .tool-page-container .button-group {
    flex-direction: column;
  }

  .tool-page-container button.full,
  .tool-page-container button.btn-full {
    width: 100%;
  }

  .tool-page-container textarea {
    min-height: 100px;
  }

  .tool-page-container .output {
    font-size: 0.85em;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .tool-page-container {
    padding: 20px 12px;
  }

  .tool-page-container h1,
  .tool-page-container h2 {
    font-size: 1.2em;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .tool-page-container button {
    padding: 9px 14px;
    font-size: 0.85em;
  }

  .tool-page-container input[type="text"],
  .tool-page-container input[type="number"],
  .tool-page-container textarea {
    padding: 9px 11px;
    font-size: 0.9em;
  }

  .tool-page-container .form-group label {
    font-size: 0.85em;
  }

  .tool-page-container .output {
    font-size: 0.8em;
    padding: 12px;
    min-height: 50px;
  }

  .tool-page-container .output-item {
    padding: 10px;
    margin-bottom: 10px;
  }

  .tool-page-container .checkbox-group {
    padding: 6px;
  }

  .tool-layout {
    gap: 16px;
  }
}

/* HashMaster 截图展示区域样式 */
.hashmaster-screenshot {
  position: relative;
  transition: var(--transition);
}

.hashmaster-screenshot:hover,
.hashmaster-screenshot.screenshot-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hashmaster-screenshot img {
  transition: transform 0.3s ease;
}

.hashmaster-screenshot:hover img {
  transform: scale(1.02);
}

/* 响应式：移动端优化截图显示 */
@media (max-width: 768px) {
  .hashmaster-screenshot {
    padding: 15px !important;
  }
  
  .hashmaster-screenshot img {
    border-radius: var(--radius) !important;
  }
}

/* ============================================================
   统一样式组件 - 消除内联样式，提升可维护性与缓存效率
   ============================================================ */

/* 区块标题紧凑模式 */
.section-header--compact {
  margin-bottom: 20px;
}

/* 区块标题顶部间距（用于同一 code-section 内的第二个标题） */
.section-header--spaced-top {
  margin-top: 30px;
}

/* 代码区块顶部间距 */
.code-section--spaced {
  margin-top: 40px;
}

/* 信息卡片（使用说明/常见问题容器） */
.info-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border);
}

/* 步骤列表 */
.step-list {
  line-height: 1.8;
  color: var(--text);
  font-size: 0.95em;
}

.step-item {
  margin-bottom: 20px;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  margin: 0;
  color: var(--text-secondary);
}

/* 常见问题列表 */
.faq-grid {
  display: grid;
  gap: 15px;
}

.faq-question {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-answer {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9em;
}

/* 下载卡片网格 */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* 截图容器 */
.screenshot-frame {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.screenshot-placeholder {
  display: none;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  text-align: center;
}

.screenshot-placeholder__icon {
  font-size: 3em;
  margin-bottom: 15px;
  opacity: 0.5;
}

.screenshot-placeholder__text {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* 页脚备案图标 */
.footer-beian-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* 箭头图标间距 */
.icon-arrow {
  margin-left: 8px;
}

/* 提示性文本（占位/空状态） */
.hint-text {
  color: var(--text-muted);
  margin: 0;
}

/* 截图区域外层容器 */
.screenshot-section {
  text-align: center;
  margin-bottom: 50px;
}

/* 下载卡片标题与描述 */
.download-card__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.download-card__desc {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 15px;
}

/* ============================================================
   工具页面统一样式
   ============================================================ */

/* 输出行（输出框 + 复制按钮） */
.output-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* 代码风格输出框 */
.tool-page-container .output.output-code {
  flex: 1;
  margin: 0;
  color: #0052cc;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.85em;
  line-height: 1.6;
}

/* 复制按钮 */
.tool-page-container .btn-copy {
  padding: 10px 16px;
  font-size: 0.9em;
  white-space: nowrap;
  margin-top: 0;
  align-self: flex-start;
}

/* 字段标签（独立标签，非 form-group 内） */
.field-label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9em;
  display: block;
  margin-bottom: 8px;
}

/* 无内外边距的复选框组 */
.checkbox-group--plain {
  margin: 0;
  padding: 0;
}

.checkbox-group--plain label {
  margin: 0;
}

/* ============================================================
   工具页面扩展组件（进度条 / 区块标题 / 多级按钮）
   沿用站点设计语言：紫蓝主渐变 + 浅色背景
   ============================================================ */

/* 工具页面区块小标题 */
.tool-page-container h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  padding-left: 12px;
  position: relative;
  letter-spacing: 0.2px;
}
.tool-page-container h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

/* 进度条容器 */
.tool-page-container .progress-container {
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
  margin: 0;
}
.tool-page-container .progress-container.active {
  opacity: 1;
  max-height: 200px;
  padding: 18px 20px;
}

.tool-page-container .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.tool-page-container .progress-header span:last-child {
  color: var(--primary);
  font-weight: 700;
}

.tool-page-container .progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.tool-page-container .progress-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.tool-page-container .progress-text {
  margin-top: 10px;
  font-size: 0.82em;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

/* 工具页面按钮变体 */
.tool-page-container button.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(15, 20, 28, 0.1);
}
.tool-page-container button.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.tool-page-container button.btn-tertiary {
  background: #f5576c;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(245, 87, 108, 0.25);
}
.tool-page-container button.btn-tertiary:hover {
  transform: translateY(-2px);
  background: #e0455a;
  box-shadow: 0 6px 18px rgba(245, 87, 108, 0.35);
}
