/* 
  52cons Global Common CSS 
  Based on kzbase reference style 
*/

:root {
  /* Colors */
  --bg: #faf8f5;
  --card: #ffffff;
  --text: #17212b;
  --muted: #66727f;
  --line: #dfe5ea;
  --accent: #c9202f;
  --accent-soft: #fff0f1;
  --success: #14804a;
  --warning: #a15c00;
    --ink-soft: #eef2f5;
  
  /* UI States */
  --hover-bg: #f7f9fa;
  --line-dark: #ccd4da;
  --accent-hover: #b01b28;
  --btn-active: #2a3743;
  --text-light: #9aa4ae;
  
  /* Shadows */
  --shadow: 0 18px 50px rgba(28, 39, 49, 0.08);
  --shadow-sm: 0 8px 24px rgba(28, 39, 49, 0.05);
  
  /* Typography Standard */
  --text-xs: 11px;    /* 用于注释、辅助信息、标签 */
  --text-sm: 13px;    /* 用于副标题、次要文字、卡片内小文本 */
  --text-base: 15px;  /* 用于正文、输入框、普通按钮 */
  --text-lg: 18px;    /* 用于卡片标题、强调信息 */
  --text-xl: 24px;    /* 用于页面子标题、弹窗标题 */
  --text-2xl: 32px;   /* 用于主标题 (PC端) */
  --text-3xl: 42px;   /* 用于主标题、大数字显示 */
  
  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(201, 32, 47, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(201, 32, 47, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* Base Layout */
.page-container, .page-container-sm, .page-container-md {
  margin: 0 auto;
  padding: 42px 0 72px;
}
.page-container { width: min(960px, calc(100% - 32px)); }
.page-container-md { width: min(800px, calc(100% - 32px)); }
.page-container-sm { width: min(600px, calc(100% - 32px)); }


/* Typography */
h1.page-title {
  margin: 0 0 16px;
  font-family: "Arial Narrow", "PingFang SC", sans-serif;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  text-align: center;
}

.page-subtitle {
  text-align: center;
  font-size: var(--text-base);
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--accent);
  content: "";
}

/* Components */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid rgba(201, 32, 47, 0.22);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover {
  background: #2a3743;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #b01b28;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: #f7f9fa;
  border-color: #ccd4da;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

/* Inputs */
.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #ccd4da;
  border-radius: 10px;
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 32, 47, 0.15);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* Nav & Layout Helpers */
.back-home {
  text-align: center;
  margin-top: 32px;
}

.back-home a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color 0.15s;
}

.back-home a:hover {
  color: var(--text);
}

/* Status Colors */
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
