/*
Theme Name: Pro8 Modern Reputation
Theme URI: https://www.pro8.cn/
Author: PRO8
Description: 面向危机公关、舆情监测、声誉管理和搜索结果优化的现代化 WordPress 主题。
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pro8-modern
*/

:root {
  --ink: #071019;
  --ink-2: #0d1824;
  --ink-3: #132333;
  --paper: #f4f7fb;
  --text: #eaf2f8;
  --soft: #a9bac9;
  --muted: #728497;
  --cyan: #19c7e7;
  --green: #61d394;
  --gold: #f0b44d;
  --red: #f76d7b;
  --line: rgba(190, 210, 226, 0.16);
  --line-strong: rgba(32, 207, 233, 0.34);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(6, 14, 24, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(25, 199, 231, 0.48);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(25, 199, 231, 0.18), rgba(97, 211, 148, 0.1));
  color: var(--cyan);
  font-weight: 900;
}

.brand-title {
  display: grid;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.brand-title span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #b9c5d1;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: #fff;
  background: rgba(25, 199, 231, 0.11);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #1ed2f0, #65da93);
  color: #04111d;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(25, 199, 231, 0.18);
}

.button.secondary {
  color: #e9f4fb;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  isolation: isolate;
  background: #050c14;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/images/server-hero.jpg");
  background-size: cover;
  background-position: center right;
  filter: saturate(1.08) contrast(1.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.96) 0%, rgba(5, 12, 20, 0.8) 48%, rgba(5, 12, 20, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 12, 20, 0.2), rgba(5, 12, 20, 0.92));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--ink));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 78px 0 66px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(36px, 4.2vw, 56px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: #c8d5df;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  max-width: 620px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.proof-strip div {
  padding: 16px 18px;
  background: rgba(5, 14, 24, 0.62);
}

.proof-strip strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.proof-strip span {
  color: var(--soft);
  font-size: 13px;
}

.hero-console {
  border: 1px solid rgba(25, 199, 231, 0.28);
  border-radius: 8px;
  background: rgba(6, 16, 27, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.console-photo {
  position: relative;
  height: 156px;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  background: #071019;
}

.console-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.08);
}

.console-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 25, 0.04), rgba(7, 16, 25, 0.74)),
    linear-gradient(90deg, rgba(25,199,231,0.2), transparent 58%);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #dce9f2;
  font-size: 13px;
}

.console-head b {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(97, 211, 148, 0.16);
  color: var(--green);
  font-size: 11px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.metric,
.alert {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 35, 51, 0.92), rgba(7, 16, 27, 0.92));
}

.metric span,
.alert span {
  display: block;
  color: var(--soft);
  font-size: 12px;
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1.1;
}

.metric em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
}

.metric.wide {
  grid-column: 1 / -1;
}

.metric.wide i {
  display: block;
  height: 56px;
  margin-top: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(25,199,231,0.95) 49%, transparent 51%),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 28px 100%;
}

.alert {
  grid-column: 1 / -1;
  min-height: auto;
}

.alert strong {
  display: block;
  margin-top: 6px;
  color: #eef6fb;
  font-size: 15px;
}

.alert.high {
  border-color: rgba(247, 109, 123, 0.34);
}

.section {
  padding: 86px 0;
}

.section.alt,
.systems-section {
  background: var(--ink-2);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section-head p {
  max-width: 590px;
  color: var(--soft);
}

.problem-band {
  padding-top: 62px;
}

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

.problem-card,
.case-card,
.post-teaser,
.mini-solution {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 35, 51, 0.86), rgba(9, 19, 31, 0.86));
}

.problem-card {
  padding: 22px;
}

.problem-card span {
  color: var(--gold);
  font-weight: 900;
}

.problem-card p,
.case-card p,
.post-teaser p,
.mini-solution span {
  color: var(--soft);
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
}

.solution-feature {
  min-height: 520px;
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(25, 199, 231, 0.12), rgba(19, 35, 51, 0.88)),
    var(--ink-3);
}

.solution-visual {
  position: relative;
  margin: 28px 0 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 12, 20, 0.64);
}

.solution-visual img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.74);
}

.solution-visual figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #e9f5fb;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.56);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(25, 199, 231, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.solution-feature p,
.solution-feature li {
  color: #c8d6df;
}

.solution-feature ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.solution-feature li {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.solution-stack {
  display: grid;
  gap: 14px;
}

.mini-solution {
  padding: 22px;
}

.mini-solution b {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.system-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 0 34px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19,35,51,0.96), rgba(6,16,27,0.96));
}

