/* ==========================================================================
   富丽雅官网原型 - 全局共享样式
   主色 #2ab39f (Teal/绿松石色)
   字体：中文思源黑体 / 英文 Inter
   断点：桌面≥1200 / 平板768-1199 / 移动≤767
   ========================================================================== */

:root {
  --primary: #2ab39f;
  --primary-dark: #1f8e7f;
  --primary-light: #e6f7f4;
  --primary-lighter: #f0faf8;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-dark: #111827;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Source Han Sans', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== 通用容器 ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-fluid { max-width: 100%; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 500; font-size: 14px;
  transition: all .2s; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--text-light); }
.btn-ghost:hover { color: var(--primary); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fef2f2; }
.btn-success { color: var(--success); }
.btn-success:hover { background: #ecfdf5; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }

/* ===== 标签 ===== */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500;
}
.tag-primary { background: var(--primary-light); color: var(--primary-dark); }
.tag-success { background: #ecfdf5; color: var(--success); }
.tag-warning { background: #fffbeb; color: var(--warning); }
.tag-info { background: #eff6ff; color: #3b82f6; }
.tag-purple { background: #f5f3ff; color: #8b5cf6; }
.tag-pink { background: #fdf2f8; color: #ec4899; }
.tag-gray { background: var(--bg-soft); color: var(--text-light); }

/* ===== 卡片 ===== */
.card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 20px; }

/* ==========================================================================
   公共组件：顶部导航
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--primary); }
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 8px 16px; border-radius: var(--radius);
  font-weight: 500; color: var(--text);
  transition: all .2s;
}
.nav-menu a:hover { color: var(--primary); background: var(--primary-light); }
.nav-menu a.active { color: var(--primary); background: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-full);
  overflow: hidden; font-size: 13px;
}
.lang-switch button { padding: 6px 14px; color: var(--text-light); }
.lang-switch button.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; font-size: 24px; }

@media (max-width: 1024px) {
  .nav-menu, .nav-actions .lang-switch { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   公共组件：悬浮侧边栏
   ========================================================================== */
.floating-sidebar {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
}
.floating-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary); cursor: pointer;
  transition: all .2s; position: relative;
}
.floating-btn:hover { background: var(--primary); color: #fff; transform: scale(1.05); }
.floating-btn .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--danger); color: #fff; font-size: 10px;
  padding: 2px 5px; border-radius: var(--radius-full);
}

/* ==========================================================================
   公共组件：页脚
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: #9ca3af; padding: 60px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 16px; white-space: nowrap; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col li { margin-bottom: 10px; font-size: 13px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #374151; padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 13px;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section { padding: 60px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 48px; font-size: 15px; }

/* Banner */
.banner {
  position: relative; min-height: 480px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; overflow: hidden;
}
.banner-content { position: relative; z-index: 2; max-width: 720px; }
.banner h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.banner p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }
.banner::after {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 768px) {
  .banner { min-height: 380px; }
  .banner h1 { font-size: 28px; }
  .banner p { font-size: 15px; }
}

/* 面包屑 */
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-light); margin: 24px 0; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-lighter); }

/* ==========================================================================
   后台布局
   ========================================================================== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-soft); }
.admin-sidebar {
  width: 240px; background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-logo { padding: 20px 24px; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 700; color: var(--primary); }
.admin-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.admin-nav-group { margin-bottom: 20px; }
.admin-nav-group-title { font-size: 11px; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 12px; font-weight: 600; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 14px; margin-bottom: 2px;
  transition: all .15s;
}
.admin-nav-item:hover { background: var(--bg-soft); color: var(--primary); }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.admin-nav-item .icon { width: 18px; text-align: center; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.admin-content { flex: 1; padding: 24px; }

/* 页面头部（后台） */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 700; }
.page-subtitle { color: var(--text-light); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

/* ===== 表格 ===== */
.data-table {
  width: 100%; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg-soft); padding: 12px 16px; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--text-light);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--primary-lighter); }
