/* Moduo corporate demo theme — responsive */
:root {
  --ink: #12151a;
  --slate: #2a323c;
  --mist: #e8ecef;
  --paper: #f4f6f8;
  --white: #ffffff;
  --copper: #b85c38;
  --copper-deep: #8f4528;
  --teal: #1f6f7a;
  --muted: #6b7380;
  --line: rgba(18, 21, 26, 0.1);
  --shadow: 0 18px 40px rgba(18, 21, 26, 0.08);
  --radius: 14px;
  --container: 1180px;
  --font-display: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.brand img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 12px; flex-shrink: 0;
}
.brand-text strong {
  display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em;
}
.brand-text span {
  display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop > li { position: relative; }
.nav-desktop > li > a {
  display: block; padding: 0.65rem 0.85rem; color: var(--slate);
  font-weight: 500; border-radius: 999px; transition: 0.2s ease;
}
.nav-desktop > li.on > a,
.nav-desktop > li > a:hover {
  color: var(--white); background: var(--ink);
}
.nav-dropdown {
  display: none; position: absolute; left: 0; top: calc(100% + 0.4rem);
  min-width: 180px; padding: 0.5rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.nav-desktop > li:hover .nav-dropdown { display: grid; gap: 0.15rem; }
.nav-dropdown a {
  padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--slate); font-size: 0.92rem;
}
.nav-dropdown a:hover { background: var(--mist); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: none; color: var(--copper); font-weight: 600; font-family: var(--font-display);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.15rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; transition: 0.2s ease;
}
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-deep); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--ink); transition: 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-mobile {
  display: none; border-top: 1px solid var(--line); background: var(--white);
  padding: 0.75rem 1rem 1.25rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block; padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.nav-mobile .sub { padding-left: 1rem; }
.nav-mobile .sub a { font-weight: 400; color: var(--muted); font-size: 0.95rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  min-height: clamp(420px, 68vh, 640px);
}
.hero-track { display: flex; transition: transform 0.55s ease; }
.hero-slide {
  min-width: 100%; position: relative; min-height: clamp(420px, 68vh, 640px);
  display: grid; align-items: end;
}
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(18,21,26,0.88) 18%, rgba(18,21,26,0.25) 70%);
}
.hero-copy {
  position: relative; z-index: 1; padding: clamp(3rem, 8vw, 5.5rem) 0;
  width: min(100% - 2rem, var(--container)); margin-inline: auto;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: #f0c2ad; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem;
  margin-bottom: 1rem;
}
.hero-kicker::before {
  content: ""; width: 28px; height: 2px; background: var(--copper);
}
.hero-copy h1 {
  margin: 0 0 1rem; max-width: 14ch;
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12; font-weight: 650;
}
.hero-copy p {
  margin: 0 0 1.6rem; max-width: 36rem; color: rgba(255,255,255,0.78); font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-dots {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  display: flex; gap: 0.45rem; z-index: 2;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.35); cursor: pointer;
}
.hero-dots button.is-active { background: var(--copper); width: 28px; border-radius: 999px; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2;
}
.section-head p { margin: 0.4rem 0 0; color: var(--muted); max-width: 36rem; }
.eyebrow {
  color: var(--copper); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 0 rgba(18,21,26,0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { overflow: hidden; background: var(--mist); line-height: 0; }
.card-media img {
  width: 100%; height: auto; display: block; vertical-align: top;
  transition: opacity 0.3s ease;
}
.card:hover .card-media img { opacity: 0.92; }
.card-body { padding: 1.15rem 1.2rem 1.35rem; }
.card-body h3 { margin: 0 0 0.45rem; font-size: 1.08rem; font-family: var(--font-display); }
.news-cards .card { min-width: 0; }
.news-cards .card-body h3 {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.news-list-cards .card { min-width: 0; }
.news-list-cards .card-body h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; line-height: 1.4; height: 2.8em;
}
.card-body p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card-meta {
  display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem;
  color: var(--teal); font-size: 0.82rem; font-weight: 600;
}

.feature-strip {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: stretch;
}
.feature-panel {
  background: var(--ink); color: var(--white); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; overflow: hidden;
}
.feature-panel::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(184,92,56,0.28);
}
.feature-panel h2 { position: relative; margin: 0.4rem 0 1rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.feature-panel p { position: relative; color: rgba(255,255,255,0.72); margin: 0 0 1.4rem; }
.stat-row {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.stat-row strong {
  display: block; font-family: var(--font-display); font-size: 1.6rem; color: #f0c2ad;
}
.stat-row span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.case-stack { display: grid; gap: 1rem; }
.case-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem;
}
.case-item img {
  width: 140px; height: auto; display: block; border-radius: 10px;
}
.case-item h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.case-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.news-list { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; }
.news-feature, .news-side .news-row {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.news-feature img {
  width: 100%; height: auto; display: block;
}
.news-feature .card-body { padding: 1.35rem; }
.news-side { display: grid; gap: 1rem; }
.news-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 0.9rem; padding: 0.75rem; align-items: center;
}
.news-row img {
  width: 120px; height: auto; display: block; border-radius: 10px;
}
.news-row h3 { margin: 0 0 0.3rem; font-size: 0.98rem; }
.news-row p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.cta-band {
  background:
    linear-gradient(120deg, rgba(15,47,56,0.94), rgba(184,92,56,0.88)),
    url("/uploads/demo/pagebanner.svg") center/cover;
  color: var(--white); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 5vw, 3rem);
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,0.8); }

