/* =============================================
   优物查 - 成都物业行业观察
   Main Stylesheet
   ============================================= */

/* ===== Reset & Variables ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f0e8;
  --surface: #ffffff;
  --accent: #1a5653;
  --accent-light: #e8f2f1;
  --highlight: #c4841d;
  --highlight-light: #fdf4e8;
  --text: #1a1a1a;
  --text-secondary: #5a5550;
  --text-muted: #8a857e;
  --border: #e0dbd3;
  --border-light: #ece8e0;
  --shadow-sm: 0 1px 3px rgba(26,26,26,0.06);
  --shadow-md: 0 4px 16px rgba(26,26,26,0.08);
  --shadow-lg: 0 8px 32px rgba(26,26,26,0.1);
  --radius: 6px;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-mono: 'DM Mono', 'Menlo', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--highlight); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.nav-brand .logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-brand .tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--accent); }

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.4rem 1.1rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition: background 0.2s, transform 0.2s;
}

.nav-links .nav-cta:hover {
  background: #14504d;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--highlight);
  background: var(--highlight-light);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent-light);
  z-index: -1;
  border-radius: 2px;
}

.hero-excerpt {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 520px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  animation: fadeUp 0.6s ease 0.25s both;
}

.hero-meta .dot { color: var(--border); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  animation: fadeUp 0.6s ease 0.3s both;
}

.hero-cta:hover {
  background: #14504d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,86,83,0.25);
}

.hero-cta .arrow {
  transition: transform 0.25s;
  font-size: 1.1em;
}
.hero-cta:hover .arrow { transform: translateX(4px); }

/* Hero data card */
.hero-data-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.8s ease 0.4s both;
}

.data-card-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.data-card-header .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  margin-right: 0.4rem;
  animation: pulse 2s infinite;
}

.data-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}

.data-stat:last-child { border-bottom: none; }

.data-stat .label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.data-stat .value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent);
}

.data-stat .value.warn { color: var(--highlight); }

.data-card-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

/* ===== Stats Strip ===== */
.stats-strip {
  background: var(--accent);
  color: #fff;
  padding: 1.8rem 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-strip .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.strip-stat {
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}
.strip-stat:nth-child(1) { animation-delay: 0.5s; }
.strip-stat:nth-child(2) { animation-delay: 0.6s; }
.strip-stat:nth-child(3) { animation-delay: 0.7s; }
.strip-stat:nth-child(4) { animation-delay: 0.8s; }

.strip-stat .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.strip-stat .desc {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-header .more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.section-header .more:hover { color: var(--accent); }

/* ===== Articles Grid ===== */
.articles-section {
  padding: 4rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 2rem;
}

.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.article-card.featured {
  grid-row: span 2;
  padding: 2.5rem;
}

.article-card .card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.article-card .card-tag.tag-data { color: var(--highlight); background: var(--highlight-light); }
.article-card .card-tag.tag-red { color: #c0392b; background: #fdecea; }

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.article-card.featured h3 { font-size: 1.6rem; line-height: 1.4; }

.article-card:hover h3 { color: var(--accent); }

.article-card .card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card.featured .card-excerpt {
  -webkit-line-clamp: 5;
}

.article-card .card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

/* Sidebar articles */
.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Secondary row */
.articles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== Categories ===== */
.categories-section {
  padding: 3rem 0 4rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.15s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.25s; }

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.category-card .cat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.category-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.category-card .cat-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== Tool Section ===== */
.tool-section {
  padding: 4rem 0;
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tool-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,132,29,0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.tool-section .container {
  position: relative;
  text-align: center;
  max-width: 640px;
}

.tool-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.tool-section .tool-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.tool-input-wrap {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}

.tool-input-wrap input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.25);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.tool-input-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.tool-input-wrap input:focus { border-color: var(--accent); }

.tool-input-wrap button {
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.tool-input-wrap button:hover { background: #1e6b67; }

.tool-hint {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

/* ===== 搜索结果 ===== */
.tool-result {
  margin: 1.5rem auto 0;
  max-width: 640px;
  text-align: left;
}
.tool-loading, .tool-empty {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}
.tool-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  transition: background 0.2s, border-color 0.2s;
}
.tool-card:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.tc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.tc-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.tc-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #5ec4bd;
  white-space: nowrap;
}
.tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.tc-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
}
.tc-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .tool-result { margin-top: 1.2rem; }
}

/* ===== Newsletter ===== */
.newsletter-section {
  padding: 4rem 0;
}

.newsletter-box {
  background: var(--accent-light);
  border: 1px solid rgba(26,86,83,0.15);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.newsletter-content { flex: 1; }

.newsletter-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.newsletter-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 0;
  min-width: 320px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(26,86,83,0.2);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #fff;
  outline: none;
}

.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: #14504d; }

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.5);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }

.footer ul a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer ul a:hover { color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ===== Article Page ===== */
.article-page {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.article-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--text);
}

.article-page-header .card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.article-page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.article-page-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-page-meta .dot { color: var(--border); }

/* Article Content */
.article-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.8rem;
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-source {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-source a { color: var(--accent); }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ===== Articles List Page ===== */
.list-page {
  padding: 3rem 0 4rem;
}

.list-page-header {
  margin-bottom: 2.5rem;
}

.list-page-header h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.list-page-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.filter-tab:hover, .filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Article list items */
.article-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}

.article-list-item:hover {
  padding-left: 0.5rem;
}

.article-list-item .item-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.article-list-item .item-tag.tag-data { color: var(--highlight); background: var(--highlight-light); }
.article-list-item .item-tag.tag-red { color: #c0392b; background: #fdecea; }

.article-list-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.article-list-item h3 a { color: var(--text); transition: color 0.2s; }
.article-list-item h3 a:hover { color: var(--accent); }

.article-list-item .item-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list-item .item-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.3rem;
}

