﻿:root {
  --wall: #ffffff;
  --paper: #f7f7f7;
  --notice: #fff200;
  --repair-red: #e60012;
  --worker-blue: #0055aa;
  --night-purple: #9400d3;
  --ink: #181818;
  --muted: #555555;
  --line: #d9d9d9;
  --max: 1180px;
  --hard-shadow: 5px 5px 0 var(--worker-blue);
  --red-shadow: 4px 4px 0 var(--repair-red);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
  background:
    repeating-linear-gradient(90deg, rgba(230, 0, 18, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(0, 85, 170, 0.07) 0 1px, transparent 1px 42px),
    linear-gradient(90deg, var(--paper), var(--wall) 18%, var(--wall) 82%, var(--paper));
  background-attachment: fixed;
}

body::before,
body::after {
  position: fixed;
  top: 156px;
  z-index: 1;
  width: 112px;
  padding: 10px 8px;
  color: var(--ink);
  background: var(--notice);
  border: 3px solid var(--repair-red);
  box-shadow: var(--hard-shadow);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
}

body::before {
  left: 12px;
  content: "包修手机百病\A旧机估价\A先检后修";
  transform: rotate(-2deg);
}

body::after {
  right: 12px;
  content: "库存清仓\A路线速查\A密码登记";
  transform: rotate(2deg);
}

a {
  color: var(--worker-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wall);
  border-top: 6px solid var(--worker-blue);
  border-bottom: 6px solid var(--repair-red);
  box-shadow: 0 5px 0 var(--worker-blue), 0 9px 0 var(--notice);
}

.site-top::before {
  display: block;
  padding: 3px 16px;
  color: var(--wall);
  background: var(--worker-blue);
  border-bottom: 2px solid var(--ink);
  content: "全能便民服务  手机检测 / 二手估价 / 路线登记 / 密码速查";
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.ticker {
  overflow: hidden;
  color: var(--repair-red);
  background: var(--notice);
  border-top: 2px dashed var(--repair-red);
  border-bottom: 2px dashed var(--repair-red);
  font-weight: 900;
  text-shadow: 1px 1px 0 var(--wall);
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  min-width: 100%;
  padding: 7px 0;
  animation: ticker 24s linear infinite;
}

@keyframes purpleSignal {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.55); }
}

@keyframes ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  background: var(--repair-red);
  border: 4px solid var(--worker-blue);
  box-shadow: 3px 3px 0 var(--notice);
  object-fit: cover;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  color: var(--worker-blue);
  font-size: 12px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 2px solid var(--ink);
  background: var(--notice);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a,
.nav-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--repair-red);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.nav-action:hover,
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--worker-blue);
  text-decoration: none;
}

button.btn,
button.nav-action {
  font-family: inherit;
  font-size: 15px;
}

.btn-primary,
.nav-action {
  color: var(--wall);
  background: var(--repair-red);
}

.btn-blue {
  color: var(--wall);
  background: var(--worker-blue);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: stretch;
  gap: 22px;
}

.hero-copy,
.page-hero-box {
  padding: 22px;
  background:
    linear-gradient(0deg, rgba(255, 242, 0, 0.16), rgba(255, 255, 255, 0.96)),
    var(--wall);
  border: 5px solid var(--ink);
  box-shadow: var(--hard-shadow);
}

.eyebrow {
  display: inline-block;
  padding: 4px 9px;
  color: var(--wall);
  background: var(--worker-blue);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--repair-red);
  font-weight: 900;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  margin: 16px 0 14px;
  color: var(--repair-red);
  font-size: clamp(34px, 7vw, 70px);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 3px 3px 0 var(--notice), 6px 6px 0 var(--worker-blue), 8px 8px 0 var(--ink);
}

h2 {
  margin: 0 0 18px;
  padding: 4px 8px 8px;
  color: var(--worker-blue);
  background: linear-gradient(90deg, var(--notice), transparent 72%);
  border-bottom: 5px double var(--repair-red);
  font-size: clamp(25px, 4vw, 40px);
}

h3 {
  margin: 0 0 10px;
  color: var(--repair-red);
  font-size: 21px;
}

.hero-subtitle {
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900;
}

.hero-summary {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
  min-height: 420px;
  border: 5px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--red-shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stamp {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(180px, 42vw);
  padding: 10px;
  color: var(--repair-red);
  background: rgba(255, 255, 255, 0.94);
  border: 4px double var(--repair-red);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  transform: rotate(-4deg);
}

.section {
  padding: 34px 16px;
}

.section:nth-of-type(even) {
  background: rgba(247, 247, 247, 0.82);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.lead {
  max-width: 880px;
  color: var(--muted);
  font-size: 18px;
}

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

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

.card,
.info-box,
.table-wrap,
.faq-item,
.notice-box,
.article-block {
  background: var(--wall);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--red-shadow);
}

.card,
.info-box,
.faq-item,
.notice-box,
.article-block {
  position: relative;
  padding: 18px;
}

.card::after,
.info-box::after,
.faq-item::after,
.article-block::after {
  position: absolute;
  right: 8px;
  top: -10px;
  padding: 1px 7px;
  color: var(--wall);
  background: var(--repair-red);
  border: 2px solid var(--ink);
  content: "登记";
  font-size: 12px;
  font-weight: 900;
}

.card:nth-child(3n)::after {
  background: var(--night-purple);
  content: "暗号";
}

.card:nth-child(3n + 2)::after {
  background: var(--worker-blue);
  content: "师傅看过";
}

.card p,
.faq-item p,
.article-block p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.card-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--worker-blue);
  text-decoration: none;
}

