/*
Theme Name: Stocks Value
Theme URI: https://stocks-value.com/
Author: Stocks Value
Description: A focused WordPress theme for a public stock value judgment system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: stockvalue
*/

:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #1d2522;
  --muted: #5e6c66;
  --line: #d9ded7;
  --green: #164b3b;
  --green-2: #28715b;
  --amber: #b2782c;
  --shadow: 0 22px 60px rgba(29, 37, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
}

.top-nav a:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: 620px;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px) 56px;
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.eyebrow {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 980px;
}

.hero-lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  min-height: 46px;
  padding: 10px 16px;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
}

.terminal-panel {
  align-self: center;
  background: #10231e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #eef6f2;
  overflow: hidden;
  padding: 18px;
}

.panel-top {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.panel-top span {
  background: #d7e2dc;
  border-radius: 99px;
  display: block;
  height: 9px;
  opacity: 0.78;
  width: 9px;
}

.signal-chart {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(12, 1fr);
  height: 260px;
  padding: 24px 6px 0;
}

.signal-chart span {
  background: linear-gradient(180deg, #7bd6ae, #cda46a);
  border-radius: 6px 6px 0 0;
  min-height: 16px;
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 0;
}

.metric-grid div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.metric-grid dt {
  color: #afc8bd;
  font-size: 12px;
}

.metric-grid dd {
  font-size: 20px;
  font-weight: 800;
  margin: 2px 0 0;
}

.workspace,
.research-table-section,
.page-shell {
  padding: 28px clamp(18px, 4vw, 56px) 64px;
}

.section-heading {
  margin-bottom: 20px;
  max-width: 760px;
}

.section-heading h2,
.page-title h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  margin-bottom: 10px;
}

.section-heading.compact h2 {
  font-size: clamp(26px, 3vw, 38px);
}

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

.entry-card,
.tool-card,
.article-list article,
.observation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 210px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.entry-card.accent {
  border-color: rgba(178, 120, 44, 0.42);
}

.entry-icon {
  color: var(--amber);
  display: block;
  font-weight: 900;
  margin-bottom: 24px;
}

.entry-card h3,
.tool-card h2,
.article-list h2,
.observation-card h2 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.entry-card p,
.tool-card p,
.article-list p,
.observation-card p,
.page-title p {
  color: var(--muted);
}

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

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

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

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.tag,
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}

.page-shell {
  min-height: calc(100vh - 150px);
}

.page-title {
  max-width: 820px;
  padding: 34px 0 24px;
}

.content-grid,
.article-list,
.observation-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-list,
.observation-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-table {
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px clamp(18px, 4vw, 56px);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

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

  .entry-grid,
  .content-grid,
  .article-list,
  .observation-layout,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .terminal-panel {
    padding: 14px;
  }

  .signal-chart {
    height: 210px;
  }
}
