/*
Theme Name: DHBOHCF Refresh
Theme URI: https://www.dhbohcf.com/
Description: A modern, readable child theme for 平凡的奋斗者.
Author: Jun
Template: twentytwelve
Version: 1.0.0
*/

:root {
  --dh-bg: #f5f7f3;
  --dh-paper: #ffffff;
  --dh-ink: #20252d;
  --dh-muted: #65707c;
  --dh-soft: #edf1ec;
  --dh-line: #dde4dd;
  --dh-accent: #0f766e;
  --dh-accent-dark: #0b4f4a;
  --dh-warm: #b7791f;
  --dh-shadow: 0 18px 55px rgba(35, 45, 58, 0.08);
}

html {
  background: var(--dh-bg);
}

body {
  background: var(--dh-bg);
  color: var(--dh-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--dh-accent);
}

a:hover,
a:focus {
  color: var(--dh-accent-dark);
}

body .site {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0;
  background: var(--dh-paper);
  border: 1px solid rgba(221, 228, 221, 0.9);
  border-radius: 18px;
  box-shadow: var(--dh-shadow);
  overflow: hidden;
}

.site-header {
  padding: 34px 44px 18px;
}

.site-header h1,
.site-header h2 {
  text-align: left;
}

.site-title a {
  color: var(--dh-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-description {
  max-width: 720px;
  margin-top: 10px;
  color: var(--dh-muted);
  font-size: 15px;
  line-height: 1.7;
}

.main-navigation {
  margin-top: 26px;
  border-top: 1px solid var(--dh-line);
  border-bottom: 1px solid var(--dh-line);
}

.main-navigation ul.nav-menu,
.main-navigation div.nav-menu > ul {
  border: 0;
}

.main-navigation ul.nav-menu {
  width: 100%;
}

.main-navigation li a {
  color: #34404c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-transform: none;
  white-space: normal;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
  color: var(--dh-accent);
}

.main-navigation li ul li a {
  background: #ffffff;
  border-bottom: 1px solid var(--dh-line);
}

.main-navigation .dh-nav-label {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.main-navigation .dh-nav-label-main {
  color: inherit;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.1;
}

.main-navigation .dh-nav-label-sub {
  color: var(--dh-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
}

@media screen and (min-width: 600px) {
  .main-navigation ul.nav-menu {
    align-items: center;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: stretch;
    white-space: nowrap;
  }

  .main-navigation ul.nav-menu > li {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
  }

  .main-navigation ul.nav-menu > li > a {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    line-height: 1.2;
    min-height: 56px;
    padding: 0 6px;
    text-align: center;
  }

  .main-navigation li a {
    line-height: 3.2;
    white-space: nowrap;
  }

  .main-navigation ul.nav-menu > li > ul.sub-menu {
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    width: max-content;
  }

  .main-navigation ul.nav-menu > li > ul.sub-menu > li {
    margin: 0;
    vertical-align: top;
  }

  .main-navigation ul.nav-menu > li > ul.sub-menu > li > a {
    box-sizing: border-box;
    padding: 7px 9px;
    white-space: nowrap;
    width: auto;
  }

  .main-navigation ul.nav-menu > li:last-child > ul.sub-menu {
    left: auto;
    right: 0;
    transform: none;
  }
}

@media screen and (max-width: 599px) {
  .main-navigation {
    margin-top: 20px;
    padding-top: 14px;
  }

  .main-navigation .menu-toggle {
    margin-bottom: 10px;
  }

  .main-navigation ul.nav-menu.toggled-on {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .main-navigation ul.nav-menu.toggled-on li {
    display: block;
    list-style: none;
    margin: 0;
    width: 100%;
  }

  .main-navigation ul.nav-menu.toggled-on > li {
    border-top: 1px solid var(--dh-line);
  }

  .main-navigation ul.nav-menu.toggled-on a {
    box-sizing: border-box;
    display: block;
    line-height: 1.4;
    overflow-wrap: anywhere;
    padding: 11px 12px;
    text-align: left;
    white-space: normal;
    width: 100%;
  }

  .main-navigation ul.nav-menu.toggled-on ul {
    list-style: none;
    margin: 0;
    padding-left: 18px;
  }

  .main-navigation ul.nav-menu.toggled-on ul a {
    color: var(--dh-muted);
    font-size: 13px;
    padding-bottom: 9px;
    padding-top: 9px;
  }

  .main-navigation .dh-nav-label {
    align-items: flex-start;
  }
}

@media screen and (min-width: 600px) and (max-width: 800px) {
  .main-navigation ul.nav-menu > li:nth-child(2) > ul.sub-menu {
    left: 0;
    transform: none;
  }

  .main-navigation ul.nav-menu > li:nth-child(4) > ul.sub-menu {
    left: calc(50% - 20px);
  }

}

.wrapper {
  margin-top: 0;
  padding: 0 44px 42px;
}

.site-content {
  width: 68%;
}

.widget-area {
  width: 26%;
}

.entry-header .entry-title,
.entry-header .entry-title a {
  color: var(--dh-ink);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.entry-content,
.entry-summary,
.mu_register {
  color: #25303a;
  font-size: 17px;
  line-height: 1.9;
}

.entry-content p,
.entry-summary p {
  margin-bottom: 1.35em;
}

.entry-content h2,
.entry-content h3,
.comment-content h2,
.comment-content h3 {
  color: var(--dh-ink);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.35;
  margin-top: 2.1em;
}

.entry-content h2 {
  font-size: 25px;
}

.entry-content h3 {
  font-size: 21px;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
  border-left: 4px solid var(--dh-accent);
  background: #f7faf8;
  color: #35404a;
  margin-left: 0;
  padding: 18px 22px;
}

.entry-content code,
.entry-content pre {
  background: #f3f6f4;
  border: 1px solid var(--dh-line);
  border-radius: 6px;
}

.entry-content pre {
  padding: 18px;
  overflow: auto;
}

.entry-meta {
  color: var(--dh-muted);
  font-size: 13px;
}

.widget-area .widget {
  background: #f8faf8;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  margin-bottom: 22px;
  padding: 18px;
}

.widget-area .widget h2,
.widget-area .widget-title {
  color: var(--dh-ink);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.wp-block-search__inside-wrapper {
  gap: 8px;
}

.wp-block-search__input {
  border-color: var(--dh-line);
  border-radius: 8px;
}

.wp-block-search__button,
.form-submit .submit {
  background: var(--dh-accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
}

.wp-block-search__button:hover,
.form-submit .submit:hover {
  background: var(--dh-accent-dark);
}

.dh-home-main {
  padding-bottom: 52px;
}

.dh-home-site-content {
  float: none;
  width: 100%;
}

.dh-home {
  max-width: 1040px;
  margin: 0 auto;
}

.dh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: end;
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--dh-line);
}

.dh-kicker {
  color: var(--dh-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.dh-hero h1 {
  max-width: 730px;
  color: var(--dh-ink);
  font-size: 46px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.dh-hero p {
  max-width: 690px;
  color: var(--dh-muted);
  font-size: 17px;
  line-height: 1.85;
  margin: 18px 0 0;
}

.dh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.dh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--dh-accent);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.dh-button-primary {
  background: var(--dh-accent);
  color: #ffffff;
}

.dh-button-primary:hover,
.dh-button-primary:focus {
  background: var(--dh-accent-dark);
  color: #ffffff;
}

.dh-button-secondary {
  background: #ffffff;
  color: var(--dh-accent);
}

.dh-hero-note {
  background: #f8faf8;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  padding: 20px;
}

.dh-hero-note strong {
  display: block;
  color: var(--dh-ink);
  font-size: 15px;
  margin-bottom: 8px;
}

.dh-hero-note span {
  color: var(--dh-muted);
  display: block;
  font-size: 14px;
  line-height: 1.7;
}

.dh-hero-photo {
  align-self: end;
  margin: 0;
  min-width: 0;
}

.dh-hero-photo a,
.dh-hero-photo img {
  display: block;
  width: 100%;
}

.dh-hero-photo img {
  aspect-ratio: 10 / 7;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
}

.dh-hero-photo figcaption {
  color: var(--dh-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 9px;
  text-align: center;
}

.dh-section {
  padding: 42px 0 0;
}

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

.dh-section h2 {
  color: var(--dh-ink);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
}

.dh-section-head p {
  color: var(--dh-muted);
  line-height: 1.75;
  margin: 8px 0 0;
}

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

.dh-card {
  min-height: 154px;
  background: #ffffff;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-card:hover,
.dh-card:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 12px 32px rgba(35, 45, 58, 0.08);
  transform: translateY(-2px);
}

.dh-card strong {
  color: var(--dh-ink);
  display: block;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.dh-card span {
  color: var(--dh-muted);
  display: block;
  font-size: 14px;
  line-height: 1.65;
}

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

.dh-post-card {
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  padding: 20px;
}

.dh-post-card time {
  color: var(--dh-warm);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.dh-post-card h3 {
  font-size: 19px;
  line-height: 1.42;
  margin: 0 0 10px;
}

.dh-post-card h3 a {
  color: var(--dh-ink);
  text-decoration: none;
}

.dh-post-card h3 a:hover,
.dh-post-card h3 a:focus {
  color: var(--dh-accent);
}

.dh-post-card p {
  color: var(--dh-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.dh-archive-panel {
  background: #f7faf8;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 22px;
}

.dh-archive-panel p {
  color: var(--dh-muted);
  line-height: 1.75;
  margin: 6px 0 0;
}

.ACT-wrapper {
  margin-top: 24px;
}

.ACT-wrapper h4 {
  background: #f7faf8;
  border: 1px solid var(--dh-line);
  border-radius: 10px;
  color: var(--dh-ink);
  font-size: 18px;
  margin: 26px 0 12px;
  padding: 12px 16px;
}

.ACT-wrapper h4 a,
.ACT-wrapper .subcat a {
  color: var(--dh-ink);
  text-decoration: none;
}

.ACT-wrapper h4 a:hover,
.ACT-wrapper .subcat a:hover {
  color: var(--dh-accent);
}

.ACT-wrapper ul {
  list-style: none;
  margin: 0 0 8px;
  padding-left: 0;
}

.ACT-wrapper ul ul {
  border-left: 2px solid var(--dh-line);
  margin-left: 10px;
  padding-left: 18px;
}

.ACT-wrapper li {
  line-height: 1.75;
}

.ACT-wrapper .subcat {
  color: var(--dh-muted);
  font-weight: 800;
  margin: 14px 0 6px;
}

.ACT-wrapper .subpost {
  border-bottom: 1px solid #edf1ec;
  color: var(--dh-muted);
  padding: 5px 0;
}

.ACT-wrapper .subpost a {
  color: #304152;
  text-decoration: none;
}

.ACT-wrapper .subpost a:hover,
.ACT-wrapper .subpost a:focus {
  color: var(--dh-accent);
}

.dh-photo-header {
  border-bottom: 1px solid var(--dh-line);
  margin-bottom: 28px;
  padding-bottom: 16px;
}

.dh-photo-header h1 {
  color: var(--dh-ink);
  font-size: 30px;
  line-height: 1.25;
  margin: 0;
}

.dh-photo-header span,
.dh-photo-entry time {
  color: var(--dh-muted);
  font-size: 13px;
  font-weight: 650;
}

.dh-photo-header span {
  display: block;
  margin-top: 5px;
}

.dh-photo-entry {
  border-bottom: 1px solid var(--dh-line);
  margin-bottom: 34px;
  padding-bottom: 30px;
}

.dh-photo-entry h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 6px 0 0;
}

.dh-photo-entry h2 a {
  color: var(--dh-ink);
  text-decoration: none;
}

.dh-photo-entry .entry-content {
  margin-top: 12px;
}

.dh-photo-entry .entry-content figure {
  margin: 0;
}

.dh-photo-entry .entry-content img {
  display: block;
  height: auto;
  width: 100%;
}

.dh-photo-entry .wp-block-image figcaption {
  color: var(--dh-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
  text-align: center;
}

.dh-photo-empty {
  color: var(--dh-muted);
  padding: 18px 0;
}

@media screen and (max-width: 960px) {
  body .site {
    margin: 0;
    border-radius: 0;
  }

  .site-header,
  .wrapper {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-content,
  .widget-area {
    float: none;
    width: 100%;
  }

  .dh-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .dh-hero-photo {
    justify-self: center;
    max-width: 560px;
    width: 100%;
  }

  .dh-hero h1 {
    font-size: 36px;
  }

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

@media screen and (max-width: 640px) {
  .site-title a {
    font-size: 28px;
  }

  .dh-hero h1 {
    font-size: 29px;
  }

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

  .dh-card-grid,
  .dh-post-grid {
    grid-template-columns: 1fr;
  }

  .dh-button {
    width: 100%;
  }
}

/* Consistent screenshot presentation for the Gemini guide. */
.entry-content .gemini-guide-figure {
  margin: 28px auto 34px;
  max-width: 760px;
}

.entry-content .gemini-guide-figure img {
  background: #f4f7f6;
  border: 1px solid #d9e1dd;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(15, 32, 29, 0.07);
  box-sizing: border-box;
  display: block;
  height: clamp(260px, 48vw, 460px);
  margin: 0 auto;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.entry-content .gemini-guide-figure figcaption {
  color: #68716d;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px auto 0;
  max-width: 680px;
  text-align: center;
}

.entry-content .gemini-guide-pair {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px auto 34px;
  max-width: 700px;
}

.entry-content .gemini-guide-pair .gemini-guide-figure {
  margin: 0;
  max-width: none;
  min-width: 0;
}

@media screen and (min-width: 641px) {
  .entry-content .gemini-guide-pair .gemini-guide-figure img {
    height: 420px;
    padding: 14px;
  }
}

@media screen and (max-width: 640px) {
  .entry-content .gemini-guide-figure {
    margin-bottom: 28px;
    margin-top: 24px;
  }

  .entry-content .gemini-guide-figure img {
    height: clamp(220px, 72vw, 340px);
    padding: 12px;
  }

  .entry-content .gemini-guide-pair {
    gap: 28px;
    grid-template-columns: 1fr;
    margin-bottom: 28px;
    margin-top: 24px;
  }

  .entry-content .gemini-guide-pair .gemini-guide-figure {
    margin: 0;
  }
}

/* Keep the three small VPN screenshots close to their native dimensions. */
.entry-content .gemini-guide-figure.gemini-guide-figure--native {
  max-width: var(--gemini-native-width);
}

.entry-content .gemini-guide-figure.gemini-guide-figure--native img {
  background: #ffffff;
  height: auto;
  max-width: 100%;
  padding: 8px;
  width: 100%;
}

.entry-content .gemini-guide-figure--vpn-home {
  --gemini-native-width: 625px;
}

.entry-content .gemini-guide-figure--vpn-refund {
  --gemini-native-width: 379px;
}

.entry-content .gemini-guide-figure--vpn-plan {
  --gemini-native-width: 428px;
}

.entry-content .gemini-guide-figure--mickey-plans {
  --gemini-native-width: 625px;
}

@media screen and (max-width: 640px) {
  .entry-content .gemini-guide-figure.gemini-guide-figure--native img {
    height: auto;
    padding: 6px;
  }
}