.card-link:focus-visible {
  outline: 4px solid var(--notice);
  outline-offset: 4px;
}

.card-link-text {
  display: inline-block;
  margin-top: 8px;
  color: var(--worker-blue);
  font-weight: 900;
}

.card .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  color: var(--wall);
  background: var(--night-purple);
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
  animation: purpleSignal 1.25s steps(2, end) infinite;
}

.meta-strip {
  max-width: var(--max);
  margin: 0 auto 18px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.meta-strip div {
  padding: 12px;
  background: var(--notice);
  border: 3px dashed var(--repair-red);
  box-shadow: 3px 3px 0 var(--worker-blue);
  font-weight: 900;
}

.meta-strip span {
  display: block;
  color: var(--worker-blue);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--wall);
}

th,
td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--wall);
  background: var(--worker-blue);
  border-bottom: 4px solid var(--repair-red);
}

tr:nth-child(even) td {
  background: var(--paper);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.gallery-preview {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: var(--red-shadow);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thumbs button {
  padding: 0;
  background: var(--wall);
  border: 3px solid var(--ink);
  cursor: pointer;
}

.thumbs button.is-active {
  border-color: var(--repair-red);
  box-shadow: 4px 4px 0 var(--worker-blue);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--wall);
  border-left: 8px solid var(--repair-red);
  box-shadow: 0 0 0 2px var(--ink) inset, 3px 3px 0 var(--worker-blue);
}

.timeline-item strong {
  color: var(--worker-blue);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.link-list a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--notice);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--repair-red);
  font-weight: 900;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 16px 18px;
}

.breadcrumbs {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  font-weight: 900;
}

.updated {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  background: var(--notice);
  border: 2px dashed var(--repair-red);
  box-shadow: 2px 2px 0 var(--worker-blue);
  font-weight: 900;
}

.footer {
  margin-top: 34px;
  padding: 28px 16px;
  color: var(--wall);
  background: var(--ink);
  border-top: 8px solid var(--repair-red);
  box-shadow: 0 -5px 0 var(--worker-blue);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.footer a {
  color: var(--notice);
}

.footer .link-list a {
  color: var(--ink);
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  width: 46px;
  height: 46px;
  color: var(--wall);
  background: var(--repair-red);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--worker-blue);
  font-weight: 900;
  cursor: pointer;
}

.back-top.is-visible {
  display: block;
}

@media (max-width: 1280px) {
  body::before,
  body::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-top::before {
    font-size: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px 16px 16px;
    background: var(--wall);
    border-bottom: 4px solid var(--repair-red);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
  }

  .hero,
  .gallery-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 320px;
  }

  .grid,
  .grid.two,
  .meta-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-copy,
  .page-hero-box {
    padding: 16px;
  }

  .section {
    padding: 26px 14px;
  }

  h1 {
    font-size: 36px;
    -webkit-text-stroke: 0;
    text-shadow: 2px 2px 0 var(--notice), 4px 4px 0 var(--worker-blue), 5px 5px 0 var(--ink);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

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

.my-news-home-section,
.my-news-page {
  color: var(--ink);
}

a[data-seo-managed="download-link"] {
  text-decoration: none;
}

.my-news-home-section {
  border-top: 2px solid var(--ink);
  background: rgba(247, 247, 247, .9);
}

.my-news-home-inner,
.my-news-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0;
}

.my-news-shell {
  max-width: 900px;
  min-height: 100vh;
  padding-top: 48px;
}

.my-news-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.my-news-home-head h2,
.my-news-header h1,
.my-news-article h1 {
  margin: 0;
  color: var(--ink);
}

.my-news-home-head h2,
.my-news-header h1 {
  font-size: 30px;
}

.my-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.my-news-card,
.my-news-article {
  min-width: 0;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--wall);
  box-shadow: 5px 5px 0 var(--worker-blue);
}

.my-news-card h3,
.my-news-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.my-news-card time,
.my-news-meta {
  color: var(--muted);
  font-size: 14px;
}

.my-news-card p,
.my-news-summary,
.my-news-content {
  color: var(--ink);
}

.my-news-card a,
.my-news-back,
.my-news-nav a,
.my-news-all {
  color: var(--worker-blue);
  font-weight: 700;
}

.my-news-article h1 {
  margin: 12px 0;
  font-size: 34px;
  overflow-wrap: anywhere;
}

.my-news-summary {
  font-weight: 700;
}

.my-news-content {
  line-height: 1.9;
}

.my-news-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.download-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 24, 24, .68);
}

.download-confirm-panel {
  width: min(440px, 100%);
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--wall);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--worker-blue);
}

.download-confirm-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.download-confirm-panel p {
  margin: 0;
  color: var(--muted);
}

.download-confirm-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.download-confirm-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.download-confirm-cancel {
  background: var(--paper);
  color: var(--ink);
}

.download-confirm-continue {
  background: var(--repair-red);
  color: #fff;
}

.download-confirm-actions button:focus-visible,
.my-news-page a:focus-visible,
.my-news-home-section a:focus-visible {
  outline: 3px solid var(--worker-blue);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .my-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .my-news-home-inner,
  .my-news-shell {
    width: calc(100% - 28px);
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .my-news-home-head {
    align-items: flex-start;
  }

  .my-news-article h1 {
    font-size: 28px;
  }
}
