/* ============================================
   建站服务平台 - 共享样式
   首页参照 zhuzi.com.cn | 栏目页参照 ceglobal.cn
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-deep: #003eb3;
  --primary-light: #e8f3ff;
  --primary-lighter: #f0f7ff;
  --accent: #1677ff;
  --accent-dark: #0958d9;
  --accent-light: #e8f3ff;

  --text-dark: #1a1a2e;
  --text-body: #333333;
  --text-gray: #6c757d;
  --text-light: #999999;

  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-section: #f5f7fa;

  --border-color: #e8eaed;
  --border-light: #f0f0f0;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 80px rgba(22, 119, 255, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 20px 50px rgba(22, 119, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --gradient-primary: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  --gradient-text: linear-gradient(135deg, #1677ff 0%, #4096ff 50%, #0958d9 100%);

  --max-width: 1200px;
  --header-height: 64px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
}

/* ---------- 入场动画 ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-7deg) rotateX(3deg) translateX(48px);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(-7deg) rotateX(3deg) translateX(0);
  }
}

@keyframes glowBreathe {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

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

ul,
ol {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-section);
}

/* ---------- 通用标题 ---------- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title p {
  margin-top: 14px;
  color: var(--text-gray);
  font-size: 16px;
}

/* ---------- 渐变文字 ---------- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 背景装饰 ---------- */
.bg-decoration {
  position: relative;
  overflow: hidden;
}

.bg-decoration::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bg-decoration::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(64, 150, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.25);
}

.btn-primary:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.2);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-lg {
  padding: 14px 40px;
  font-size: 16px;
}

/* ============================================
   Header / 导航栏
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 234, 237, 0.6);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.3);
}

.logo .logo-text {
  color: var(--primary-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > li > a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta .btn {
  padding: 8px 22px;
  font-size: 14px;
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: 0.3s;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #1a2332;
  color: #b0b8c4;
  padding: 48px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.3);
}

.footer-brand .footer-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: #8893a3;
  margin-bottom: 16px;
}

.footer-brand .contact-info {
  font-size: 14px;
  color: #8893a3;
  line-height: 2;
}

.footer-brand .contact-info strong {
  color: #c8d0da;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #8893a3;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #2a3548;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #6a7484;
}

.footer-bottom a {
  color: #6a7484;
}

.footer-bottom a:hover {
  color: var(--primary);
}

.footer-icp {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   首页 - Hero Banner
   ============================================ */
.hero-banner {
  background: linear-gradient(135deg, #001a4d 0%, #003eb3 35%, #0958d9 70%, #1677ff 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(64,150,255,0.3) 0%, transparent 65%);
  border-radius: 50%;
  animation: glowBreathe 5s ease-in-out infinite;
  z-index: 0;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.15s;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 32px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.35s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.55s;
}

.hero-buttons .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.hero-buttons .btn-primary:hover {
  background: #f0f0f0;
  color: var(--primary-deep);
}

.hero-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hero-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ============================================
   首页 - 功能特色栏
   ============================================ */
.feature-bar {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.feature-bar .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-light);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.feature-item:last-child {
  border-right: none;
}

.feature-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f3ff, #f0f7ff);
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-item:hover .icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.25);
}

.feature-item .info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.feature-item .info p {
  font-size: 12px;
  color: var(--text-gray);
}

/* ============================================
   首页 - 文章分类板块
   ============================================ */
.article-section {
  padding: 64px 0;
}