.data-table .col-actions { white-space: nowrap; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  transition: all .15s; background: #fff;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-lighter); margin-top: 4px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ===== 上传组件 ===== */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; color: var(--text-light);
  transition: all .2s; cursor: pointer;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-lighter); color: var(--primary); }
.upload-area .icon { font-size: 32px; margin-bottom: 8px; }

.image-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #fff;
}
.image-card img { width: 100%; height: 120px; object-fit: cover; background: var(--bg-soft); }
.image-card .actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.image-card .actions button { background: rgba(0,0,0,0.5); color: #fff; width: 26px; height: 26px; border-radius: 4px; font-size: 13px; }

/* ===== 分页 ===== */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 24px 0; }
.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
  font-size: 13px; color: var(--text);
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 统计卡片（Dashboard） ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.stat-card .label { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-card .delta { font-size: 12px; margin-top: 6px; }
.stat-card .delta.up { color: var(--success); }
.stat-card .delta.down { color: var(--danger); }
.stat-card .icon { font-size: 20px; color: var(--primary); }
@media (max-width: 1024px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr; } }

/* ===== 开关 ===== */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: var(--radius-full); transition: .2s;
}
.switch-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

/* ===== 提示框 ===== */
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: 13px;
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
}
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-success { background: #ecfdf5; color: #065f46; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs button {
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== 占位图样式（用 CSS 渐变模拟，避免依赖外部图片） ===== */
.placeholder-img {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 600; font-size: 13px;
  text-align: center; padding: 16px;
}
.placeholder-img.dark {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,0.9);
}

