/* ============================================
   悬疑密室 - 主样式表
   CSS前缀: xy-
   设计风格: 侦探事务所风 (Detective Agency Style)
   ============================================ */

/* === Google Fonts 本地化替代 === */
@font-face {
  font-family: 'Cutive Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Cutive Mono'), local('CutiveMono-Regular');
}

/* === CSS Variables === */
:root {
  --xy-primary: #5C4033;
  --xy-secondary: #C8AD7F;
  --xy-accent: #A52A2A;
  --xy-text: #F5F5DC;
  --xy-link: #C8AD7F;
  --xy-bg-dark: #2C1E14;
  --xy-bg-medium: #3D2B1F;
  --xy-bg-light: #4A3728;
  --xy-border: #6B4E37;
  --xy-shadow: rgba(0,0,0,0.5);
  --xy-font-heading: 'Cutive Mono', 'Courier New', monospace;
  --xy-font-body: 'Merriweather', 'Georgia', 'Noto Serif SC', serif;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--xy-font-body);
  background-color: var(--xy-bg-dark);
  color: var(--xy-text);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--xy-link);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: #E8D4A0;
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--xy-font-heading);
  color: var(--xy-secondary);
  line-height: 1.3;
}

/* === 干扰标签隐藏 === */
.mystery-jammer-block {
  display: none !important;
}

/* === 导航栏 === */
.xy-header {
  background: linear-gradient(180deg, var(--xy-bg-dark) 0%, var(--xy-primary) 100%);
  border-bottom: 3px solid var(--xy-secondary);
  padding: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px var(--xy-shadow);
}

.xy-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.xy-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--xy-font-heading);
  font-size: 1.4rem;
  color: var(--xy-secondary);
  white-space: nowrap;
}

.xy-logo-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.xy-logo-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--xy-secondary);
}

.xy-nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.xy-nav-item {
  position: relative;
}

.xy-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  font-family: var(--xy-font-heading);
  font-size: 0.95rem;
  color: var(--xy-text);
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  background: transparent;
}

.xy-nav-link:hover {
  color: var(--xy-secondary);
  background: rgba(200, 173, 127, 0.1);
  border-color: var(--xy-border);
}

.xy-nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--xy-accent);
  transition: width 0.3s ease;
  margin-top: 4px;
}

.xy-nav-link:hover::after {
  width: 100%;
}

.xy-nav-link .xy-magnifier-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  font-size: 0.7rem;
  margin-top: 2px;
}

.xy-nav-link:hover .xy-magnifier-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* 汉堡菜单 */
.xy-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.xy-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--xy-secondary);
  transition: all 0.3s ease;
}

.xy-hamburger.xy-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.xy-hamburger.xy-active span:nth-child(2) {
  opacity: 0;
}

.xy-hamburger.xy-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端侧边菜单 */
.xy-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--xy-bg-dark);
  border-left: 3px solid var(--xy-secondary);
  z-index: 2000;
  transition: right 0.4s ease;
  padding: 60px 24px 24px;
  overflow-y: auto;
  background-image: linear-gradient(rgba(200,173,127,0.03) 1px, transparent 1px);
  background-size: 100% 28px;
}

.xy-mobile-menu.xy-open {
  right: 0;
}

.xy-mobile-menu-header {
  font-family: var(--xy-font-heading);
  font-size: 1.1rem;
  color: var(--xy-accent);
  border-bottom: 2px solid var(--xy-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.xy-mobile-menu .xy-mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-family: var(--xy-font-heading);
  color: var(--xy-text);
  border-bottom: 1px dashed var(--xy-border);
  transition: all 0.3s ease;
}

.xy-mobile-menu .xy-mobile-nav-link:hover {
  color: var(--xy-secondary);
  padding-left: 24px;
  background: rgba(200,173,127,0.05);
}

.xy-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--xy-border);
  color: var(--xy-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 10px;
  font-family: var(--xy-font-heading);
}

.xy-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1500;
}

.xy-overlay.xy-visible {
  display: block;
}

/* === Hero 紧急案情 === */
.xy-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.xy-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.35);
  z-index: 0;
}

.xy-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
}

.xy-hero-slogan {
  font-family: var(--xy-font-heading);
  font-size: 2.2rem;
  color: var(--xy-accent);
  margin-bottom: 24px;
  min-height: 3.6em;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.xy-hero-desc {
  font-size: 1.1rem;
  color: var(--xy-text);
  opacity: 0.9;
  line-height: 1.9;
}

.xy-typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--xy-accent);
  margin-left: 4px;
  animation: xy-blink 0.8s infinite;
  vertical-align: text-bottom;
}

