/* ============================================================
   iluohuan.com  PbootCMS 模板样式
   主题：TikTok 海外业务（黑 / 青 / 红）
   ============================================================ */

:root {
  --ink: #161823;          /* TikTok 深黑 */
  --ink-soft: #232533;
  --cyan: #25F4EE;         /* TikTok 青 */
  --red: #FE2C55;          /* TikTok 红 */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 8px 30px rgba(20, 23, 35, 0.08);
  --radius: 14px;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(254, 44, 85, .35); }
.btn-cyan { background: var(--cyan); color: var(--ink); box-shadow: 0 8px 20px rgba(37, 244, 238, .35); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================================================
   头部
   ============================================================ */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 999; }

.topbar { background: var(--ink-soft); font-size: 13px; color: #c7cad6; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: var(--cyan); }
.topbar-right span { margin-left: 18px; }

.navbar { background: var(--ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: auto; border-radius: 8px; }
.logo-badge {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px;
  background: linear-gradient(135deg, var(--cyan), var(--red)); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.logo-text { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .5px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: #e8eaf0; padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  position: relative; white-space: nowrap;
}
.nav-link:hover { color: var(--cyan); background: rgba(37,244,238,.08); }

.nav-search { display: flex; align-items: center; margin-left: 12px; }
.nav-search input {
  height: 38px; width: 170px; border: none; border-radius: 999px 0 0 999px;
  padding: 0 16px; font-size: 14px; outline: none; background: #2a2d3e; color: #fff;
}
.nav-search input::placeholder { color: #8a8ea0; }
.nav-search button {
  height: 38px; border: none; background: var(--red); color: #fff; padding: 0 18px;
  border-radius: 0 999px 999px 0; cursor: pointer; font-size: 14px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ============================================================
   首屏 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(37,244,238,.25), transparent 60%),
    radial-gradient(900px 500px at 10% 120%, rgba(254,44,85,.30), transparent 60%),
    var(--ink);
  color: #fff; padding: 90px 0 100px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: 44px; line-height: 1.2; font-weight: 800; margin-bottom: 18px; }
.hero h1 .accent { color: var(--cyan); }
.hero p.lead { font-size: 18px; color: #c9cdda; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; margin-top: 46px; flex-wrap: wrap; }
.hero-badges .badge { }
.hero-badges .num { font-size: 30px; font-weight: 800; color: var(--cyan); }
.hero-badges .lbl { font-size: 14px; color: #aeb2c2; }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .kicker { color: var(--red); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: 30px; font-weight: 800; margin: 8px 0 10px; }
.section-head p { color: var(--muted); }

/* 优势 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ico { font-size: 34px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* 核心业务（栏目卡片） */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--red)); transform: scaleX(0); transform-origin: left; transition: .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .s-ico {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(37,244,238,.18), rgba(254,44,85,.18)); font-size: 30px;
}
.service-card .s-ico img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { font-size: 18px; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: 14px; min-height: 42px; }
.service-card .more { color: var(--red); font-weight: 600; font-size: 14px; margin-top: 10px; display: inline-block; }

/* 两栏布局（首页资讯 + 侧栏） */
.home-news { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }

/* 文章网格 */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--ink-soft)); position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb .cat {
  position: absolute; left: 12px; top: 12px; background: rgba(22,24,35,.7); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.post-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.post-body h3 a:hover { color: var(--red); }
.post-desc {
  color: var(--muted); font-size: 14px; flex: 1; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; gap: 14px; color: #9aa0ad; font-size: 13px; margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }

/* 侧栏 */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget-title {
  font-size: 17px; font-weight: 800; margin-bottom: 16px; padding-left: 12px; position: relative;
}
.widget-title::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 18px; border-radius: 4px;
  background: linear-gradient(var(--cyan), var(--red));
}
.hot-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.hot-list li:last-child { border-bottom: none; }
.hot-rank {
  flex: 0 0 24px; height: 24px; border-radius: 6px; background: var(--bg-soft); color: var(--muted);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hot-list li:nth-child(1) .hot-rank,
.hot-list li:nth-child(2) .hot-rank,
.hot-list li:nth-child(3) .hot-rank { background: var(--red); color: #fff; }
.hot-list .t { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.contact-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; }
.contact-box h4 { font-size: 16px; margin-bottom: 12px; }
.contact-box p { font-size: 14px; color: #c7cad6; margin-bottom: 6px; }
.contact-box .btn { width: 100%; text-align: center; margin-top: 12px; }

/* ============================================================
   内页通用：banner + 面包屑
   ============================================================ */
.page-banner { background: var(--ink); color: #fff; padding: 40px 0; position: relative; overflow: hidden; }
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 85% 0%, rgba(37,244,238,.22), transparent 60%),
              radial-gradient(600px 300px at 5% 100%, rgba(254,44,85,.25), transparent 60%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.breadcrumb { font-size: 14px; color: #aeb2c2; }
.breadcrumb a { color: #c7cad6; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span.sep { margin: 0 8px; opacity: .6; }

/* ============================================================
   列表页 / 内容页 布局
   ============================================================ */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; padding: 48px 0; }
.list-main { min-width: 0; }
.list-item {
  display: grid; grid-template-columns: 240px 1fr; gap: 22px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 22px;
  transition: transform .2s, box-shadow .2s;
}
.list-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.list-item .thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--ink-soft)); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item h3 { font-size: 19px; margin-bottom: 10px; }
.list-item .excerpt {
  color: var(--muted); font-size: 14px; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.list-item .meta { display: flex; gap: 16px; color: #9aa0ad; font-size: 13px; }

/* 分页 */
.pagebar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagebar a, .pagebar span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; background: #fff;
}
.pagebar a:hover { border-color: var(--red); color: var(--red); }
.pagebar span, .pagebar .active { background: var(--red); color: #fff; border-color: var(--red); }

/* 内容页 */
.article { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.article h1 { font-size: 28px; line-height: 1.35; margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #9aa0ad; font-size: 14px; padding-bottom: 18px; border-bottom: 1px dashed var(--border); margin-bottom: 24px; }
.article-meta .tag { color: var(--red); }
.article-content { font-size: 16px; line-height: 1.95; color: #2c2f3a; }
.article-content p { margin-bottom: 18px; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 18px 0; }
.article-content h2, .article-content h3 { margin: 26px 0 14px; }
.article-content a { color: var(--red); text-decoration: underline; }
.article-tags { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article-tags .label { color: var(--muted); font-size: 14px; }
.article-tags .tag {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  padding: 5px 14px; border-radius: 999px; font-size: 13px;
}
.article-tags .tag:hover { background: var(--red); color: #fff; border-color: var(--red); }

.prenext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.prenext a {
  display: block; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; font-size: 14px; color: var(--muted);
}
.prenext a:hover { border-color: var(--cyan); color: var(--text); }
.prenext .dir { font-size: 12px; color: #9aa0ad; display: block; margin-bottom: 4px; }
.prenext .next { text-align: right; }

/* 侧栏栏目导航 */
.cat-nav li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-radius: 8px; color: var(--text); font-size: 15px;
  border: 1px solid transparent;
}
.cat-nav li a:hover, .cat-nav li a.active { background: var(--bg-soft); border-color: var(--border); color: var(--red); }
.cat-nav li a .count { color: #9aa0ad; font-size: 12px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--ink); color: #c7cad6; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 30px; padding: 50px 0 36px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.footer-col h4::before { content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(var(--cyan), var(--red)); }
.footer-col p { font-size: 14px; margin-bottom: 8px; line-height: 1.7; }
.footer-col a { color: #c7cad6; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; text-align: center; color: #8a8ea0; }
.footer-bottom a { color: #8a8ea0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
  .features, .services { grid-template-columns: repeat(2, 1fr); }
  .home-news { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 108px; left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 80vh; overflow-y: auto; }
  .nav-link { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-search { margin: 12px 0 0; }
  .nav-search input { width: 100%; border-radius: 999px 0 0 999px; }
  .features, .services, .news-grid { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 1fr; }
  .list-item .thumb { aspect-ratio: 16/9; }
  .prenext { grid-template-columns: 1fr; }
  .article { padding: 22px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