.article-section:nth-child(even) {
  background: var(--bg-section);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.section-header .section-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header .section-name h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.section-header .section-name .tag {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.section-header .more-link {
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.section-header .more-link:hover {
  color: var(--primary);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.article-section:nth-child(even) .article-card {
  background: #fff;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.article-card .card-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
}

/* 渐变缩略图系统 — 替代图标占位 */
.thumb {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb i {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
  transition: transform 0.4s ease;
}

.article-card:hover .thumb i {
  transform: scale(1.15);
}

/* 几何装饰图形 */
.thumb::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -30px;
  right: -30px;
}

.thumb::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  bottom: -20px;
  left: -15px;
  transform: rotate(15deg);
}

/* 分类标签 */
.thumb .thumb-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}

/* 渐变配色方案 */
.thumb-grad-1 { background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%); }
.thumb-grad-2 { background: linear-gradient(135deg, #0958d9 0%, #1677ff 100%); }
.thumb-grad-3 { background: linear-gradient(135deg, #003eb3 0%, #0958d9 100%); }
.thumb-grad-4 { background: linear-gradient(135deg, #1677ff 0%, #69b1ff 100%); }
.thumb-grad-5 { background: linear-gradient(135deg, #0958d9 0%, #4096ff 100%); }
.thumb-grad-6 { background: linear-gradient(135deg, #003eb3 0%, #1677ff 100%); }

.article-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .card-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.article-card:hover .card-body h4 {
  color: var(--primary);
}

.article-card .card-body p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

.article-card .card-meta .date {
  color: var(--text-light);
}

/* ============================================
   首页 - 最新资讯侧边
   ============================================ */
.latest-news {
  background: #fff;
  padding: 64px 0;
}

.latest-news .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.news-col h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-primary) 1;
  display: inline-block;
}

.news-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-list li a {
  font-size: 14px;
  color: var(--text-body);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.news-list li a:hover {
  color: var(--primary);
}

.news-list li .news-date {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

/* ============================================
   栏目页 - Banner
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, #002c6e 0%, #003eb3 45%, #0958d9 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
}

.page-banner::after {
  content: "";
  position: absolute;
  top: -25%;
  right: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(64,150,255,0.35) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  animation: glowBreathe 6s ease-in-out infinite;
}

.banner-flex {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.banner-text {
  flex: 1;
  max-width: 540px;
}

.banner-text .breadcrumb {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 18px;
  animation: fadeIn 0.6s ease both;
  animation-delay: 0.1s;
}

.banner-text .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.banner-text .breadcrumb a:hover {
  color: #fff;
}

.banner-text h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.banner-text p {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.88;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.38s;
}

.banner-cta {
  display: flex;
  gap: 14px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.56s;
}

.banner-visual {
  flex: 0 0 380px;
}

.browser-mockup {
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-7deg) rotateX(3deg);
  animation: slideInRight 0.8s ease both;
  animation-delay: 0.35s;
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f0f2f5;
  border-bottom: 1px solid #e0e0e0;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }

.browser-content {
  padding: 24px;
}

.mock-line {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e8eef5, #d0dae8);
  margin-bottom: 12px;
}

.mock-line.w70 { width: 70%; }
.mock-line.w50 { width: 50%; }
.mock-line.w90 { width: 90%; }

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.mock-box {
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4096ff, #1677ff);
  opacity: 0.5;
}

.btn-light {
  background: #fff;
  color: #0958d9;
  border: none;
}
.btn-light:hover {
  background: #f0f4ff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

@media (max-width: 768px) {
  .banner-flex {
    flex-direction: column;
    gap: 36px;
  }
  .banner-visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
  }
  .banner-text h1 {
    font-size: 28px;
  }
}

/* ============================================
   栏目页 - 服务概览
   ============================================ */
.service-overview {
  padding: 80px 0;
  text-align: center;
}

.service-overview .overview-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.service-overview .overview-subtitle {
  font-size: 17px;
  color: var(--text-gray);
  max-width: 820px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

/* ============================================
   栏目页 - 优势模块
   ============================================ */
.advantage-section {
  padding: 80px 0;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.advantage-card {
  text-align: center;
  padding: 44px 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
  border: 1px solid var(--border-color);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.advantage-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px);
  border-color: transparent;
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-card .adv-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #e8f3ff, #f0f7ff);
  color: var(--primary);
  transition: all 0.4s ease;
}

.advantage-card:hover .adv-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(22, 119, 255, 0.25);
}

.advantage-card h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.75;
}

/* ============================================
   栏目页 - 功能特性交替布局
   ============================================ */
.feature-block {
  padding: 80px 0;
}

.feature-block:nth-child(even) {
  background: var(--bg-section);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-text h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.feature-text .feature-desc {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.85;
  margin-bottom: 28px;
}

.feature-text ul {
  margin-bottom: 28px;
}

.feature-text ul li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-text ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  background: var(--gradient-primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 功能特性视觉区 — UI Mockup */
.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%);
}

.feature-visual::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* Mockup 通用样式 */
.mockup-window {
  width: 88%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(22, 119, 255, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: perspective(800px) rotateY(-5deg);
  transition: transform 0.4s ease;
}

.feature-visual:hover .mockup-window {
  transform: perspective(800px) rotateY(0deg);
}

.mockup-window .mw-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f5f7fa;
  border-bottom: 1px solid #e8eaed;
}

.mockup-window .mw-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-window .mw-bar span:nth-child(1) { background: #ff5f57; }
.mockup-window .mw-bar span:nth-child(2) { background: #febc2e; }
.mockup-window .mw-bar span:nth-child(3) { background: #28c840; }

.mockup-window .mw-body {
  padding: 24px;
}

.mw-line {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e8eef5, #d8e2f0);
  margin-bottom: 14px;
}

.mw-line.w80 { width: 80%; }
.mw-line.w60 { width: 60%; }
.mw-line.w90 { width: 90%; }
.mw-line.w40 { width: 40%; }

.mw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.mw-box {
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4096ff, #1677ff);
  opacity: 0.6;
}

.mw-box:nth-child(2) {
  background: linear-gradient(135deg, #69b1ff, #0958d9);
  opacity: 0.5;
}

.mw-box:nth-child(3) {
  background: linear-gradient(135deg, #91caff, #4096ff);
  opacity: 0.4;
}

/* 手机 Mockup */
.mockup-phone {
  width: 200px;
  height: 340px;
  background: #1a1a2e;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(22, 119, 255, 0.2);
  position: relative;
  z-index: 1;
  transform: perspective(800px) rotateY(-5deg);
  transition: transform 0.4s ease;
}

.feature-visual:hover .mockup-phone {
  transform: perspective(800px) rotateY(0deg);
}

.mockup-phone .mp-screen {
  width: 100%;
  height: 100%;
  background: #f5f7fa;
  border-radius: 22px;
  overflow: hidden;
  padding: 16px;
}

.mockup-phone .mp-header {
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.mockup-phone .mp-header .mp-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  margin-right: 10px;
}

.mockup-phone .mp-header .mp-lines {
  flex: 1;
}

.mockup-phone .mp-header .mp-lines div {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  margin-bottom: 5px;
}

.mockup-phone .mp-header .mp-lines div:last-child {
  width: 60%;
}

.mockup-phone .mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mockup-phone .mp-grid div {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f3ff, #d8e8ff);
}

.mockup-phone .mp-rows div {
  height: 8px;
  border-radius: 4px;
  background: #e8eef5;
  margin-bottom: 8px;
}

/* 地球/全球 Mockup */
.mockup-globe {
  width: 280px;
  height: 280px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-globe .globe-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 20px 60px rgba(22, 119, 255, 0.25),
              inset -20px -20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.mockup-globe .globe-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255,255,255,0.08) 18px, rgba(255,255,255,0.08) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255,255,255,0.08) 18px, rgba(255,255,255,0.08) 20px);
}

.mockup-globe .globe-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  animation: glowBreathe 2s ease-in-out infinite;
}

.mockup-globe .globe-pin:nth-child(2) { top: 25%; left: 60%; animation-delay: 0.3s; }
.mockup-globe .globe-pin:nth-child(3) { top: 55%; left: 30%; animation-delay: 0.6s; }
.mockup-globe .globe-pin:nth-child(4) { top: 40%; left: 75%; animation-delay: 0.9s; }
.mockup-globe .globe-pin:nth-child(5) { top: 65%; left: 55%; animation-delay: 1.2s; }

/* ============================================
   栏目页 - 流程步骤
   ============================================ */
.process-section {
  padding: 80px 0;
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-card);
}

.process-step .step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.2);
}

.process-step:nth-child(2) .step-number {
  background: linear-gradient(135deg, #0958d9, #003eb3);
  box-shadow: 0 8px 24px rgba(9, 88, 217, 0.2);
}

.process-step:nth-child(3) .step-number {
  background: linear-gradient(135deg, #4096ff, #1677ff);
  box-shadow: 0 8px 24px rgba(64, 150, 255, 0.2);
}

.process-step:nth-child(4) .step-number {
  background: linear-gradient(135deg, #003eb3, #002c6e);
  box-shadow: 0 8px 24px rgba(0, 62, 179, 0.2);
}

.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* 步骤之间的连接线 */
.process-steps::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(
    to right,
    #1677ff,
    #0958d9,
    #4096ff,
    #003eb3
  );
  opacity: 0.2;
  z-index: 0;
}

/* ============================================
   栏目页 - CTA
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, #001a4d 0%, #003eb3 50%, #0958d9 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(64,150,255,0.25) 0%, transparent 65%);
  border-radius: 50%;
  animation: glowBreathe 6s ease-in-out infinite;
}

.cta-section h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  background: #fff;
  color: var(--primary-dark);
  font-size: 16px;
  padding: 14px 40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
  background: #f0f4ff;
  color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ============================================
   栏目页 - 数据统计
   ============================================ */
.stats-section {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-section) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(22, 119, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 24px 12px;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

.stat-item .stat-number {
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-item .stat-number .unit {
  font-size: 22px;
}

.stat-item .stat-label {
  font-size: 15px;
  color: var(--text-gray);
  font-weight: 500;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .feature-bar .container {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-color);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > li {
    width: 100%;
  }

  .main-nav > li > a {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta .btn:first-child {
    display: none;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .feature-bar .container {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .latest-news .container {
    grid-template-columns: 1fr;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-row.reverse .feature-text {
    order: 1;
  }

  .feature-row.reverse .feature-visual {
    order: 2;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .page-banner h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- 无障碍：尊重用户减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================
   滚动入场动画系统
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-48px);
}

.reveal.reveal-right {
  transform: translateX(48px);
}

.reveal.reveal-scale {
  transform: scale(0.85);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ---------- 资讯列表 hover 微动效 ---------- */
.news-list li {
  transition: padding-left 0.25s ease;
}

.news-list li:hover {
  padding-left: 8px;
}

/* ---------- 数字增长动画辅助 ---------- */
.stat-number {
  transition: color 0.3s ease;
}

/* ================================================================
   模板库 template.html — 复刻 demo.waimaoniu.com 风格
   ================================================================ */

/* ---------- 模板库主体 ---------- */
.tpl-gallery {
  background: #f2f2f2;
  padding: 0 0 80px;
}

.tpl-gallery .container {
  max-width: 1440px;
}

/* ---------- 行业分类 ---------- */
.industry-bar {
  background: #f2f2f2;
  padding: 15px 0 5px;
}

.industry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.ind-tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid #eee;
  background: #eee;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.ind-tab:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.ind-tab.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.ind-tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: all 0.4s;
  z-index: 0;
}

.ind-tab:hover::after { width: 100%; }
.ind-tab span { position: relative; z-index: 1; }

.ind-count {
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.7;
}

/* ---------- 结果计数 ---------- */
.gallery-header {
  padding: 10px 0 15px;
}

.result-count {
  font-size: 14px;
  color: #666;
}

.result-count strong {
  color: var(--primary);
  font-size: 16px;
}

/* ---------- 模板卡片网格 ---------- */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.tpl-card {
  margin: 1%;
  background: #fff;
  position: relative;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s cubic-bezier(0.215,0.61,0.355,1),
              transform 0.3s cubic-bezier(0.215,0.61,0.355,1);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.tpl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(163,177,191,0.35);
}

/* ---- 缩略图区 ---- */
.tpl-card-thumb {
  position: relative;
  height: 350px;
  background: #eee;
  padding: 10px;
  overflow: hidden;
}

.tpl-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.tpl-card:hover .tpl-card-thumb img {
  transform: scale(1.03);
}

/* 边框动画效果 */
.tpl-card-thumb::before,
.tpl-card-thumb::after {
  content: "";
  position: absolute;
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-sizing: border-box;
  z-index: 2;
}

.tpl-card-thumb::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 10px solid var(--primary);
  border-bottom: 10px solid var(--primary);
  transform: scale(0, 1);
  opacity: 0;
}

.tpl-card-thumb::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-left: 10px solid var(--primary);
  border-right: 10px solid var(--primary);
  transform: scale(1, 0);
  opacity: 0;
}

.tpl-card:hover .tpl-card-thumb::before,
.tpl-card:hover .tpl-card-thumb::after {
  opacity: 1;
  transform: scale(1, 1);
}

/* ---- 标题区 ---- */
.tpl-card-title {
  display: block;
  font-size: 16px;
  line-height: 40px;
  color: #333;
  text-align: center;
  background: #ddd;
  transition: background 0.5s, color 0.3s;
  text-decoration: none;
  font-weight: normal;
  padding: 5px 0;
}

.tpl-card:hover .tpl-card-title {
  color: var(--primary);
}

/* 站易通 标识 */
.tpl-badge {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  background: #28a745;
  padding: 2px 6px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: background 0.18s ease, transform 0.12s ease;
}

.tpl-card:hover .tpl-badge {
  background: #1e7e34;
  transform: translateY(-1px);
}

/* ---- 电脑端按钮（hover显示） ---- */
.tpl-pc-btn {
  display: block;
  position: absolute;
  z-index: 9;
  top: 10%;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.tpl-card:hover .tpl-pc-btn {
  top: 130px;
  opacity: 0.85;
}

.tpl-pc-btn a {
  display: inline-block;
  height: 38px;
  line-height: 38px;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 0 20px;
  min-width: 75px;
  transition: all 0.3s ease;
  border-radius: 2px;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
}

.tpl-pc-btn a:hover {
  background: #333;
  border-color: #333;
}

/* ---------- 无结果 ---------- */
.no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.no-result i { font-size: 48px; color: #ccc; margin-bottom: 16px; }
.no-result p { font-size: 18px; color: #666; }

/* ---------- 分页 ---------- */
.tpl-pagination {
  text-align: center;
  padding: 30px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.page-btn:hover {
  color: #fff;
  border-color: #666;
  background: #666;
}

.page-btn.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.page-ellipsis {
  padding: 0 6px;
  color: #999;
  font-size: 14px;
}

/* ================================================================
   预览弹窗（iframe 电脑端/手机端）
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}

.preview-modal-box {
  background: #fff;
  border-radius: 8px;
  max-width: 1100px;
  width: 100%;
  max-height: 94vh;
  overflow: hidden;
  position: relative;
  animation: fadeUp 0.35s ease;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: rgba(0,0,0,0.35); }

/* 弹窗顶部 */
.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}

.preview-modal-title { display: flex; align-items: center; gap: 12px; }
.preview-modal-title h3 { font-size: 20px; font-weight: 700; color: #fff; }

.preview-modal-ind {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 500;
}

.preview-modal-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 3px;
}

.preview-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.preview-tab:hover { color: #fff; }

.preview-tab.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 弹窗预览区 */
.preview-modal-body {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #f5f6f8;
  min-height: 400px;
}

/* 电脑端 */
.pv-desktop-frame {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
}

.pv-desktop-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #e9eaed;
  flex-shrink: 0;
}

.pv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}

.pv-dot:nth-child(1) { background: #ff5f57; }
.pv-dot:nth-child(2) { background: #ffbd2e; }
.pv-dot:nth-child(3) { background: #28ca42; }

.pv-desktop-url {
  flex: 1;
  margin-left: 8px;
  padding: 5px 14px;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-desktop-screen {
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #fff;
}

.pv-desktop-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 手机端 */
.pv-phone-frame {
  width: 300px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  position: relative;
}

.pv-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 6px;
  background: #333;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.pv-phone-screen {
  width: 100%;
  height: 560px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
}

.pv-phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 弹窗底部 */
.preview-modal-desc {
  padding: 20px 24px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .tpl-card { margin: 2%; }
  .tpl-card-thumb { height: 250px; }
  .tpl-pc-btn { display: none; }
  .preview-modal-header { flex-direction: column; gap: 12px; text-align: center; }
  .pv-desktop-screen { height: 400px; }
}

@media (max-width: 600px) {
  .preview-modal-body { padding: 20px 12px; }
  .pv-desktop-frame { max-width: 100%; }
  .pv-desktop-screen { height: 320px; }
  .pv-phone-frame { width: 260px; }
  .pv-phone-screen { height: 440px; }
}
