/*
Theme Name: Weyougou Modern
Theme URI: https://www.weyougou.com/
Description: 基于 Hueman 的现代化中文资讯子主题。
Author: Weyougou
Template: hueman
Version: 1.0.1
Text Domain: weyougou-modern
*/

:root {
  --wy-primary: #176b5d;
  --wy-primary-dark: #0f5147;
  --wy-accent: #e9a23b;
  --wy-ink: #17252f;
  --wy-muted: #64727c;
  --wy-line: #e4e9e7;
  --wy-surface: #ffffff;
  --wy-canvas: #f4f7f6;
  --wy-radius: 16px;
  --wy-shadow: 0 10px 30px rgba(22, 54, 48, .08);
  --wy-shadow-hover: 0 18px 45px rgba(22, 54, 48, .14);
}

html { scroll-behavior: smooth; }

body {
  color: var(--wy-ink);
  background: var(--wy-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wy-primary); transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--wy-primary-dark); }
img { border-radius: 10px; }

/* Page frame */
#wrapper { min-width: 0; }
.container { padding-left: 24px; padding-right: 24px; }
.container-inner { max-width: 1180px; }
#page { padding-top: 28px; padding-bottom: 44px; }
#page > .container-inner {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.main { background: transparent; }
.main-inner { padding-bottom: 0; }
.content { background: transparent; }

/* Header */
#header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(18, 59, 52, .08);
  box-shadow: 0 7px 24px rgba(22, 54, 48, .06);
  backdrop-filter: blur(12px);
}
#header .pad { padding-top: 24px; padding-bottom: 24px; }
#header .site-title { font-weight: 800; letter-spacing: -.03em; }
#header .site-title a { color: var(--wy-ink); }
#header .site-description { color: var(--wy-muted); font-size: 14px; }
.site-image img { max-height: 60px; width: auto; border-radius: 0; }

#nav-topbar { background: var(--wy-primary-dark); }
#nav-header {
  background: var(--wy-primary);
  border: 0;
  box-shadow: inset 0 -1px rgba(255,255,255,.12);
}
.nav-container .nav > li > a {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 650;
}
.nav-container .nav > li.current-menu-item > a,
.nav-container .nav > li.current-menu-parent > a,
.nav-container .nav > li > a:hover { background: rgba(255,255,255,.12); }
.nav ul { border-radius: 0 0 12px 12px; box-shadow: var(--wy-shadow); }
.search-expand { background: var(--wy-surface); box-shadow: var(--wy-shadow); }
.search-expand input { color: var(--wy-ink); }

/* Titles and section rhythm */
.page-title {
  margin: 0 0 22px;
  padding: 0 0 14px;
  color: var(--wy-ink);
  background: transparent;
  border-bottom: 1px solid var(--wy-line);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.page-title h1,
.page-title h2,
.page-title h3 { color: var(--wy-ink); }

/* Featured area */
.featured {
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: var(--wy-radius);
  background: var(--wy-surface);
  box-shadow: var(--wy-shadow);
}
.featured .post-inner { border-radius: var(--wy-radius); }
.featured .post-title { font-size: clamp(22px, 3vw, 34px); line-height: 1.25; }
.featured .post-title a { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.28); }
.featured .post-thumbnail:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(5,25,22,.78));
  pointer-events: none;
}