.system-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(25,199,231,0.25);
  transform: rotate(18deg);
}

.system-photo {
  position: relative;
  height: 190px;
  margin: 0 -34px 28px;
  overflow: hidden;
  background: #071019;
}

.system-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04) brightness(0.78);
}

.system-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,16,27,0.04), rgba(6,16,27,0.82)),
    linear-gradient(90deg, rgba(25,199,231,0.18), transparent 56%);
}

.system-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.system-top span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(25,199,231,0.35);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 900;
}

.system-top b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.system-card p {
  color: #c4d2dd;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}

.pill-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--soft);
  font-size: 13px;
}

.system-card a,
.text-link {
  color: var(--cyan);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.method-visual {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: -8px 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25,199,231,0.12), rgba(97,211,148,0.05)),
    rgba(5, 12, 20, 0.52);
}

.method-visual img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
}

.method-visual span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.method-visual strong {
  display: block;
  max-width: 680px;
  color: #fff;
  font-size: 24px;
  line-height: 1.35;
}

.timeline div {
  padding: 28px;
  background: var(--ink);
}

.timeline span {
  color: var(--cyan);
  font-weight: 900;
}

.timeline p {
  color: var(--soft);
}

.case-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.case-card {
  padding: 24px;
}

.case-card strong {
  color: #fff;
  font-size: 20px;
}

.case-card span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.knowledge-section {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}

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

.post-teaser {
  padding: 24px;
}

.post-teaser time {
  color: var(--muted);
  font-size: 13px;
}

.post-teaser h3 {
  font-size: 20px;
}

.final-cta {
  padding-top: 40px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25,199,231,0.16), rgba(240,180,77,0.08)),
    var(--ink-3);
}

.cta-panel p {
  max-width: 760px;
  color: #c8d6df;
}

.page-hero {
  padding: 78px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5,12,20,0.95), rgba(13,24,36,0.82)),
    var(--ink-2);
}

.page-hero p {
  max-width: 820px;
  color: var(--soft);
  font-size: 18px;
}

.content {
  max-width: 900px;
  padding: 64px 0;
}

.content p,
.content li {
  color: #c4d0dd;
}

.content a {
  color: var(--cyan);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19,35,51,0.92), rgba(7,16,27,0.92));
}

.card p,
.card li {
  color: var(--soft);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid rgba(25,199,231,0.35);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(25,199,231,0.08);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #c8d5e6;
}

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #040a11;
}

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

.site-footer h3,
.site-footer h4 {
  font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--soft);
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-qr {
  display: inline-grid;
  gap: 8px;
  margin-top: 8px;
}

.footer-qr img {
  width: 116px;
  height: 116px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #fff;
}

.footer-qr span {
  color: var(--soft);
  font-size: 13px;
}

.floating-contact {
  position: fixed;
  right: 18px;
  top: auto;
  bottom: 24px;
  z-index: 70;
  transform: none;
}

.floating-card {
  width: 148px;
  padding: 12px;
  border: 1px solid rgba(25,199,231,0.34);
  border-radius: 8px;
  background: rgba(6, 16, 27, 0.92);
  box-shadow: 0 18px 48px rgba(0,0,0,0.38);
  backdrop-filter: blur(14px);
  text-align: center;
}

.floating-card img {
  width: 124px;
  height: 124px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: #fff;
}

.floating-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.floating-card span {
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.floating-card a {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1ed2f0, #65da93);
  color: #04111d;
  font-size: 13px;
  font-weight: 800;
}

.contact-qr img {
  width: 168px;
  height: 168px;
  margin: 8px 0;
  border-radius: 8px;
  background: #fff;
}

.copyright {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-3);
}

.post-item time {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .hero-inner,
  .solution-layout,
  .system-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 620px;
  }

  .method-visual {
    grid-template-columns: 1fr;
  }

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

  .main-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    justify-content: flex-start;
    width: max-content;
  }

  .main-nav a {
    min-height: 34px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.04);
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  .hero-inner {
    padding: 58px 0 48px;
  }

  .proof-strip,
  .problem-grid,
  .case-grid,
  .post-grid,
  .timeline,
  .grid-3,
  .footer-grid,
  .solution-feature ul {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 58px 0;
  }

  .section-head,
  .cta-panel {
    display: block;
  }

  .cta-panel {
    padding: 28px;
  }

  .floating-contact {
    display: none;
  }

  .console-photo,
  .system-photo {
    height: 150px;
  }

  .method-visual {
    padding: 14px;
  }

  .method-visual strong {
    font-size: 19px;
  }
}