@keyframes xy-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* === 通用模块样式 === */
.xy-section {
  padding: 80px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.xy-section-alt {
  background: var(--xy-bg-medium);
}

.xy-section-title {
  font-family: var(--xy-font-heading);
  font-size: 1.8rem;
  color: var(--xy-secondary);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.xy-section-subtitle {
  text-align: center;
  color: rgba(245,245,220,0.7);
  font-size: 0.95rem;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.xy-stamp {
  display: inline-block;
  color: var(--xy-accent);
  border: 2px solid var(--xy-accent);
  padding: 2px 10px;
  font-family: var(--xy-font-heading);
  font-size: 0.8rem;
  transform: rotate(-3deg);
  margin-right: 12px;
  letter-spacing: 2px;
}

/* === 卡片样式 === */
.xy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.xy-card {
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.xy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.xy-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: sepia(0.3);
  transition: filter 0.3s ease;
}

.xy-card:hover .xy-card-image {
  filter: sepia(0);
}

.xy-card-body {
  padding: 20px;
}

.xy-card-title {
  font-family: var(--xy-font-heading);
  font-size: 1.1rem;
  color: var(--xy-secondary);
  margin-bottom: 8px;
}

.xy-card-meta {
  font-size: 0.8rem;
  color: rgba(245,245,220,0.5);
  margin-bottom: 12px;
  font-family: var(--xy-font-heading);
}

.xy-card-text {
  font-size: 0.9rem;
  color: rgba(245,245,220,0.8);
  line-height: 1.7;
}

/* 老照片卡片 */
.xy-photo-card {
  background: #D4C5A0;
  padding: 12px 12px 40px;
  border: none;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.5);
  transform: rotate(var(--xy-rotate, 0deg));
}

.xy-photo-card .xy-card-image {
  filter: sepia(0.6) contrast(0.9);
  height: 260px;
}

.xy-photo-card .xy-card-body {
  padding: 12px 4px 4px;
}

.xy-photo-card .xy-card-title {
  color: #3D2B1F;
  font-size: 0.95rem;
}

.xy-photo-card .xy-card-meta {
  color: #6B4E37;
}

/* === 按钮样式 (档案柜标签卡) === */
.xy-btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--xy-font-heading);
  font-size: 0.9rem;
  color: var(--xy-text);
  background: var(--xy-primary);
  border: 1px solid var(--xy-secondary);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.xy-btn:hover {
  background: var(--xy-secondary);
  color: var(--xy-bg-dark);
}

.xy-btn-accent {
  background: var(--xy-accent);
  border-color: var(--xy-accent);
}

.xy-btn-accent:hover {
  background: #C13030;
  border-color: #C13030;
  color: var(--xy-text);
}

/* === 侦探工具箱 === */
.xy-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.xy-tool-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.xy-tool-item:hover {
  border-color: var(--xy-secondary);
  box-shadow: 0 4px 16px rgba(200,173,127,0.15);
}

.xy-tool-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--xy-border);
}

.xy-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xy-tool-name {
  font-family: var(--xy-font-heading);
  font-size: 1.05rem;
  color: var(--xy-secondary);
  margin-bottom: 8px;
}

.xy-tool-desc {
  font-size: 0.85rem;
  color: rgba(245,245,220,0.7);
  line-height: 1.6;
}

/* === 迷案众议院 (论坛帖子) === */
.xy-forum-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xy-forum-post {
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  border-left: 4px solid var(--xy-accent);
  padding: 20px 24px;
  transition: all 0.3s ease;
}

.xy-forum-post:hover {
  border-left-color: var(--xy-secondary);
  background: var(--xy-bg-medium);
}

.xy-forum-title {
  font-family: var(--xy-font-heading);
  font-size: 1rem;
  color: var(--xy-secondary);
  margin-bottom: 8px;
}

.xy-forum-meta {
  font-size: 0.8rem;
  color: rgba(245,245,220,0.5);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* === 犯罪心理侧写 === */
.xy-profiling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.xy-profiling-card {
  display: flex;
  gap: 20px;
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  padding: 20px;
  transition: all 0.3s ease;
}

.xy-profiling-card:hover {
  border-color: var(--xy-secondary);
}

.xy-profiling-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--xy-border);
  flex-shrink: 0;
  filter: sepia(0.4);
}

.xy-profiling-info {
  flex: 1;
}

