/* ============================================================
   rijiuyuejiang.online — 个人工具站 样式
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1340a0;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.15);
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-surface: #0f1729;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #334155;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
  --max-width: 1200px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==================== Header ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.nav a.active {
  color: var(--primary-light);
}

/* ==================== Hero ==================== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--success);
  position: relative;
}

.hero-status .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

/* ==================== Tools Grid ==================== */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.tool-card-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}
.tool-card-icon.green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.tool-card-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}
.tool-card-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.tool-card .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  margin-right: 6px;
  margin-bottom: 4px;
}

.tool-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-top: 4px;
}
.tool-card .card-link:hover {
  color: var(--accent);
}

/* ==================== Status Section ==================== */
.status-section {
  margin-bottom: 60px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.status-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.status-card .value {
  font-size: 1.2rem;
  font-weight: 600;
}

.status-card .sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==================== About Page ==================== */
.page-header {
  text-align: center;
  padding: 60px 24px 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.content-section {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.content-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 20px;
  color: var(--text-primary);
}

.content-card p,
.content-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.content-card ul {
  list-style: none;
  padding: 0;
}

.content-card ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.content-card ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--primary-light);
  font-weight: bold;
}

.filing-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.filing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.filing-item .badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

.filing-item .badge.green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.filing-item .badge.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.filing-item .text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==================== Footer ==================== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 32px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-filing {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-filing p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer-filing a {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-filing a:hover {
  color: var(--text-secondary);
}

/* ==================== Market Ticker ==================== */
.market-ticker {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ticker-inner::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-item .name {
  color: var(--text-muted);
}

.ticker-item .price {
  color: var(--text-primary);
  font-weight: 500;
}

.ticker-item .change {
  font-weight: 500;
}

.ticker-item .change.up {
  color: var(--danger);  /* 红涨 */
}

.ticker-item .change.down {
  color: var(--success);  /* 绿跌 */
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

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

  .header-inner { padding: 0 16px; }

  .nav a { padding: 8px 12px; font-size: 0.85rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .status-cards { grid-template-columns: 1fr 1fr; }
  .content-card { padding: 24px; }
}

@media (max-width: 480px) {
  .status-cards { grid-template-columns: 1fr; }
  .filing-item { flex-wrap: wrap; }
}
