:root {
  --primary: #1e3a5f;
  --accent: #e11d48;
  --radius: 8px;
  --bg: #f8fafc;
  --card: #fff;
  --border: #e2e8f0;
  --text: #334155;
  --muted: #64748b;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: system-ui,-apple-system,sans-serif; background:var(--bg); color:var(--text); line-height:1.6; }
.container { max-width:960px; margin:0 auto; padding:0 16px; }

/* Header */
.site-header { background:var(--primary); color:#fff; padding:24px 0; text-align:center; }
.site-header h1 { font-size:1.4rem; font-weight:700; }
.site-header p { font-size:.85rem; opacity:.8; margin-top:4px; }

/* Nav */
.site-nav { background:#fff; border-bottom:1px solid var(--border); padding:10px 0; text-align:center; }
.site-nav a { color:var(--primary); text-decoration:none; margin:0 12px; font-size:.9rem; font-weight:500; }
.site-nav a:hover { color:var(--accent); }

/* Section */
.section { padding:40px 0; }
.section-title { font-size:1.3rem; color:var(--primary); margin-bottom:24px; padding-bottom:8px; border-bottom:2px solid var(--accent); }

/* Entity Info Block */
.entity-info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.entity-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
}
/* 图片基础样式 */
.entity-media__img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;        /* 继承父容器宽度 */
  height: auto;       /* 高度自适应，保持比例 */
  display: block;     /* 消除底部间隙 */
}

/* 响应式调整（可选，针对移动端） */
@media (max-width: 768px) {
  .entity-media__img {
    aspect-ratio: 3/2;  /* 手机端更适合竖屏比例 */
  }
}
/* 原有.entity-media .placeholder规则修改如下 */
.entity-media .placeholder {
  background: #f1f5f9;
  border-radius: var(--radius);
  min-height: 160px; /* 把固定height改成min-height，让内容撑开 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
  overflow: hidden; /* 避免图片溢出圆角 */
}
/* 新增：当placeholder里有img时，取消背景和padding，避免冲突 */
.entity-media .placeholder:has(img) {
  background: none;
  padding: 0;
  min-height: unset;
}
.entity-card p { margin-bottom:8px; font-size:.9rem; }
.entity-card p:last-child { margin-bottom:0; }
.entity-card strong { color:var(--primary); }

/* Responsive */
@media (max-width:640px) {
  .entity-info { grid-template-columns:1fr; }
  .entity-media { order:-1; }
  .entity-media .placeholder { height:140px; }
}

/* FAQ 区块 */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.faq-section > h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: .85rem 1rem;
  background: var(--bg);
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "▸ ";
  color: var(--primary);
}
.faq-item[open] summary::before {
  content: "▾ ";
}
.faq-item .faq-answer {
  padding: 0 1rem 1rem;
  font-size: .9rem;
  line-height: 1.7;
}
.faq-answer h3 {
  font-size: .95rem;
  margin: .75rem 0 .35rem;
  color: var(--primary);
}
.faq-answer ul, .faq-answer ol {
  padding-left: 1.25rem;
  margin: .35rem 0;
}
.faq-answer li {
  margin-bottom: .4rem;
}

/* Footer */
.site-footer { background:var(--primary); color:#fff; text-align:center; padding:24px 0; font-size:.8rem; line-height:1.8; }
.site-footer a { color:#93c5fd; text-decoration:none; }
.footer-inner a:hover {
  color: #c9bf30;
}
.footer-inner a {
  color: rgba(255,255,255,0.8);
  margin: 0 12px;
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#backToTop:hover { background: var(--accent); }

/* 原有CSS保留，新增下面这段媒体查询 */
@media (max-width: 768px) {
  .entity-info {
    grid-template-columns: 1fr; /* 改成单列 */
    gap: 12px; /* 缩小间距，适配手机 */
    padding: 12px; /* 缩小内边距 */
  }
  /* 手机端图片占满宽度，调整比例更适合竖屏 */
  .entity-media img {
    aspect-ratio: 3/2; /* 4/3在竖屏下会偏高，3/2更适合手机看吊车实拍 */
    max-height: 220px; /* 限制最大高度，避免占满屏幕 */
    object-fit: cover;
  }
  /* 手机端占位符高度适配 */
  .entity-media .placeholder {
    height: 180px; /* 比桌面端稍高，适配手机触控 */
  }
  /* 手机端卡片文字缩小一点 */
  .entity-card p {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
}


/* 电话链接高亮样式 */
a[href^="tel:"] {
  color: #e64340; /* 醒目的红色 */
  font-weight: bold;
  text-decoration: none;
  padding: 2px 5px;
  border: 1px solid #e64340;
  border-radius: 4px;
}

/* 移动端优化：增加点击热区 */
@media (max-width: 768px) {
  a[href^="tel:"] {
    display: inline-block;
    padding: 8px 12px; /* 增大点击面积 */
    margin-top: 5px;
  }
}

/* 设备区块链接样式 */
.entity-link {
  text-decoration: none;
  color: inherit; /* 继承原有文字颜色，不出现蓝色下划线 */
  display: block;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.entity-link:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px); /*  hover时轻微上浮，提示可点击 */
}

/* 移动端优化：加大点击热区 */
@media (max-width: 768px) {
  .entity-link {
    padding: 8px 0;
  }
}