.xy-profiling-name {
  font-family: var(--xy-font-heading);
  color: var(--xy-secondary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.xy-profiling-role {
  font-size: 0.8rem;
  color: var(--xy-accent);
  margin-bottom: 8px;
  font-family: var(--xy-font-heading);
}

.xy-profiling-text {
  font-size: 0.85rem;
  color: rgba(245,245,220,0.75);
  line-height: 1.6;
}

/* === 经典手法还原 === */
.xy-mo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.xy-mo-card {
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  overflow: hidden;
}

.xy-mo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: sepia(0.2);
}

.xy-mo-card-body {
  padding: 20px;
}

.xy-mo-tag {
  display: inline-block;
  background: var(--xy-accent);
  color: var(--xy-text);
  font-family: var(--xy-font-heading);
  font-size: 0.7rem;
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* === 委托任务板 === */
.xy-bounty-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xy-bounty-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.xy-bounty-item:hover {
  border-color: var(--xy-secondary);
}

.xy-bounty-status {
  font-family: var(--xy-font-heading);
  font-size: 0.7rem;
  padding: 4px 10px;
  border: 1px solid;
  white-space: nowrap;
}

.xy-bounty-open {
  color: #4CAF50;
  border-color: #4CAF50;
}

.xy-bounty-progress {
  color: #FF9800;
  border-color: #FF9800;
}

.xy-bounty-closed {
  color: #9E9E9E;
  border-color: #9E9E9E;
}

.xy-bounty-info {
  flex: 1;
}

.xy-bounty-title {
  font-family: var(--xy-font-heading);
  color: var(--xy-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.xy-bounty-desc {
  font-size: 0.8rem;
  color: rgba(245,245,220,0.6);
}

.xy-bounty-reward {
  font-family: var(--xy-font-heading);
  color: var(--xy-accent);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* === 荣誉侦探墙 === */
.xy-honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.xy-honor-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  transition: all 0.3s ease;
}

.xy-honor-card:hover {
  border-color: var(--xy-secondary);
  box-shadow: 0 4px 16px rgba(200,173,127,0.15);
}

.xy-honor-rank {
  font-family: var(--xy-font-heading);
  font-size: 2rem;
  color: var(--xy-accent);
  margin-bottom: 8px;
}

.xy-honor-name {
  font-family: var(--xy-font-heading);
  color: var(--xy-secondary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.xy-honor-score {
  font-size: 0.8rem;
  color: rgba(245,245,220,0.6);
}

/* === 联络处 === */
.xy-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.xy-contact-card {
  background: var(--xy-bg-light);
  border: 1px solid var(--xy-border);
  padding: 28px;
  text-align: center;
}

.xy-contact-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--xy-secondary);
}

.xy-contact-label {
  font-family: var(--xy-font-heading);
  color: var(--xy-secondary);
  font-size: 1rem;
  margin-bottom: 8px;
}

.xy-contact-value {
  font-size: 0.9rem;
  color: rgba(245,245,220,0.8);
}

/* === 页脚 === */
.xy-footer {
  background: linear-gradient(0deg, #1A0F08 0%, var(--xy-bg-dark) 100%);
  border-top: 3px solid var(--xy-secondary);
  padding: 48px 24px 24px;
}

.xy-footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.xy-footer-col-title {
  font-family: var(--xy-font-heading);
  font-size: 1rem;
  color: var(--xy-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--xy-border);
}

.xy-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.xy-footer-links a {
  font-size: 0.85rem;
  color: rgba(245,245,220,0.7);
  transition: color 0.3s ease;
}

.xy-footer-links a:hover {
  color: var(--xy-secondary);
}

.xy-footer-warning {
  font-size: 0.85rem;
  color: rgba(245,245,220,0.6);
  line-height: 1.7;
  padding: 12px;
  border: 1px dashed var(--xy-border);
}

.xy-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--xy-border);
  font-size: 0.8rem;
  color: rgba(245,245,220,0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.xy-footer-bottom a {
  color: rgba(245,245,220,0.6);
  font-size: 0.8rem;
}

.xy-footer-honor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--xy-font-heading);
  color: var(--xy-secondary);
  font-size: 0.8rem;
}

/* === 证据室页面 === */
.xy-evidence-room {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  padding: 40px 24px;
}

.xy-evidence-layout {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.xy-evidence-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.xy-evidence-card {
  background: rgba(92,64,51,0.9);
  border: 1px solid var(--xy-border);
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.xy-evidence-card:hover {
  transform: scale(1.05);
  border-color: var(--xy-secondary);
  box-shadow: 0 4px 16px rgba(200,173,127,0.2);
}

.xy-evidence-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 8px;
  filter: sepia(0.3);
}

.xy-evidence-card-label {
  font-family: var(--xy-font-heading);
  font-size: 0.8rem;
  color: var(--xy-secondary);
}

.xy-evidence-sidebar {
  background: rgba(44,30,20,0.95);
  border: 2px solid var(--xy-border);
  padding: 28px;
  position: relative;
}

.xy-evidence-form-title {
  font-family: var(--xy-font-heading);
  color: var(--xy-accent);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.xy-evidence-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(200,173,127,0.1);
  border: 1px solid var(--xy-border);
  color: var(--xy-text);
  font-family: var(--xy-font-heading);
  font-size: 0.95rem;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.xy-evidence-input:focus {
  border-color: var(--xy-secondary);
}

.xy-evidence-input::placeholder {
  color: rgba(245,245,220,0.4);
}

.xy-evidence-result {
  margin-top: 20px;
  padding: 16px;
  font-family: var(--xy-font-heading);
  text-align: center;
  display: none;
}

.xy-evidence-success {
  border: 2px solid #4CAF50;
  color: #4CAF50;
  background: rgba(76,175,80,0.1);
}

.xy-evidence-fail {
  border: 2px solid var(--xy-accent);
  color: var(--xy-accent);
  background: rgba(165,42,42,0.1);
}

/* === 模态框 === */
.xy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.xy-modal.xy-modal-open {
  display: flex;
}

.xy-modal-content {
  background: var(--xy-bg-dark);
  border: 2px solid var(--xy-secondary);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.xy-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--xy-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: var(--xy-font-heading);
}

.xy-modal-image {
  width: 100%;
  margin-bottom: 16px;
}

.xy-modal-title {
  font-family: var(--xy-font-heading);
  color: var(--xy-secondary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.xy-modal-text {
  font-size: 0.9rem;
  color: rgba(245,245,220,0.85);
  line-height: 1.8;
}

/* === APP下载页面 === */
.xy-app-page {
  min-height: 100vh;
  background: var(--xy-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.xy-app-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: blur(2px);
}

.xy-app-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.xy-app-title {
  font-family: var(--xy-font-heading);
  font-size: 1.6rem;
  color: #4CAF50;
  margin-bottom: 20px;
}

.xy-app-desc {
  font-size: 1rem;
  color: rgba(245,245,220,0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}

.xy-app-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  background: white;
  padding: 16px;
  border-radius: 8px;
}

.xy-app-qr img {
  width: 100%;
  height: 100%;
}

.xy-app-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === 内页通用 === */
.xy-page-banner {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.xy-page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) blur(2px);
}

.xy-page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.xy-page-banner h1 {
  font-size: 2rem;
  color: var(--xy-secondary);
  margin-bottom: 8px;
}

.xy-page-banner p {
  color: rgba(245,245,220,0.7);
  font-size: 1rem;
}

.xy-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.xy-article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2;
  color: rgba(245,245,220,0.9);
}

.xy-article-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

.xy-article-body h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--xy-border);
}

.xy-article-body h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.xy-article-image {
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--xy-border);
}

.xy-spoiler-warning {
  background: rgba(165,42,42,0.15);
  border: 1px solid var(--xy-accent);
  padding: 16px 20px;
  margin: 20px 0;
  cursor: pointer;
}

.xy-spoiler-warning summary {
  font-family: var(--xy-font-heading);
  color: var(--xy-accent);
  font-size: 0.9rem;
}

.xy-spoiler-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--xy-accent);
}

/* === 指纹动画 (hover) === */
.xy-fingerprint-hover {
  position: relative;
}

.xy-fingerprint-hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(200,173,127,0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

.xy-fingerprint-hover:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* === 响应式断点 === */

/* 1440px */
@media (max-width: 1440px) {
  .xy-section {
    max-width: 1200px;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .xy-nav-menu {
    display: none;
  }

  .xy-hamburger {
    display: flex;
  }

  .xy-mobile-menu {
    display: block;
  }

  .xy-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .xy-evidence-layout {
    grid-template-columns: 1fr;
  }

  .xy-profiling-grid {
    grid-template-columns: 1fr;
  }
}

/* 768px */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .xy-hero-slogan {
    font-size: 1.6rem;
  }

  .xy-section {
    padding: 48px 16px;
  }

  .xy-section-title {
    font-size: 1.4rem;
  }

  .xy-card-grid {
    grid-template-columns: 1fr;
  }

  .xy-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xy-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .xy-honor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xy-page-banner {
    height: 220px;
  }

  .xy-page-banner h1 {
    font-size: 1.5rem;
  }

  .xy-mo-grid {
    grid-template-columns: 1fr;
  }

  .xy-bounty-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 360px */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }

  .xy-nav-container {
    padding: 10px 16px;
  }

  .xy-logo {
    font-size: 1.1rem;
  }

  .xy-hero-slogan {
    font-size: 1.3rem;
  }

  .xy-hero-content {
    padding: 20px;
  }

  .xy-tools-grid {
    grid-template-columns: 1fr;
  }

  .xy-honor-grid {
    grid-template-columns: 1fr;
  }

  .xy-evidence-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .xy-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* === 打印样式 === */
@media print {
  .xy-header, .xy-footer, .xy-hamburger, .xy-mobile-menu {
    display: none !important;
  }

  body {
    background: white;
    color: #333;
  }
}
