/* FPS-FUR 前台样式 · 蓝色现代风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #60a5fa;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --line: #e2e8f0;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 0; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--primary-dark); }
.logo .paw { font-size: 24px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text); font-size: 14.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px; transition: all .15s;
}
.nav-links a:hover { background: #eff6ff; color: var(--primary); }
.nav-links a.active { background: var(--primary); color: #fff; }
.cart-badge { position: relative; display: inline-flex; align-items: center; }
.cart-badge .badge {
  position: absolute; top: -4px; right: -6px; background: var(--danger); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; text-align: center; line-height: 16px; padding: 0 4px;
}
.nav-links a.user-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; padding: 0; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.nav-avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.nav-avatar-default { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; }
.user-link.active .nav-avatar-default { background: var(--primary); color: #fff; }
.nav-bell { position: relative; display: inline-flex; align-items: center; padding: 0 4px; color: var(--text); }
.nav-bell:hover { color: var(--primary); }
.bell-badge {
  position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; font-weight: 700; line-height: 1;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #f5f3ff 60%, #fdf4ff 100%);
  color: var(--text); padding: 70px 20px 60px; text-align: center; position: relative; overflow: hidden;
  min-height: 480px; display: flex; align-items: center; justify-content: center;
}
.hero::before {
  content: ''; position: absolute; top: -20%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, rgba(99,102,241,0.2) 40%, transparent 70%);
  border-radius: 50%; filter: blur(30px); animation: float1 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; right: -10%; width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(168,85,247,0.35) 0%, rgba(236,72,153,0.2) 40%, transparent 70%);
  border-radius: 50%; filter: blur(30px); animation: float2 10s ease-in-out infinite;
}
.hero .hero-blob3 {
  position: absolute; top: 30%; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.25) 0%, transparent 70%);
  filter: blur(40px); animation: float3 12s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-25px,-15px)} }
@keyframes float3 { 0%,100%{transform:translateX(-50%) scale(1)} 50%{transform:translateX(-50%) scale(1.2)} }
.hero-inner {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px; padding: 50px 56px;
  box-shadow: 0 8px 40px rgba(30,58,138,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative; z-index: 1; max-width: 640px;
}
.hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; position: relative; color: var(--text); }
.hero p { font-size: 17px; color: var(--text-light); max-width: 560px; margin: 0 auto 28px; position: relative; }
.hero .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .btn { font-size: 16px; padding: 12px 30px; }
.hero .btn-white { background: var(--primary); color: #fff; }
.hero .btn-white:hover { background: var(--primary-dark); }
.hero .btn-ghost { background: rgba(255,255,255,0.6); color: var(--primary); border: 1.5px solid rgba(59,130,246,0.3); backdrop-filter: blur(8px); }
.hero .btn-ghost:hover { background: #fff; border-color: var(--primary); }

/* 按钮 */
.btn {
  display: inline-block; background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
  padding: 9px 20px; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 500;
  transition: all .15s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #eff6ff; }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { background: #f1f5f9; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-gray { background: #94a3b8; }
.btn-gray:hover { background: #64748b; }
.btn-block { display: block; width: 100%; text-align: center; }

/* 区块 */
.section { padding: 48px 0; }
.section-title {
  font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title .more { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--primary); }

/* 统计条 */
.stats-bar {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-top: -30px;
  position: relative; z-index: 2; box-shadow: var(--shadow);
}
.stats-bar .item { text-align: center; }
.stats-bar .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stats-bar .label { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  transition: all .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card .cover {
  height: 170px; display: flex; align-items: center; justify-content: center; font-size: 56px;
  background: #fff; color: var(--text-light);
}
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 16px; font-weight: 600; }
.card .desc { font-size: 13px; color: var(--text-light); flex: 1; line-height: 1.5; }
.card .meta { font-size: 12.5px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.price { color: var(--danger); font-weight: 700; font-size: 18px; }
.price small { font-size: 12px; font-weight: 400; color: var(--text-light); }

/* 页面头 */
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: 28px; font-weight: 700; color: var(--text); }
.breadcrumb { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* 详情页 */
.detail { display: grid; grid-template-columns: 340px 1fr; gap: 32px; margin: 28px 0; }
.detail .cover {
  height: 320px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 96px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--primary-dark);
}
.detail h1 { font-size: 26px; margin-bottom: 8px; }
.detail .info { color: var(--text-light); font-size: 14px; margin: 6px 0; }
.detail .desc { margin: 16px 0; white-space: pre-wrap; line-height: 1.7; }

/* 选项 */
.option-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.option {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; background: #fff; cursor: pointer; transition: all .15s;
}
.option:hover { border-color: var(--accent); }
.option.selected { border-color: var(--primary); background: #eff6ff; }
.option .oname { font-weight: 600; flex: 1; }
.option .odesc { font-size: 12.5px; color: var(--text-light); margin-top: 2px; }
.option .ostock { font-size: 12px; color: var(--text-light); }
.qty-box { display: flex; align-items: center; gap: 8px; }
.qty-box button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 16px; cursor: pointer; line-height: 1; color: var(--text);
}
.qty-box button:hover { background: #f1f5f9; }
.qty-box input { width: 50px; text-align: center; border: 1px solid var(--line); border-radius: 8px; height: 32px; font-size: 14px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
th { background: #f8fafc; font-weight: 600; color: var(--text); }
tr:last-child td { border-bottom: none; }

/* 状态徽章 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-shipped { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #f1f5f9; color: #475569; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text); transition: border .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  max-width: 480px; margin: 32px auto; box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 18px; color: var(--text); font-size: 22px; }
.form-card .sub { text-align: center; color: var(--text-light); margin-bottom: 18px; font-size: 13px; }

/* 提示 */
.alert { padding: 11px 16px; border-radius: 10px; font-size: 14px; margin: 14px 0; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-success { background: #d1fae5; color: #065f46; }

/* 页脚 */
.site-footer {
  margin-top: 56px; border-top: 1px solid var(--line); padding: 36px 20px 24px;
  text-align: center; color: var(--text-light); font-size: 13px; background: #fff;
}
.site-footer .paw { font-size: 22px; margin-bottom: 8px; }
.site-footer .links { margin: 10px 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.site-footer .icp-line { margin-top: 6px; font-size: 12.5px; }
.site-footer .icp-line a { color: var(--text-light); text-decoration: none; transition: color .2s; }
.site-footer .icp-line a:hover { color: var(--primary, #6366f1); text-decoration: underline; }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty .big { font-size: 56px; margin-bottom: 12px; }

/* 关于页 */
.about-hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 60px 20px; text-align: center;
}
.about-hero h1 { font-size: 34px; margin-bottom: 12px; }
.about-hero p { opacity: .9; max-width: 600px; margin: 0 auto; }
.about-section { padding: 48px 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center;
}
.about-card .icon { font-size: 40px; margin-bottom: 12px; }
.about-card h3 { margin-bottom: 8px; }
.about-card p { color: var(--text-light); font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav { flex-wrap: nowrap; gap: 12px; }
  .detail { grid-template-columns: 1fr; }
  .detail .cover { height: 220px; }
  .hero h1 { font-size: 28px; }
  .stats-bar { gap: 28px; }
}

/* 新闻 */
.news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.news-card { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; transition:var(--trans); display:block; color:var(--text); }
.news-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.news-cover { width:100%; height:auto; max-height:260px; object-fit:contain; object-position:center; background:linear-gradient(135deg,var(--primary),var(--accent)); display:block; }
.news-body { padding:18px; }
.news-date { font-size:12px; color:var(--text-light); margin-bottom:8px; }
.news-card h3 { font-size:17px; margin-bottom:8px; }
.news-card p { font-size:13.5px; color:var(--text-light); line-height:1.6; }

/* 关于页 */
.about-hero { background:linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; padding:60px 20px; text-align:center; }
.about-hero h1 { font-size:36px; margin-bottom:12px; }
.about-hero p { font-size:16px; opacity:.9; max-width:600px; margin:0 auto; }
.about-section { padding:40px 0; }
.about-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:20px; }
.about-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px; text-align:center; transition:var(--trans); }
.about-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.about-card .icon { font-size:40px; margin-bottom:12px; }
.about-card h3 { margin-bottom:8px; }
.about-card p { font-size:13.5px; color:var(--text-light); line-height:1.6; }

/* 文章内容 */
.article-content img { max-width:100%; border-radius:12px; }
.article-content h2 { font-size:22px; margin:24px 0 12px; }
.article-content h3 { font-size:18px; margin:20px 0 10px; }
.article-content p { margin-bottom:14px; }
.article-content ul, .article-content ol { margin:12px 0; padding-left:24px; }
.article-content blockquote { border-left:4px solid var(--primary); padding:8px 16px; background:#f8fafc; margin:12px 0; border-radius:0 8px 8px 0; }

/* 首页优化 */
.hero { min-height: 480px; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.hero-inner { text-align: center; max-width: 720px; }
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; letter-spacing: 1px; }
.hero p { font-size: 17px; opacity: .92; line-height: 1.8; margin-bottom: 28px; }
.hero .btns { display: flex; gap: 14px; justify-content: center; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.notice-bar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 22px; display: flex; align-items: center; gap: 14px; margin: 24px auto; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.notice-tag { font-weight: 700; color: var(--primary); font-size: 14px; white-space: nowrap; }
.notice-text { flex: 1; color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-more { color: var(--text-light); font-size: 13px; white-space: nowrap; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-head h2 { font-size: 24px; font-weight: 700; }
.more { font-size: 14px; color: var(--text-light); }
.more:hover { color: var(--primary); }

.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(37,99,235,.12); }
.card .cover { border-radius: 14px 14px 0 0; }

/* 用户中心 */
.profile-header { background: linear-gradient(135deg,var(--primary),var(--accent)); color: #fff; padding: 50px 20px 40px; text-align: center; }
.profile-inner { max-width: 600px; margin: 0 auto; }
.avatar-large { width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.2); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 40px; border: 3px solid rgba(255,255,255,.4); }
.profile-header h1 { font-size: 26px; margin-bottom: 8px; }
.profile-bio { opacity: .9; font-size: 15px; margin-bottom: 8px; }
.profile-contact { opacity: .85; font-size: 14px; margin-bottom: 16px; }
.profile-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.avatar-preview { width: 64px; height: 64px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

/* 帖子 */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: var(--trans); }
.post-card:hover { box-shadow: var(--shadow); }
.post-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.post-title { font-size: 18px; font-weight: 700; color: var(--text); }
.post-title:hover { color: var(--primary); }
.post-author { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-light); }
.post-date { font-size: 12px; color: var(--text-light); }
.post-excerpt { color: var(--text-light); font-size: 14px; line-height: 1.7; margin: 8px 0; }
.post-actions { display: flex; gap: 8px; margin-top: 12px; }
.post-images { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; margin: 20px 0; }
.post-image { width: 100%; border-radius: 12px; object-fit: cover; }

/* Hero 左右分栏 */
.hero-split { display: flex; align-items: center; min-height: 480px; padding: 60px 20px; max-width: 1200px; margin: 0 auto; gap: 40px; }
.hero-split-text { flex: 1; }
.hero-split-text h1 { font-size: 42px; font-weight: 800; color: var(--text); margin-bottom: 16px; line-height: 1.2; }
.hero-split-text p { font-size: 17px; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; }
.hero-split-img { flex: 1; display: flex; justify-content: center; }
.hero-split-img img { max-width: 100%; max-height: 400px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); object-fit: cover; }
.hero-placeholder { width: 100%; max-width: 400px; height: 300px; background: linear-gradient(135deg,var(--primary),var(--accent)); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; font-weight: 800; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Hero 轮播 */
.hero-carousel { position: relative; height: 480px; overflow: hidden; }
.carousel-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; }
.carousel-slide.active { opacity: 1; }
.carousel-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(30,58,138,0.6),rgba(67,56,202,0.5)); display: flex; align-items: center; }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* Hero 图片标题模式 */
.hero-title-img { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-title-image { max-width: 100%; max-height: 180px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1)); }

/* 全屏 Hero */
.hero-full { min-height: calc(100vh - 64px); height: auto; padding: 40px 20px; }
.hero-full .hero-inner { padding: 40px 48px; }
.hero-sub { font-size: 17px; color: var(--text-light); max-width: 560px; margin: 0 auto 28px; line-height: 1.8; }
.hero-side-img { max-width: 280px; max-height: 180px; object-fit: contain; margin: 0 auto 24px; border-radius: 12px; }

/* 了解更多按钮 */
.btn-hero-more {
  background: var(--primary); color: #fff; font-size: 15px; padding: 12px 36px;
  border-radius: 30px; font-weight: 600; letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
  transition: all .25s;
}
.btn-hero-more:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}

/* 首页透明化：内容区透出背景，文字卡片白底 */
#page-content { min-height: 1px; }
body { background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 30%, #f0f4ff 100%); background-attachment: fixed; }
.container.section { background: transparent; }
.section-head {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px);
  padding: 14px 20px; border-radius: 12px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.6);
}
.notice-bar {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
}
.empty { background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); }

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .container { padding: 0 14px; }
  
  /* 导航 */
  .nav { padding: 10px 0; gap: 8px; }
  .logo span:last-child { font-size: 15px; }
  .logo-mark { width: 28px; height: 28px; font-size: 14px; }
  
  /* Hero */
  .hero-full { min-height: calc(100vh - 56px); padding: 24px 14px; }
  .hero-full .hero-inner { padding: 28px 20px; border-radius: 20px; }
  .hero h1 { font-size: 26px !important; margin-bottom: 10px !important; }
  .hero-sub, .hero p { font-size: 14px !important; margin-bottom: 18px !important; line-height: 1.7 !important; }
  .hero-title-image { max-height: 100px; }
  .hero-side-img { max-width: 200px; max-height: 120px; }
  .btn-hero-more { font-size: 14px; padding: 10px 28px; }
  .hero-carousel { min-height: calc(100vh - 56px) !important; height: auto !important; }
  
  /* 网格单列 */
  .grid { grid-template-columns: 1fr !important; gap: 14px; }
  .news-grid { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr !important; }
  .post-images { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* 卡片 */
  .card .cover { height: 160px; }
  .card .body { padding: 12px 14px; }
  .card h3 { font-size: 15px; }
  .card .desc { font-size: 13px; }
  
  /* 板块标题 */
  .section-head { padding: 10px 14px; margin-bottom: 14px; }
  .section-head h2 { font-size: 18px; }
  .section { padding: 24px 0 !important; }
  
  /* 公告栏 */
  .notice-bar { padding: 10px 14px; font-size: 13px; flex-wrap: wrap; }
  
  /* 表单 */
  .form-card { padding: 20px 16px !important; }
  .form-card h2 { font-size: 20px; }
  .form-group label { font-size: 13px; }
  .form-group input, .form-group textarea, .form-group select { font-size: 15px; padding: 10px 12px; }
  .btn { font-size: 14px; padding: 10px 18px; }
  .btn-block { width: 100%; }
  
  /* 详情页 */
  .detail { grid-template-columns: 1fr !important; gap: 16px; }
  .detail .cover { height: 200px !important; }
  .detail-info h1 { font-size: 22px; }
  .price-large { font-size: 24px; }
  
  /* 表格横向滚动 */
  .table-wrap, table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }
  
  /* 用户中心 */
  .profile-header { padding: 36px 14px 28px; }
  .avatar-large { width: 72px; height: 72px; font-size: 30px; }
  .profile-header h1 { font-size: 20px; }
  .profile-bio { font-size: 13px; }
  .profile-actions { flex-direction: column; width: 100%; }
  .profile-actions .btn { width: 100%; text-align: center; }
  
  /* 帖子 */
  .post-card { padding: 14px; }
  .post-title { font-size: 16px; }
  .post-excerpt { font-size: 13px; }
  
  /* 后台 */
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 8px; }
  .admin-sidebar a { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .admin-content { padding: 16px 14px; }
  .page-header h1 { font-size: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-card { padding: 14px; }
  .stat-card .num { font-size: 22px; }
  
  /* 页脚 */
  .site-footer { padding: 24px 14px; font-size: 12px; }
  .site-footer .links { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .footer-mark { font-size: 18px; }
  
  /* 空状态 */
  .empty { padding: 30px 16px; }
  .empty .big { font-size: 36px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 22px !important; }
  .hero-full .hero-inner { padding: 22px 16px; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .post-images { grid-template-columns: 1fr !important; }
  .hero-carousel .carousel-dots { bottom: 12px; }
  .dot { width: 8px; height: 8px; }
  .dot.active { width: 20px; }
}

/* 汉堡菜单按钮 */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端导航重写 */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav { justify-content: space-between; flex-wrap: nowrap; }
  /* 移动端必须移除 backdrop-filter，否则内部 fixed 抽屉菜单被限制在 header 内无法全屏 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.98); }
  
  /* Hero 移动端优化：垂直靠上，水平居中 */
  .hero-full { min-height: 70vh; padding: 20px 14px; justify-content: center; align-items: flex-start; padding-top: 24px; }
  .hero-full .hero-inner { padding: 24px 18px; margin-top: 0; }
  .hero-title-image { max-height: 80px; margin-bottom: 8px; }
  .hero-sub { margin-bottom: 16px !important; }
  .btn-hero-more { padding: 10px 32px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero-full { min-height: 65vh; }
  .hero-full .hero-inner { padding: 20px 14px; }
  .hero-title-image { max-height: 64px; }
}

/* 侧边抽屉菜单（覆盖之前的下拉样式） */
@media (max-width: 768px) {
  .nav-links {
    display: flex !important;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 75%; max-width: 300px;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(24px);
    flex-direction: column; padding: 70px 20px 20px; gap: 0;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    border: none; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 14px 12px; border-bottom: 1px solid #f1f5f9; font-size: 16px;
    width: 100%; border-radius: 0; display: flex; align-items: center;
  }
  .nav-links a.active { background: #eff6ff; color: var(--primary); border-radius: 10px; border-bottom-color: transparent; }
  .nav-links a.user-link { width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 50%; align-self: flex-start; margin: 4px 0; border-bottom: none; }
  .nav-links a.user-link .nav-avatar-img, .nav-links a.user-link .nav-avatar-default { width: 40px; height: 40px; }
  .nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 998; opacity: 0; transition: opacity .3s;
  }
  .nav-overlay.show { display: block; opacity: 1; }
  .nav-toggle { z-index: 1000; position: relative; }
  .nav-toggle.active span { background: var(--text); }
}

/* Hero Banner 模式（全屏背景图+文字叠加） */
.hero-banner {
  position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-color: #1e3a8a;
  padding: 60px 20px; text-align: center; overflow: hidden;
}
.hero-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.5) 100%);
}
.hero-banner-content { position: relative; z-index: 1; max-width: 640px; }
.hero-banner-title { max-width: 80%; max-height: 140px; object-fit: contain; margin: 0 auto 20px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.hero-banner-h1 { color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-banner-sub { color: rgba(255,255,255,0.92); font-size: 17px; line-height: 1.8; margin-bottom: 28px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.btn-banner {
  display: inline-block; background: #fff; color: var(--text); font-size: 17px; font-weight: 700;
  padding: 14px 44px; border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all .25s;
}
.btn-banner:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.3); }

/* Hero 透明模式：去掉深蓝色块/渐变/光斑，直接透出网站背景 */
.hero.hero-transparent { background: transparent !important; }
.hero.hero-transparent::before,
.hero.hero-transparent::after { display: none !important; }
.hero.hero-transparent .hero-blob3 { display: none !important; }
.hero.hero-transparent .hero-inner {
  background: transparent !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: none !important; box-shadow: none !important;
}
.hero-banner.hero-transparent { background: transparent !important; background-color: transparent !important; }
.hero-banner.hero-transparent .hero-banner-h1 { color: var(--primary-dark); text-shadow: none; }
.hero-banner.hero-transparent .hero-banner-sub { color: var(--text-light); text-shadow: none; }
.hero-banner.hero-transparent .btn-banner {
  background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.hero-banner.hero-transparent .btn-banner:hover { background: var(--primary-dark); }
.hero.hero-transparent h1 { color: var(--primary-dark); }
.hero.hero-transparent .hero-sub { color: var(--text-light); }
.btn-hero-more {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 600;
  padding: 12px 36px; border-radius: 50px; font-size: 15px; position: relative;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3); transition: all .25s;
}
.btn-hero-more:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* 移动端底部 Tab 导航 */
.mobile-tabbar {
  display: none;
  position: fixed !important; bottom: 0 !important; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--line); z-index: 900;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.45s ease;
  will-change: transform, opacity;
  transform: translateY(0);
  opacity: 1;
}
.mobile-tabbar.tabbar-hidden {
  transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  opacity: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  pointer-events: none;
}
.mobile-tabbar-inner { display: flex; justify-content: space-around; max-width: 500px; margin: 0 auto; }
.mobile-tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; font-size: 11px; color: var(--text-light); text-decoration: none;
  flex: 1;
}
.mobile-tabbar a svg { width: 22px; height: 22px; }
.mobile-tabbar a.active { color: var(--primary); }
.mobile-tabbar a.active svg { stroke: var(--primary); }

