:root {
  color-scheme: light;
  --color-primary: #FF9E2A;
  --color-primary-light: #FFE8C5;
  --color-secondary: #82B268;
  --color-accent: #FFFDF7;
  --color-bg-page: #FAF8F3;
  --color-bg-card: #FFFFFF;
  --color-text-main: #4A3E3D;
  --color-text-muted: #8C7E7A;
  --color-border: #F3E9DC;
  --shadow-tiger: 0 12px 32px rgba(255, 158, 42, 0.08);
  --shadow-tiger-hover: 0 20px 40px rgba(255, 158, 42, 0.16);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: url('../banner3.jpg') center / cover no-repeat fixed;
  color: var(--color-text-main);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   SITE HEADER — Glass over banner
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(74, 62, 61, 0.15);
  border-radius: 10px;
  background: var(--color-primary-light);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.top-nav {
  display: flex;
  gap: 2px;
}

.top-nav a {
  min-width: 64px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.top-nav a:hover {
  background: rgba(130, 178, 104, 0.10);
  color: var(--color-text-main);
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   TIGER FOCAL — Centered tiger avatar on banner
   ============================================================ */
.tiger-focal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 50px;
  min-height: calc(100vh - 68px - 60px);
}

.tiger-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 60px rgba(74, 62, 61, 0.25);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(4px);
  margin-bottom: 24px;
}

.tiger-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focal-title {
  margin: 0 0 10px;
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 3px;
  text-shadow: 0 4px 30px rgba(74, 62, 61, 0.35);
}

.focal-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 2vw, 20px);
  text-shadow: 0 2px 12px rgba(74, 62, 61, 0.25);
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   CONTENT AREA — White panel over the banner
   ============================================================ */
.content-area {
  background: var(--color-bg-page);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 40px rgba(74, 62, 61, 0.08);
  position: relative;
  z-index: 2;
}

.reader-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 52px;
}

.content-column {
  min-width: 0;
}

.right-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   RIGHT-RAIL PANELS
   ============================================================ */
.profile-panel,
.topic-panel,
.note-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.profile-panel,
.note-panel {
  padding: 20px;
}

.profile-panel h2,
.note-panel h2 {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.2;
}

.profile-panel h2,
.topic-panel h2,
.note-panel h2,
.section-title h2 {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: 0;
}