/* Post cards */
.post-list-standard,
#grid-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-list-standard .post,
#grid-wrapper .post {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--wy-surface);
  border-radius: var(--wy-radius);
  box-shadow: var(--wy-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-list-standard .post:hover,
#grid-wrapper .post:hover { transform: translateY(-4px); box-shadow: var(--wy-shadow-hover); }
.post-list-standard .post-inner,
#grid-wrapper .post-inner { padding: 0 0 20px; border: 0; }
.post-list-standard .post-thumbnail,
#grid-wrapper .post-thumbnail { overflow: hidden; margin: 0; border-radius: var(--wy-radius) var(--wy-radius) 0 0; }
.post-list-standard .post-thumbnail img,
#grid-wrapper .post-thumbnail img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  transition: transform .35s ease;
}
.post-list-standard .post:hover .post-thumbnail img,
#grid-wrapper .post:hover .post-thumbnail img { transform: scale(1.035); }
.post-list-standard .post-content,
#grid-wrapper .post-content { padding: 20px 22px 0; }
.post-title { color: var(--wy-ink); font-weight: 750; letter-spacing: -.02em; }
.post-title a { color: var(--wy-ink); }
.post-title a:hover { color: var(--wy-primary); }
.post-meta { color: var(--wy-muted); font-size: 13px; }
.post-meta a { color: var(--wy-muted); }
.entry.excerpt { color: #4d5b64; font-size: 15px; line-height: 1.75; }

/* Single posts and pages */
.single .content .post,
.page .content .page,
.archive .content > .pad,
.search .content > .pad {
  background: var(--wy-surface);
  border-radius: var(--wy-radius);
  box-shadow: var(--wy-shadow);
}
.single .content .post-inner,
.page .content .page .post-inner { padding: clamp(24px, 4vw, 48px); }
.single .post-title,
.page .post-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
.entry { color: #283842; font-size: 17px; }
.entry h2, .entry h3, .entry h4 { color: var(--wy-ink); line-height: 1.4; margin-top: 1.8em; }
.entry h2 { padding-left: 14px; border-left: 4px solid var(--wy-accent); }
.entry p { margin-bottom: 1.25em; }
.entry a { text-decoration: underline; text-decoration-color: rgba(23,107,93,.28); text-underline-offset: 3px; }
.entry blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  color: #31534d;
  background: #edf6f3;
  border-left: 4px solid var(--wy-primary);
  border-radius: 0 12px 12px 0;
}
.entry table { overflow: hidden; border-radius: 10px; border: 1px solid var(--wy-line); }
.entry th { color: #fff; background: var(--wy-primary); }
.entry th, .entry td { padding: 12px 14px; border-color: var(--wy-line); }
.entry img { height: auto; box-shadow: 0 6px 20px rgba(22,54,48,.08); }

/* Sidebar */
.sidebar { padding: 0 0 0 24px; }
.sidebar .widget {
  margin-bottom: 22px;
  padding: 22px;
  background: var(--wy-surface);
  border-radius: var(--wy-radius);
  box-shadow: var(--wy-shadow);
}
.sidebar .widget-title {
  margin: -22px -22px 18px;
  padding: 16px 22px;
  color: var(--wy-ink);
  background: transparent;
  border-bottom: 1px solid var(--wy-line);
  font-size: 16px;
  font-weight: 750;
}
.sidebar .widget-title:before { background: var(--wy-accent); }
.sidebar .widget ul li { padding: 10px 0; border-bottom-color: var(--wy-line); }
.sidebar .widget a { color: #3c4b54; }
.sidebar .widget a:hover { color: var(--wy-primary); }

/* Controls */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  color: var(--wy-ink);
  background: #fff;
  border: 1px solid #d9e2df;
  border-radius: 10px;
  box-shadow: none;
}
input:focus, textarea:focus { border-color: var(--wy-primary); box-shadow: 0 0 0 3px rgba(23,107,93,.12); }
button, input[type="submit"], .button {
  border-radius: 9px;
  background: var(--wy-primary);
  font-weight: 700;
  box-shadow: none;
}
button:hover, input[type="submit"]:hover, .button:hover { background: var(--wy-primary-dark); }
.pagination a,
.pagination span { border-radius: 8px; }
.pagination .current { background: var(--wy-primary); }

/* Footer */
#footer { color: rgba(255,255,255,.78); background: #112f2a; }
#footer-widgets { padding-top: 44px; }
#footer .widget-title { color: #fff; }
#footer-bottom { padding: 26px 0; background: #0b2420; }
#footer a { color: rgba(255,255,255,.86); }
#footer a:hover { color: #fff; }

/* Accessibility and focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(233,162,59,.75);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .container { padding-left: 18px; padding-right: 18px; }
  #page { padding-top: 20px; }
  .sidebar { padding-left: 0; }
  .sidebar .widget { border-radius: 12px; }
}

@media (max-width: 719px) {
  body { font-size: 15px; }
  .container { padding-left: 14px; padding-right: 14px; }
  #page { padding-top: 14px; padding-bottom: 28px; }
  #header .pad { padding-top: 16px; padding-bottom: 16px; }
  .mobile-title-logo-in-header { padding: 10px 0; }
  .nav-container .nav > li > a { padding: 13px 16px; }
  .post-list-standard,
  #grid-wrapper { grid-template-columns: 1fr; gap: 16px; }
  .post-list-standard .post-thumbnail img,
  #grid-wrapper .post-thumbnail img { height: 210px; }
  .post-list-standard .post-content,
  #grid-wrapper .post-content { padding: 17px 18px 0; }
  .featured { margin-bottom: 18px; border-radius: 12px; }
  .single .content .post-inner,
  .page .content .page .post-inner { padding: 22px 18px; }
  .single .post-title,
  .page .post-title { font-size: 28px; }
  .entry { font-size: 16px; }
  .sidebar .widget { padding: 18px; }
  .sidebar .widget-title { margin: -18px -18px 14px; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