.links-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.links-row a {
  padding: 0.55rem 0.95rem; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); color: var(--slate); font-size: 0.9rem;
}
.links-row a:hover { border-color: var(--copper); color: var(--copper); }

/* Inner pages */
.page-hero {
  background: var(--ink); color: var(--white); padding: 2.5rem 0 2rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 240px; height: 240px;
  border: 28px solid rgba(184,92,56,0.25); border-radius: 50%;
}
.page-hero h1 {
  margin: 0.35rem 0 0.5rem; font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem); position: relative;
}
.page-hero p { margin: 0; color: rgba(255,255,255,0.7); max-width: 40rem; position: relative; }
.crumbs {
  margin: 1rem 0 1.5rem; color: var(--muted); font-size: 0.9rem;
}
.crumbs a:hover { color: var(--copper); }
.layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start;
  padding-bottom: 3rem;
}
.side-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
  position: sticky; top: 92px;
}
.side-panel h2 {
  margin: 0 0 0.85rem; font-size: 1rem; font-family: var(--font-display);
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}
.side-panel a {
  display: block; padding: 0.7rem 0.65rem; border-radius: 8px; color: var(--slate);
}
.side-panel a.on, .side-panel a:hover { background: var(--mist); color: var(--ink); font-weight: 600; }
.main-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.75rem);
}
.content-body { line-height: 1.85; color: var(--slate); }
.content-body h2, .content-body h3 { color: var(--ink); font-family: var(--font-display); }
.content-body p { margin: 0 0 1rem; }
.content-body img { border-radius: 10px; margin: 1rem 0; }
.article-title {
  margin: 0 0 0.75rem; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
}
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.pager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.pager a { color: var(--teal); font-weight: 600; }
.pagination { margin-top: 1.5rem; text-align: center; }
.pagination a, .pagination span {
  display: inline-block; margin: 0 0.2rem; padding: 0.4rem 0.7rem;
  border-radius: 8px; border: 1px solid var(--line); background: var(--white);
}
.pagination .active, .pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;
}
.filter-tabs a {
  padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
}
.filter-tabs a.on, .filter-tabs a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.form-grid { display: grid; gap: 1rem; max-width: 640px; }
.form-grid label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--slate); }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper);
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus {
  outline: 2px solid rgba(184,92,56,0.35); border-color: var(--copper);
}
.form-grid .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.captcha-row input { flex: 1; min-width: 0; }
.captcha-row img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--white);
  flex-shrink: 0;
}

/* 表单结果弹窗 */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.form-modal[hidden] { display: none !important; }
.form-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 21, 26, 0.45);
  backdrop-filter: blur(2px);
}
.form-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 2rem 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  animation: form-modal-in 0.22s ease-out;
}
@keyframes form-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.form-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}
.form-modal.is-ok .form-modal-icon {
  background: rgba(31, 111, 122, 0.12);
  color: var(--teal);
}
.form-modal.is-err .form-modal-icon {
  background: rgba(184, 92, 56, 0.12);
  color: var(--copper);
}
.form-modal-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}
.form-modal-msg {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.form-modal-card .btn { min-width: 120px; }
.search-box {
  display: flex; gap: 0.6rem; margin-bottom: 1.25rem;
}
.search-box input {
  flex: 1; padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: #0d1116; color: rgba(255,255,255,0.78); padding: 3rem 0 1.5rem; margin-top: 1rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer h3 {
  margin: 0 0 1rem; color: var(--white); font-family: var(--font-display); font-size: 1rem;
}
.site-footer a:hover { color: #f0c2ad; }
.footer-brand strong {
  display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.6rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
}

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip, .news-list, .footer-grid, .layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .header-phone { display: none !important; }
  .nav-desktop, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .case-item { grid-template-columns: 110px 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .news-row, .case-item { grid-template-columns: 1fr; }
  .news-row img, .case-item img { width: 100%; height: 160px; }
  .hero-copy h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