.profile-panel p:last-child,
.note-panel p:last-child {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.site-info a, .site-info span {
  font-size: 12px;
  color: var(--color-text-muted);
  background: rgba(255, 158, 42, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 158, 42, 0.12);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.site-info a:hover {
  background: rgba(255, 158, 42, 0.15);
  color: var(--color-primary, #ff7e36);
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-kicker {
  margin: 0;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   TOPIC LIST
   ============================================================ */
.topic-panel {
  padding: 20px;
}

.topic-list {
  display: grid;
  gap: 6px;
}

.topic-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-main);
  font-size: 14px;
  transition: background 150ms ease, border-color 150ms ease;
}

.topic-list button strong {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.topic-list button.is-active,
.topic-list button:hover {
  border-color: rgba(255, 158, 42, 0.25);
  background: rgba(255, 158, 42, 0.07);
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   TOOLBAR
   ============================================================ */













/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.search-box {
  flex: 1;
  display: grid;
  gap: 6px;
}

.sort-box {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.search-box span,
.sort-box span {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.search-wrapper {
  position: relative;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 15px;
  pointer-events: none;
  opacity: 0.5;
}

.search-box input,
.toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-card);
  color: var(--color-text-main);
  padding: 0 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.search-box input {
  padding-left: 40px;
}

.sort-box select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238C7E7A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a.5.5 0 0 1-.35-.15l-4-4a.5.5 0 0 1 .7-.7L8 10.3l3.65-3.65a.5.5 0 0 1 .7.7l-4 4A.5.5 0 0 1 8 11.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.search-box input:focus,
.toolbar select:focus {
  border-color: rgba(255, 158, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 158, 42, 0.10);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}
/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-text-muted);
  text-align: center;
}

.ad-slot span {
  display: block;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ad-slot strong {
  font-size: 13px;
  font-weight: 700;
}

.ad-slot-tall {
  min-height: 200px;
}

.ad-slot-box {
  min-height: 160px;
}

.ad-slot-wide {
  margin-bottom: 4px;
}

.ad-slot-inline {
  margin: 28px 0 32px;
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 14px;
}

.section-title h2 {
  margin-top: 3px;
  font-size: 28px;
}

.section-title span {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.article-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-cover {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-border);
}

.article-card:hover {
  border-color: rgba(255, 158, 42, 0.35);
  box-shadow: var(--shadow-tiger-hover);
  transform: translateY(-3px);
}

.card-topline,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.card-topline span {
  color: var(--color-secondary);
  font-weight: 800;
}

.article-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.3;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card p {
  max-width: 62ch;
  margin: 0;
  color: var(--color-text-main);
  font-size: 15px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag-row span {
  padding: 4px 10px;
  border: 1px solid rgba(130, 178, 104, 0.20);
  border-radius: 999px;
  background: rgba(130, 178, 104, 0.08);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 600;
}

.article-card button {
  align-self: flex-start;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease, transform 120ms ease;
}

.article-card button:hover {
  background: #F08C18;
  transform: scale(1.02);
}

.article-card button:active {
  transform: scale(0.97);
}

.empty-state {
  padding: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   ARTICLE DIALOG (Modal)
   ============================================================ */
.article-dialog {
  width: min(790px, calc(100% - 28px));
  max-height: min(890px, calc(100dvh - 28px));
  border: 0;
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--color-bg-card);
  box-shadow: 0 24px 80px rgba(74, 62, 61, 0.25);
}

.article-dialog::backdrop {
  background: rgba(74, 62, 61, 0.48);
}

.dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 14px 14px 0 0;
  border: 0;
  border-radius: 999px;
  background: rgba(74, 62, 61, 0.50);
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease;
  z-index: 1;
}

.dialog-close:hover {
  background: var(--color-primary);
}

.article-view {
  padding: 46px clamp(24px, 5vw, 64px) 58px;
}

.article-kicker {
  margin: 0 0 8px;
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-view h2 {
  max-width: 14em;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-cover {
  display: block;
  width: 100%;
  margin: 22px 0 0;
  aspect-ratio: 2.35 / 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-border);
}

.article-cover[hidden] {
  display: none;
}

.article-body {
  max-width: 39em;
  margin-top: 26px;
  color: var(--color-text-main);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 2;
}

.article-body h2,
.article-body h3 {
  margin: 34px 0 12px;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.35;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body strong {
  font-family: var(--sans);
  font-weight: 800;
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
  background: var(--color-bg-page);
}

/* ============================================================
   TOOLS PANEL — Right rail tool links
   ============================================================ */
.tools-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-tiger);
  overflow: hidden;
}

.tools-panel .panel-heading {
  padding: 16px 20px 0;
}

.tools-panel .panel-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.tools-list {
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.tool-link:hover {
  background: var(--color-primary-light);
}

.tool-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-bg-page);
  border-radius: 8px;
  flex: 0 0 auto;
}

.tool-name {
  flex: 1;
  min-width: 0;
}

.tool-arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 180ms ease;
}

.tool-link:hover .tool-arrow {
  transform: translateX(3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .reader-shell {
    grid-template-columns: 1fr 260px;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  html {
    background: #FAF8F3;
  }

  body {
    background: linear-gradient(160deg, #FFF8ED 0%, #FFFDF7 30%, #FAF8F3 60%, #F5F0E8 100%);
    min-height: 100vh;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1;
  }

  .tiger-focal {
    background: url("../banner3.jpg") center / cover no-repeat scroll;
    background-color: rgba(250, 248, 243, 0.15);
    background-blend-mode: overlay;
    min-height: 50vh;
    padding: 40px 20px 30px;
  }

  .tiger-avatar {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
  }

  .focal-title {
    font-size: 32px;
  }

  .focal-desc {
    font-size: 14px;
  }

  .ad-slot {
    min-height: 50px;
    padding: 6px;
  }

  .ad-slot-tall {
    min-height: 120px;
  }

  .ad-slot-box {
    min-height: 80px;
  }

  .ad-slot-wide {
    margin-bottom: 2px;
  }

  .reader-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0 28px;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .article-card {
    padding: 14px;
  }

  .article-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    padding: 12px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .brand small {
    max-width: 220px;
  }

  .focal-title {
    font-size: 40px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-card h3 {
    font-size: 18px;
  }

  .article-view {
    padding: 38px 20px 46px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.95;
  }
}

/* ===== 独立文章页 ===== */
.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}
.article-main {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-tiger);
}
.article-main h1 {
  font-size: 1.7rem;
  line-height: 1.45;
  margin: 6px 0 12px;
}
.article-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 14px 0 6px;
}
.article-body {
  font-size: 1.04rem;
  line-height: 1.95;
}
.article-body h2 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
}
.article-body h3 {
  font-size: 1.12rem;
  margin: 24px 0 10px;
}
.article-body p {
  margin: 0 0 16px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}
.article-body a {
  color: var(--color-primary);
}
.article-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.article-links a {
  color: var(--color-primary);
  font-weight: 600;
}
.more-articles {
  margin-top: 34px;
}
.more-articles h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.more-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.more-articles li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 2px;
  border-bottom: 1px solid var(--color-border);
}
.more-articles time {
  flex: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.more-articles a {
  color: var(--color-text-main);
  text-decoration: none;
}
.more-articles a:hover {
  color: var(--color-primary);
}

/* ===== 首页卡片链接 ===== */
.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-title-link:hover {
  color: var(--color-primary);
}
.card-cover-link {
  display: block;
}
.card-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}
.card-cta:hover {
  background: #e08a1a;
}