/* RedditPost.cn — layout inspired by yupoocopy.cn, Reddit-themed */
:root {
  --brand: #ff4500;
  --brand-dark: #cc3700;
  --brand-light: #fff4ef;
  --text: #1a1a1b;
  --text-muted: #666;
  --border: #e8e8e8;
  --bg: #fafafa;
  --white: #fff;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --max: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Header */
.header__wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.header__logo img { height: 36px; width: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--brand);
  background: var(--brand-light);
}

/* Main layout */
.commonpage__main {
  min-height: calc(100vh - var(--header-h) - 60px);
  padding-bottom: 48px;
}

/* Hero — home */
.extension__header {
  text-align: center;
  padding: 56px 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.extension__header h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}

.extension__header p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* Service cards grid */
.extension__main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.extension__downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.extension__downloadEntry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.extension__downloadEntry:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.extension__downloadEntry a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  text-align: center;
  min-height: 160px;
  justify-content: center;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.service-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.service-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.feature-strip__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px;
  border: 1px solid var(--border);
  text-align: center;
}

.feature-strip__item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--brand);
}

.feature-strip__item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Process steps */
.process {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 40px;
}

.process h2 {
  margin: 0 0 20px;
  font-size: 18px;
  text-align: center;
}

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

.process__step {
  text-align: center;
  padding: 12px 8px;
}

.process__num {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
}

.process__step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.process__step b {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

/* Articles toggle */
.home-articles {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.home-articles__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.home-articles__toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.home-articles__hint {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  white-space: nowrap;
}

.home-articles__list { margin-top: 12px; }
.home-articles__list[hidden] { display: none !important; }

.home-articles .link {
  display: block;
  padding: 10px 0;
  color: var(--text);
  line-height: 1.5;
  border-bottom: 1px solid #eee;
}

.home-articles .link:hover { color: var(--brand); }

/* Page header (inner pages) */
.page-header {
  text-align: center;
  padding: 48px 20px 32px;
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 100%);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 32px);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.page-header__line {
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Price table */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.pricetable__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricetable__head {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  border-bottom: 2px solid var(--brand);
  background: #fff;
  min-width: 640px;
}

.pricetable__head .pricetable__th {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.pricetable__head .pricetable__th:first-child {
  text-align: left;
  padding-left: 24px;
}

.pricetable__head .pricetable__th:last-child { border-right: none; }

.pricetable__type {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.pricetable__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.pricetable__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
}

.pricetable__table td:first-child {
  text-align: left;
  padding-left: 24px;
  font-weight: 500;
  color: var(--text);
  background: #fafafa;
}

.pricetable__table tr:last-child td { border-bottom: none; }
.pricetable__table td:last-child { border-right: none; }

.icon-check {
  color: var(--brand);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.button:hover { background: var(--brand-dark); }

.button--outline {
  background: transparent;
  color: var(--brand) !important;
  border: 1px solid var(--brand);
}

.button--outline:hover {
  background: var(--brand-light);
}

.price-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--brand-light);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact page */
.contact-wrap {
  max-width: 720px;
  margin: 32px auto 72px;
  padding: 0 20px;
}

.contact-intro {
  margin: 0 auto 22px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.contact-panel .sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-qr-wrap {
  width: min(100%, 360px);
  margin: 0 auto;
  line-height: 0;
}

.contact-qr {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  background: #f5f5f5;
  object-fit: contain;
}

.contact-tips {
  margin: 20px auto 0;
  max-width: 420px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-tips li { margin: 8px 0; }

.contact-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--brand-light);
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
}

/* Updates / article list */
.updates-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px;
}

.updates-list .link {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}

.updates-list .link:hover { color: var(--brand); }

.updates-list .link time {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Article page */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.article-wrap h1 {
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.35;
  margin: 0 0 12px;
}

.article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--text);
}

.article-body p,
.article-body li {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
}

.article-body ul {
  padding-left: 20px;
  list-style: disc;
}

.article-back {
  display: inline-block;
  margin-top: 32px;
  font-size: 14px;
  color: var(--brand);
}

/* Floating toolbar */
.floating-toolbar {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 90;
}

.floating-toolbar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-toolbar a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.45);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: #999;
  border-top: 1px solid var(--border);
  background: var(--white);
}