/* ===== 原型水印（仅原型用） ===== */
.prototype-note {
  position: fixed; bottom: 16px; left: 16px; z-index: 200;
  background: rgba(17,24,39,0.9); color: #fff; font-size: 12px;
  padding: 6px 12px; border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   工具类
   ========================================================================== */
.text-primary { color: var(--primary); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   v2 升级样式（2026-06-23 用户反馈：简洁大气 + 顶部双行 + 黑色线条侧边栏）
   覆盖上方旧规则，新页面优先用 v2 类名
   ========================================================================== */

/* ===== 顶部双行导航 ===== */
.site-header-v2 { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
/* min-height 兜底：logo 加载前就预留高度，避免 sticky header 高度跳变引发整页抖动 */
.header-row-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; min-height: 84px; box-sizing: border-box; }
.header-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-brand .logo-mark { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.header-brand .brand-text { line-height: 1.3; }
.header-brand .brand-name { font-size: 17px; font-weight: 700; color: var(--text); }
.header-brand .brand-name .en { font-size: 12px; color: var(--text-light); font-weight: 500; margin-left: 6px; }

/* 椭圆形搜索条 */
.header-search { flex: 1; max-width: 480px; position: relative; }
.header-search input { width: 100%; height: 44px; border: 2px solid var(--border); border-radius: 9999px; padding: 0 48px 0 20px; font-size: 14px; background: var(--bg-soft); transition: all .2s; }
.header-search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
.header-search .search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }

/* 大气语言切换按钮 */
.lang-switch-v2 { display: inline-flex; align-items:center; border: 2px solid var(--primary); border-radius: 9999px; overflow: hidden; }
.lang-switch-v2 button { padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--primary); background: #fff; transition: all .15s; }
.lang-switch-v2 button.active { background: var(--primary); color: #fff; }
.lang-switch-v2 .lang-btn { padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--primary); background: #fff; transition: all .15s; text-decoration: none; }
.lang-switch-v2 .lang-btn.active { background: var(--primary); color: #fff; }
.lang-switch-v2 .lang-sep { color: var(--primary); opacity: .4; font-size: 12px; }
.brand-logo { display:block; width:auto; height:48px; max-width:180px; object-fit:contain; }

/* 第二行菜单导航（与 logo 对齐） */
.header-row-menu { border-top: 1px solid var(--border-light); margin-bottom: 20px; }
.header-row-menu .nav-menu-v2 { display: flex; align-items: center; gap: 0; height: 52px; }
.header-row-menu .nav-menu-v2 a { padding: 0 22px; height: 100%; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--text); position: relative; transition: color .15s; }
.header-row-menu .nav-menu-v2 a:hover { color: var(--primary); }
.header-row-menu .nav-menu-v2 a.active { color: var(--primary); font-weight: 600; }
.header-row-menu .nav-menu-v2 a.active::after { content: ''; position: absolute; bottom: 0; left: 22px; right: 22px; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }

/* 移动端汉堡按钮（仅 ≤1024px 显示）*/
.nav-toggle-btn { display: none; }
@media (max-width: 1024px) {
  .header-search { display: none; }
  /* 导航菜单默认隐藏，通过 .mobile-open 切换显示 */
  /* 移动端菜单：品牌深绿实色背景 + 白色文字，强制高对比度，确保任何情况下都清晰可读 */
  .header-row-menu { display: none; flex-direction: column; padding: 0 16px 12px; background: var(--primary-dark); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
  .header-row-menu.mobile-open { display: flex; }
  .header-row-menu .nav-menu-v2 { flex-direction: column; gap: 0; }
  .header-row-menu .nav-menu-v2 li { width: 100%; }
  .header-row-menu .nav-menu-v2 a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.15); color: #fff; }
  .header-row-menu .nav-menu-v2 a:hover { color: #fff; background: rgba(255,255,255,0.08); }
  .header-row-menu .nav-menu-v2 a.active { color: #fff; font-weight: 600; background: rgba(255,255,255,0.12); }
  .header-row-menu .nav-menu-v2 a.active::after { display: none; }
  /* 汉堡按钮显示 */
  .nav-toggle-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; padding: 0 9px; margin-left: auto;
  }
  .nav-toggle-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
  /* 汉餐按钮激活态（变 ×）*/
  .nav-toggle-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-btn.active span:nth-child(2) { opacity: 0; }
  .nav-toggle-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== 统一 Banner（除首页外，所有内页 banner 高度一致 240px，只显示图片）===== */
.banner-unified { position: relative; height: 300px; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.banner-unified .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.banner-unified::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,142,127,0.5), rgba(42,179,159,0.2)); }

/* ===== 黑色线条大气侧边栏 ===== */
.floating-sidebar-v2 { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.floating-btn-v2 { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.55); backdrop-filter: blur(12px) saturate(180%); -webkit-backdrop-filter: blur(12px) saturate(180%); border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; transition: all .2s; position: relative; }
.floating-btn-v2:hover { background: rgba(31,41,55,0.85); transform: scale(1.06); }
.floating-btn-v2:hover svg { stroke: #fff; }
.floating-btn-v2:hover .fb-label { color: #fff; }
.floating-btn-v2 svg { width: 22px; height: 22px; stroke: #1f2937; transition: stroke .2s; }
.floating-btn-v2 .fb-label { font-size: 9px; color: #1f2937; font-weight: 600; transition: color .2s; }
.floating-btn-v2 .fb-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 9999px; }

/* ===== 简约白色页脚图标 ===== */
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.7); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item .fc-text { font-size: 13px; color: #9ca3af; line-height: 1.6; }

/* ===== 主标题 + 小标题结构 ===== */
.section-header-block { text-align: center; margin-bottom: 32px; }
.section-header-block .sh-title { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; position: relative; display: inline-block; }
.section-header-block .sh-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary); margin: 10px auto 0; border-radius: 2px; }
.section-header-block .sh-subtitle { font-size: 14px; color: var(--text-light); }
/* 大模块标题（h2 直接出现在 section-header-block 内时自动套样式，无需 class）*/
.section-header-block h2 { font-size: 30px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; position: relative; display: inline-block; }
.section-header-block h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary); margin: 10px auto 0; border-radius: 2px; }
/* 正文内容保留换行（textarea 的 \n 在前台显示为换行）*/
.section-content { white-space: pre-wrap; word-wrap: break-word; line-height: 1.8; }
/* 页面 H1 标题与首个模块间距统一 */
.container > h1 { margin-bottom: 32px !important; }
.container > h1.h1-extra-gap { margin-bottom: 72px !important; }

/* ===== 简洁大气产品卡（4列竖版图）===== */
.product-card-v2 { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all .2s; border: 1px solid var(--border-light); }
.product-card-v2:hover { box-shadow: 0 8px 24px rgba(42,179,159,0.12); transform: translateY(-3px); border-color: var(--primary); }
.product-card-v2 .pc-img { aspect-ratio: 3/4; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 48px; overflow: hidden; }
.product-card-v2 .pc-body { padding: 12px 14px; }
.product-card-v2 .pc-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 9999px; background: var(--primary-light); color: var(--primary-dark); margin-bottom: 6px; }
.product-card-v2 .pc-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.product-card-v2 .pc-desc { font-size: 12px; color: var(--text-light); }

/* ===== 证书查看角标 ===== */
.cert-view-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 9999px; display: flex; align-items: center; gap: 3px; cursor: pointer; }
.cert-view-badge:hover { background: var(--primary); }