@media (max-width: 768px) {
  .mobile-tabbar { display: block !important; }
  body { padding-bottom: 64px; }
  .site-footer { margin-bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .hero-banner { min-height: 70vh; }
  .hero-banner-title { max-height: 100px; }
  .hero-banner-h1 { font-size: 26px; }
  .hero-banner-sub { font-size: 14px; margin-bottom: 20px; }
  .btn-banner { font-size: 15px; padding: 12px 36px; }
}
.logo-img { height: 40px; width: auto; border-radius: 4px; object-fit: contain; }
@media (max-width: 768px) { .logo-img { height: 32px; } }

/* ============ 文档/协议页面 ============ */
.doc-hero { background: linear-gradient(135deg, var(--primary-dark, #1e3a8a), var(--primary, #4f46e5)); color: #fff; padding: 56px 20px 48px; text-align: center; }
.doc-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.doc-hero p { opacity: .85; font-size: 14.5px; }
.doc-wrap { max-width: 860px; margin: 0 auto; padding: 36px 20px 64px; }
.doc-card { background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; padding: 36px 40px; }
.doc-card h2 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary, #4f46e5); }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h3 { font-size: 15.5px; font-weight: 600; margin: 18px 0 8px; }
.doc-card p, .doc-card li { color: var(--text-light, #4b5563); line-height: 1.9; font-size: 14.5px; }
.doc-card ul, .doc-card ol { padding-left: 22px; margin: 8px 0; }
.doc-card li { margin-bottom: 6px; }
.doc-meta { color: var(--text-faint, #9ca3af); font-size: 13px; text-align: center; margin-top: 18px; }
.doc-toc { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.doc-toc a { font-size:13px; padding:6px 14px; background:#fff; border:1px solid var(--line,#e5e7eb); border-radius:20px; color:var(--text-light,#4b5563); transition:all .15s; }
.doc-toc a:hover { border-color:var(--primary,#4f46e5); color:var(--primary,#4f46e5); }
@media (max-width: 600px) {
  .doc-hero { padding: 40px 16px 34px; }
  .doc-hero h1 { font-size: 23px; }
  .doc-card { padding: 24px 18px; border-radius: 12px; }
}
/* 商务合作 */
.coop-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:16px 0; }
.coop-item { background:#f8fafc; border:1px solid var(--line,#e5e7eb); border-radius:12px; padding:22px; }
.coop-item h3 { margin:0 0 8px; font-size:16px; }
.coop-item p { font-size:13.5px; margin:0; }
.coop-steps { counter-reset: step; margin:16px 0; }
.coop-step { position:relative; padding:14px 14px 14px 52px; margin-bottom:10px; background:#f8fafc; border-radius:10px; }
.coop-step::before { counter-increment: step; content: counter(step); position:absolute; left:14px; top:14px; width:26px;height:26px;background:var(--primary,#4f46e5);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700; }
.coop-step strong { display:block; }
.coop-step span { font-size:13px;color:var(--text-light,#6b7280); }
/* 联系我们 */
.contact-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:18px 0; }
.contact-cell { background:#f8fafc;border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:22px;text-align:center; }
.contact-cell .ico { font-size:26px; }
.contact-cell .k { font-size:13px;color:var(--text-light,#6b7280);margin:8px 0 4px; }
.contact-cell .v { font-size:17px;font-weight:700; word-break:break-all; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr !important; gap: 0 !important; } }
