/* ============================================================
   八闽眼 · 现代简约科技蓝主题
   移动端优先（H5），PC 端自动适配
   ============================================================ */
:root {
  --blue:      #1e5cff;   /* 主色 科技蓝 */
  --blue-deep: #0b2d6b;   /* 深蓝 用于深色背景 */
  --cyan:      #19c8ff;   /* 辅助青 */
  --ink:       #16243a;   /* 正文深灰蓝 */
  --muted:     #5d6b82;   /* 次要文字 */
  --bg:        #f4f8ff;   /* 页面浅底 */
  --card:      #ffffff;
  --line:      #e3ebf7;
  --radius:    16px;
  --shadow:    0 10px 30px rgba(20, 50, 120, .08);
  --maxw:      1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 无障碍：跳转链接 / 焦点 ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- 头部 / 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; }

.nav-toggle {
  display: none; border: 0; background: transparent; font-size: 26px; cursor: pointer; color: var(--ink);
}
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; color: var(--ink); padding: 8px 12px;
  border-radius: 10px; font-size: 15px; font-weight: 500;
}
.site-nav a:hover { background: var(--bg); text-decoration: none; }
.site-nav a.active { color: var(--blue); }
.nav-item { position: relative; z-index: 110; }
.nav-cta {
  background: var(--blue); color: #fff !important; padding: 9px 18px !important; font-weight: 700;
}
.nav-cta:hover { background: var(--blue-deep); }

/* ---------- 区块通用 ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .eyebrow {
  color: var(--blue); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 12px; color: var(--ink); word-break: break-word; overflow-wrap: break-word; }
#faq .section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head p { color: var(--muted); margin: 0; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: .2s; font-size: 15px; text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ---------- 前台表单（我要登记等） ---------- */
.apply-form { display: flex; flex-direction: column; gap: 18px; }
.apply-form .field { display: flex; flex-direction: column; gap: 6px; }
.apply-form label { font-weight: 600; font-size: 15px; color: var(--text); }
.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 15px; color: var(--text); box-sizing: border-box;
}
.apply-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,92,255,.12); }
.apply-form .actions { display: flex; gap: 14px; justify-content: center; margin-top: 4px; }
.apply-form .btn { min-width: 120px; }
.form-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep), #123a8f 60%, var(--blue));
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/img/hero.png') center/cover no-repeat; opacity: .28; mix-blend-mode: screen;
}
.hero .container { position: relative; z-index: 2; padding: 96px 20px 86px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 56px); margin: 0 0 16px; line-height: 1.2; word-break: break-word; overflow-wrap: break-word; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); max-width: 680px; color: #dbe7ff; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: #fff; color: var(--blue); }

.stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 46px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 18px 22px; min-width: 130px; }
.stat b { display: block; font-size: 30px; color: #fff; }
.stat span { font-size: 13px; color: #cfe0ff; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { font-size: clamp(24px, 3.6vw, 34px); margin-top: 0; }
.about-text ul { padding-left: 18px; color: var(--muted); }
.about-text li { margin: 6px 0; }

/* ---------- 服务卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: .2s;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 24px;
  flex: 0 0 auto;
}
.card h3 { margin: 0; font-size: 19px; flex: 1 1 auto; align-self: center; }
.card p { width: 100%; margin: 0; color: var(--muted); font-size: 15px; padding-left: 66px; }

/* ---------- 重点板块（深色）---------- */
.band { background: linear-gradient(135deg, var(--blue-deep), #0e2f74); color: #fff; }
.band .section-head h2, .band h2 { color: #fff; }
.band .section-head p { color: #cfe0ff; }
.band .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }
.band .card p { color: #cfe0ff; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; margin-top: 30px; }
.feature { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 20px; }
.feature h4 { margin: 0 0 6px; color: #fff; }
.feature p { margin: 0; color: #cfe0ff; font-size: 14px; }

/* ---------- FAQ（GEO 优化：AI 搜索可引用）---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--blue); font-weight: 800; margin-right: 10px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { color: var(--muted); }
.faq p::before { content: "A"; color: var(--cyan); font-weight: 800; margin-right: 10px; }

/* ---------- 资讯案例 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .tag { align-self: flex-start; background: var(--bg); color: var(--blue); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.news-card h3 { margin: 0; font-size: 18px; }
.news-card .meta { color: var(--muted); font-size: 13px; }
.news-card a.more { margin-top: auto; font-weight: 700; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grid > div:first-child .section-head { padding-top: 22px; }
.contact-info { padding: 0; margin: 0; }
.contact-info li { list-style: none; margin: 12px 0; display: flex; align-items: flex-start; gap: 8px; }
.contact-info li a { color: var(--blue); }
/* 右侧客服卡片：垂直居中堆叠，不使用服务卡片的横向 flex 布局 */
.contact-card { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.contact-card .ico,
.contact-card h3,
.contact-card p,
.contact-card .btn { width: auto; padding-left: 0; flex: 0 0 auto; align-self: center; }
.contact-card .btn { margin-top: 4px; }
.contact-card .muted-note { margin-top: 6px; color: var(--muted); font-size: 14px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue); outline: none; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.notice.ok { background: #e7f7ee; color: #137a45; }
.notice.err { background: #fdeaea; color: #b42323; }

/* ---------- 底部 ---------- */
.site-footer { background: var(--blue-deep); color: #cfe0ff; padding: 54px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h3 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #cfe0ff; }
.footer-col a:hover { color: #fff; }
.footer-slogan { color: #fff; font-weight: 700; margin: 0 0 8px; }
.footer-desc { color: #cfe0ff; margin: 0; font-size: 15px; opacity: .92; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 18px; font-size: 13px; }
.footer-bottom a { color: #cfe0ff; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--blue); color: #fff; font-size: 20px; cursor: pointer; opacity: 0;
  transition: .25s; z-index: 90; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; }

/* ---------- 响应式：手机端 ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
    display: none; z-index: 200;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; border-radius: 8px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .card { gap: 12px; padding: 18px; }
  .card .ico { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
  .card h3 { font-size: 17px; }
  .card p { padding-left: 58px; font-size: 14px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { word-break: break-word; }
  .hero .container { padding: 70px 20px 60px; }
  .stats { gap: 14px; }
  .stat { flex: 1 1 40%; min-width: 0; }
  .card { gap: 10px; padding: 16px; }
  .card .ico { width: 40px; height: 40px; font-size: 18px; }
  .card h3 { font-size: 16px; }
  .card p { padding-left: 52px; font-size: 13px; }
}

/* ---------- 多级导航下拉 ---------- */
.site-nav .nav-item { position: relative; }
.site-nav .nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.site-nav .caret { font-size: 10px; opacity: .65; margin-left: 2px; }
.site-nav .nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 184px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; z-index: 220;
}
.site-nav .nav-item.has-child:hover .nav-sub,
.site-nav .nav-item.has-child:focus-within .nav-sub { display: flex; }
.site-nav .nav-sub a { padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.site-nav .nav-sub a:hover { background: var(--bg); text-decoration: none; }

/* 移动端：一级菜单折叠，点击展开二级（手风琴） */
@media (max-width: 860px) {
  .site-nav .nav-item.has-child { position: static; }
  /* 关闭桌面端的 hover / focus 展开，移动端统一用手风琴 */
  .site-nav .nav-item.has-child:hover .nav-sub,
  .site-nav .nav-item.has-child:focus-within .nav-sub { display: none; }
  .site-nav .nav-sub {
    position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line);
    padding: 0 0 0 12px; display: none; margin: 2px 0 6px; flex-direction: column;
  }
  .site-nav .nav-item.has-child.expanded .nav-sub { display: flex; }
  .site-nav .caret { display: inline-block; transition: transform .2s ease; }
  .site-nav .nav-item.has-child > a .caret { transform: rotate(0deg); }
  .site-nav .nav-item.has-child.expanded > a .caret { transform: rotate(180deg); }
  .site-nav .nav-item.has-child > a[aria-expanded] { justify-content: space-between; }
}

/* ---------- 通用内页（page / actor）---------- */
.page-hero { background: linear-gradient(135deg, var(--blue-deep), #123a8f); color: #fff; padding: 86px 0 56px; }
.page-hero .eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.page-hero h1 { font-size: clamp(26px, 4.4vw, 42px); margin: 8px 0 0; word-break: break-word; overflow-wrap: break-word; }
.page-body { max-width: 900px; margin: 0 auto; padding: 44px 20px 70px; }
.page-body .article-body { font-size: 17px; line-height: 1.95; }
.page-body .article-body p { margin: 0 0 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-top: 28px; }
.gallery img { border-radius: 12px; width: 100%; height: 200px; object-fit: cover; }

/* ---------- 演员模特库 ---------- */
.actor-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.actor-filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.actor-filters a.active, .actor-filters a:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }
.actor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.actor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.actor-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.actor-card img { width: 100%; height: 280px; object-fit: cover; background: var(--bg); }
.actor-card .body { padding: 16px 18px; }
.actor-card .type { display: inline-block; background: var(--bg); color: var(--blue); font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.actor-card h3 { margin: 0 0 6px; font-size: 18px; }
.actor-card p { margin: 0; color: var(--muted); font-size: 14px; }
.actor-detail { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.actor-detail img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); background: var(--bg); }
.actor-detail .type { display: inline-block; background: var(--bg); color: var(--blue); font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 760px) { .actor-detail { grid-template-columns: 1fr; } }

/* ---------- 后台导航条 ---------- */
.admin-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-nav a { color: #cfe0ff; margin-left: 0; padding: 6px 11px; border-radius: 8px; font-size: 14px; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.admin-nav a.active { background: rgba(255,255,255,.20); color: #fff; font-weight: 700; }
.admin-nav a.btn { color: #fff; border: 1px solid rgba(255,255,255,.5); }
.admin-nav a.btn:hover { background: rgba(255,255,255,.25); }
.admin-table .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.admin-form .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.admin-form .preview-img { margin-top: 10px; max-width: 220px; border-radius: 10px; border: 1px solid var(--line); }
.admin-form .current-img { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px){ .admin-form .row2, .admin-form .row3 { grid-template-columns: 1fr; } }