/* ===== Data Page ===== */
.data-page {
  padding: 3rem 0 4rem;
}

.data-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.data-overview-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.data-overview-card .big-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.data-overview-card .big-num.warn { color: var(--highlight); }

.data-overview-card .big-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Data table */
.data-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.data-table th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.data-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: rgba(26,86,83,0.02); }

.data-table .penalty-amount {
  font-family: var(--font-mono);
  color: var(--highlight);
  font-weight: 500;
}

.data-table .source-link {
  font-size: 0.78rem;
  color: var(--accent);
}

/* Data source info */
.data-source-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
}

.data-source-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.data-source-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.data-source-box ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.data-source-box li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.data-source-box .disclaimer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===== About Page ===== */
.about-page {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.about-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--text);
}

.about-page h2:first-child { margin-top: 0; }

.about-page p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-page ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.about-page li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card.featured { grid-row: auto; }

  .articles-row {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-box {
    flex-direction: column;
    gap: 1.5rem;
  }

  .newsletter-form { min-width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .data-overview {
    grid-template-columns: 1fr;
  }

  .article-list-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .container { padding: 0 1.2rem; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: 1.7rem; }

  .categories-grid { grid-template-columns: 1fr 1fr; }

  .tool-input-wrap { flex-direction: column; }
  .tool-input-wrap input {
    border-right: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
  }
  .tool-input-wrap button { border-radius: var(--radius); }

  .footer-grid { grid-template-columns: 1fr; }

  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.7rem 0.8rem; }
}

/* ===== 重点政策法规 ===== */
.policy-headline-section { padding: 2rem 0 1.5rem; }
.ph-section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.ph-section-tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em;
  color: #fff; background: var(--highlight); padding: 0.2rem 0.6rem; border-radius: 3px;
}
.ph-section-title { font-family: var(--font-serif); font-weight: 800; font-size: 1.5rem; color: var(--text); margin: 0; }
.policy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.policy-card {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-left: 5px solid var(--highlight);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-md); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.policy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-left-color: var(--accent); }
.pc-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.pc-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .06em;
  color: #fff; background: var(--accent); padding: 0.15rem 0.5rem; border-radius: 3px;
}
.pc-source { font-size: 0.8rem; color: var(--text-muted); }
.pc-title {
  font-family: var(--font-serif); font-weight: 800; font-size: 1.18rem; line-height: 1.45;
  color: var(--text); margin: 0 0 0.55rem;
}
.pc-excerpt {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin: 0 0 0.85rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 0.7rem;
}
.pc-link { color: var(--accent); font-weight: 600; font-family: var(--font-mono); }
@media (max-width: 768px) {
  .policy-list { grid-template-columns: 1fr; }
  .ph-section-title { font-size: 1.3rem; }
  .pc-title { font-size: 1.05rem; }
}
/* ===== 查你家物业 · 暂未开放状态 ===== */
.status-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.6rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--highlight);
  border-radius: 999px;
  text-transform: uppercase;
}
.tool-input-wrap.disabled input,
.tool-input-wrap.disabled button {
  opacity: 0.45;
  cursor: not-allowed;
}
.tool-input-wrap.disabled button:hover { background: var(--accent); }

/* ===== 文章卡「阅读全文」入口 ===== */
.card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  transition: gap 0.2s, color 0.2s;
}
.article-card:hover .card-readmore { gap: 0.6rem; color: #14504d; }
.card-readmore .rm-arrow { transition: transform 0.2s; }

/* ===== 快讯条目·数据来源标签 ===== */
.update-source {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== 物业信用动态 Section（原内联 <style> 已统一迁移至此） ===== */
.updates-section { padding: 60px 0; background: var(--bg); }
.updates-list { display: flex; flex-direction: column; gap: 0; }
.update-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.update-item:hover { background: rgba(26,86,83,0.03); }
.update-item:last-child { border-bottom: none; }
.update-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.update-content { line-height: 1.6; }
.update-type {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 8px;
  vertical-align: middle;
}
.update-type.penalty { background: #fde8e8; color: #c53030; }
.update-type.lawsuit { background: #fef3cd; color: #856404; }
.update-type.credit { background: var(--accent-light); color: var(--accent); }
.update-type.notice { background: #e8f0fe; color: #1a56db; }
.update-company {
  font-weight: 600;
  color: var(--text);
}
.update-title {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.update-amount {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--highlight);
  font-weight: 600;
  white-space: nowrap;
}
.update-loading {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #e53e3e;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-dot 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,62,62,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(229,62,62,0); }
}
@media (max-width: 768px) {
  .update-item { grid-template-columns: 1fr; gap: 4px; }
  .update-amount { text-align: left; }
}

/* ===== 查你家物业 · 数据整理进度 ===== */
.tool-progress {
  margin: 1.6rem 0 0.4rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.tp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.tp-label { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255,255,255,0.8); letter-spacing: 0.05em; }
.tp-pct { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: #fff; }
.tp-bar { height: 8px; background: rgba(255,255,255,0.14); border-radius: 999px; overflow: hidden; }
.tp-fill { height: 100%; width: 80%; background: var(--highlight); border-radius: 999px; }
.tp-tasks { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.tp-tasks li { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.tp-tasks li.done { color: #fff; }
.tp-tasks li.done::before { content: "\2713 "; color: var(--highlight); font-weight: 700; }
.tp-tasks li.todo::before { content: "\25CB "; color: rgba(255,255,255,0.45); }
