/* 70 年代大字报风格：白底、粗体、复古红 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --red-vintage: #c41e3a;
  --red-vintage-dark: #9a1830;
  --ink: #1a1a1a;
  --paper: #fffef9;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "SimSun", "宋体", serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.view.hidden {
  display: none;
}

/* 大标题 - 大字报风格 */
.main-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.06);
}

.main-title.small {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: 0.25rem;
}

/* 头像区域 */
.portrait-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0.5rem 0;
  border: 4px solid var(--ink);
  background: #f5f5f0;
  overflow: hidden;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait:not([src]),
.portrait[src=""] {
  opacity: 0;
}

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #999;
  background: #eee;
  pointer-events: none;
}

.portrait[src]:not([src=""]) ~ .portrait-placeholder {
  display: none;
}

/* 提示文字 */
.hint {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
}

.hint-emphasis {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 900;
}

/* 语录卡片 */
.quote-card {
  width: 100%;
  padding: 1.5rem 1.25rem;
  border: 3px solid var(--ink);
  background: #fff;
  margin: 0.5rem 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-text {
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.04em;
  quotes: "「" "」" "「" "」";
}

.quote-text::before {
  content: open-quote;
}

.quote-text::after {
  content: close-quote;
}

/* 复古鲜红按钮 */
.btn {
  font-family: "Noto Serif SC", "SimSun", "宋体", serif;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--red-vintage);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-vintage-dark);
}

.btn-primary:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