/* ===== 图文卡片（车间展示等，图下有文字描述）===== */
.figure-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all .2s; }
.figure-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.figure-card .fc-figure-img { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.figure-card .fc-figure-caption { padding: 12px 14px; }
.figure-card .fc-figure-caption h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.figure-card .fc-figure-caption p { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* ==========================================================================
   移动端响应式布局适配（2026-07：原页面用内联 grid 绕过了 @media，手机端排版错乱）
   修复思路：用语义化 class 替代内联 grid，统一在此处用 @media 降级
   ========================================================================== */

/* 侧栏 + 主内容布局（产品列表页 / 产品详情页共用） */
.layout-sidebar-main { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
@media (max-width: 768px) {
  .layout-sidebar-main { grid-template-columns: 1fr; }
  /* 手机端侧栏不再吸顶，放到顶部自然排列 */
  .layout-sidebar-main > aside { position: static !important; }
}

/* 新闻列表卡片：左图右文 */
.news-card-grid { display: grid; grid-template-columns: 280px 1fr; gap: 0; overflow: hidden; }
.news-card-grid .news-thumb { min-height: 180px; }
@media (max-width: 768px) {
  .news-card-grid { grid-template-columns: 1fr; }
  .news-card-grid .news-thumb { min-height: 200px; }
}

/* 产品详情：左轮播主图 + 右简介 */
.pd-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 768px) {
  .pd-gallery-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
}

/* 产品详情：缩略图（桌面 5 列 / 手机 4 列） */
.pd-thumbs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 768px) {
  .pd-thumbs-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

/* 产品详情：主图高度自适应（桌面 480px / 手机 360px） */
.pd-main-img { height: 480px; border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
  .pd-main-img { height: 360px; }
}

/* 规格表容器横向滚动保护（长参数值不撑破页面） */
.table-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap > table { table-layout: fixed; word-break: break-word; }

/* 富文本内容溢出保护（新闻/政策/产品详情正文，CMS 注入内容可能含宽 table/pre/长 URL） */
.article-content, .policy-content, .pd-content { overflow-wrap: break-word; word-break: break-word; }
.article-content table, .policy-content table, .pd-content table { max-width: 100%; }
.article-content pre, .policy-content pre, .pd-content pre { overflow-x: auto; max-width: 100%; }
.article-content img, .policy-content img, .pd-content img { max-width: 100%; height: auto; }

/* 触屏 hover 降级：手机点击后 hover 态不会"粘住" */
@media (hover: none) {
  .card-hover:hover, .product-card-v2:hover, .figure-card:hover,
  .floating-btn-v2:hover, .nav-menu a:hover, .nav-menu-v2 a:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* ==========================================================================
   移动端横向溢出修复（375px 视口实测发现的问题）
   ========================================================================== */
/* 语言切换按钮不被 flex 父容器压缩（否则 EN/JP 文字溢出） */
.lang-switch-v2 { flex-shrink: 0; }
/* 页脚品牌名移动端允许换行（nowrap 会撑破网格） */
@media (max-width: 768px) {
  .footer-brand h3 { white-space: normal; }
  /* 页脚 2 列用 minmax 防内容撑破 */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 超小屏（≤480px）页脚变单列，更清爽 */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}



