/* ============================================
   字幕组联盟 - 主样式表
   设计风格：打字机翻译风 (Typewriter Translation Style)
   CSS前缀：zm-
   ============================================ */

/* Google Fonts 本地化替代 - 使用系统字体栈 */
@font-face {
  font-family: 'ZM-Typewriter';
  src: local('Courier New'), local('Courier'), local('monospace');
  font-display: swap;
}

/* ========== CSS变量 ========== */
:root {
  --zm-primary: #F5F5DC;
  --zm-secondary: #363636;
  --zm-accent: #D9001B;
  --zm-text: #333333;
  --zm-link: #005A9C;
  --zm-paper: #FAF8F0;
  --zm-ink: #1a1a1a;
  --zm-border: #c9b99a;
  --zm-shadow: rgba(54, 54, 54, 0.15);
  --zm-font-title: 'Courier New', 'Cutive Mono', 'Special Elite', monospace;
  --zm-font-body: Georgia, 'Noto Serif SC', 'SimSun', serif;
  --zm-font-handwrite: 'Segoe Script', 'Comic Sans MS', cursive;
  --zm-text-light: #999;
  --zm-bg-warm: #FAF3E0;
  --zm-max-width: 1440px;
  --zm-gutter: 20px;
}

/* ========== 全局重置 ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--zm-font-body);
  color: var(--zm-text);
  background-color: var(--zm-primary);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23F5F5DC"/><circle cx="50" cy="50" r="0.5" fill="%23d4c5a0" opacity="0.3"/></svg>');
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--zm-link);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--zm-accent);
}

a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--zm-accent);
  animation: zm-ink-spread 0.3s ease forwards;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--zm-font-title);
  color: var(--zm-secondary);
  line-height: 1.4;
}

/* ========== 干扰标签隐藏 ========== */
.sub-jammer-block {
  display: none !important;
}

/* ========== 动画 ========== */
@keyframes zm-ink-spread {
  0% { width: 0; opacity: 0; }
  100% { width: 100%; opacity: 1; }
}

@keyframes zm-paper-unfold {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes zm-typewriter-cursor {
  0%, 100% { border-right-color: var(--zm-secondary); }
  50% { border-right-color: transparent; }
}

@keyframes zm-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes zm-stamp {
  0% { transform: scale(2) rotate(-15deg); opacity: 0; }
  60% { transform: scale(0.9) rotate(-12deg); opacity: 1; }
  100% { transform: scale(1) rotate(-12deg); opacity: 1; }
}

.zm-animate-in {
  animation: zm-paper-unfold 0.6s ease-out forwards;
}

/* ========== 导航栏 ========== */
#zm-header {
  background-color: var(--zm-primary);
  background-image: linear-gradient(to bottom, rgba(201, 185, 154, 0.1) 1px, transparent 1px);
  background-size: 100% 24px;
  border-bottom: 2px solid var(--zm-border);
  padding: 0;
  z-index: 100;
  position: relative;
}

.zm-nav-inner {
  max-width: var(--zm-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px var(--zm-gutter);
}

.zm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.zm-logo:hover::after {
  display: none;
}

.zm-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--zm-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--zm-font-title);
  color: var(--zm-primary);
  font-size: 18px;
  font-weight: bold;
  border: 2px solid var(--zm-border);
}

.sp-logo-text {
  font-family: var(--zm-font-title);
  font-size: 1.25rem;
  color: var(--zm-secondary);
  font-weight: bold;
  letter-spacing: 1px;
}

.zm-nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.zm-nav-list li a {
  font-family: var(--zm-font-title);
  font-size: 0.9rem;
  color: var(--zm-secondary);
  padding: 8px 14px;
  display: block;
  position: relative;
  letter-spacing: 0.5px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.zm-nav-list li a:hover {
  background: rgba(54, 54, 54, 0.06);
  color: var(--zm-accent);
}

.zm-nav-list li a:hover::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--zm-link);
  animation: zm-ink-spread 0.3s ease forwards;
}

.zm-nav-list li a.zm-nav-active {
  color: var(--zm-accent);
  font-weight: bold;
}

/* 汉堡菜单 */
.zm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.zm-hamburger span {
  width: 26px;
  height: 2px;
  background: var(--zm-secondary);
  transition: all 0.3s ease;
  display: block;
}

.zm-hamburger.zm-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.zm-hamburger.zm-active span:nth-child(2) {
  opacity: 0;
}

.zm-hamburger.zm-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端侧边菜单 */
.zm-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--zm-paper);
  background-image:
    linear-gradient(to bottom, rgba(201, 185, 154, 0.15) 1px, transparent 1px),
    linear-gradient(to right, rgba(201, 185, 154, 0.1) 1px, transparent 1px);
  background-size: 100% 28px, 28px 100%;
  border-left: 3px solid var(--zm-border);
  box-shadow: -5px 0 20px var(--zm-shadow);
  z-index: 1000;
  transition: right 0.4s ease;
  padding: 60px 30px 30px;
  overflow-y: auto;
}

.zm-mobile-menu.zm-open {
  right: 0;
}

.zm-mobile-menu-list {
  list-style: none;
}

.zm-mobile-menu-list li {
  border-bottom: 1px dashed var(--zm-border);
}

.zm-mobile-menu-list li a {
  font-family: var(--zm-font-title);
  font-size: 1.1rem;
  color: var(--zm-secondary);
  padding: 16px 0;
  display: block;
}

.zm-mobile-menu-list li a:hover::after {
  display: none;
}

.zm-mobile-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--zm-secondary);
  font-family: var(--zm-font-title);
}

.zm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.zm-overlay.zm-show {
  display: block;
}

/* ========== 首页 Hero 区域 ========== */
.zm-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--zm-secondary);
}

.zm-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(3px);
}

.zm-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 60px var(--zm-gutter);
}

.zm-hero-content h1 {
  font-size: 2.8rem;
  color: var(--zm-primary);
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
}

.zm-hero-desc {
  font-family: var(--zm-font-handwrite);
  font-size: 1.15rem;
  color: rgba(245, 245, 220, 0.9);
  line-height: 2;
  margin-bottom: 30px;
}

.zm-stamp {
  display: inline-block;
  border: 3px solid var(--zm-accent);
  color: var(--zm-accent);
  font-family: var(--zm-font-title);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 8px 20px;
  transform: rotate(-12deg);
  animation: zm-stamp 0.8s ease-out forwards;
  letter-spacing: 2px;
  border-radius: 4px;
}

/* ========== 通用模块样式 ========== */
.zm-section {
  max-width: var(--zm-max-width);
  margin: 0 auto;
  padding: 60px var(--zm-gutter);
}

.zm-section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.zm-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--zm-accent);
  margin: 10px auto 0;
}

.zm-section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
  font-style: italic;
}

/* ========== 最新译作 - 稿纸卡片 ========== */
.zm-latest-releases {
  background: var(--zm-paper);
  border-top: 1px solid var(--zm-border);
  border-bottom: 1px solid var(--zm-border);
}

.zm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.zm-card {
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 3px 3px 10px var(--zm-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.zm-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px 20px var(--zm-shadow);
}

.zm-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.zm-card-body {
  padding: 18px;
  background-image: linear-gradient(to bottom, rgba(201, 185, 154, 0.08) 1px, transparent 1px);
  background-size: 100% 24px;
}

.zm-card-title {
  font-family: var(--zm-font-title);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--zm-secondary);
}

.zm-card-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.zm-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--zm-accent);
  color: #fff;
  font-family: var(--zm-font-title);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: bold;
}

.zm-card-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ========== 任务墙 ========== */
.zm-task-board {
  background: var(--zm-primary);
}

.zm-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.zm-task-card {
  background: #FFFDE7;
  border: 1px solid #e0d9b0;
  padding: 20px;
  position: relative;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.08);
  transform: rotate(-0.5deg);
  transition: transform 0.3s ease;
}

.zm-task-card:nth-child(even) {
  transform: rotate(0.5deg);
  background: #FFF8E1;
}

.zm-task-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.zm-task-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--zm-accent);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zm-task-status {
  display: inline-block;
  font-family: var(--zm-font-title);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.zm-status-open { background: #E8F5E9; color: #2E7D32; }
.zm-status-progress { background: #FFF3E0; color: #E65100; }
.zm-status-review { background: #E3F2FD; color: #1565C0; }

.zm-task-title {
  font-family: var(--zm-font-title);
  font-size: 1rem;
  margin-bottom: 8px;
}

.zm-task-info {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.zm-task-reward {
  margin-top: 10px;
  font-family: var(--zm-font-title);
  color: var(--zm-accent);
  font-weight: bold;
  font-size: 0.9rem;
}

/* ========== 名人堂 ========== */
.zm-hall-of-fame {
  background: var(--zm-paper);
  border-top: 1px solid var(--zm-border);
  border-bottom: 1px solid var(--zm-border);
}

.zm-fame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.zm-fame-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 2px;
  box-shadow: 2px 2px 8px var(--zm-shadow);
}

.zm-fame-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--zm-border);
  flex-shrink: 0;
  filter: grayscale(30%);
}

.zm-fame-name {
  font-family: var(--zm-font-title);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.zm-fame-role {
  font-size: 0.8rem;
  color: var(--zm-accent);
  font-family: var(--zm-font-title);
  margin-bottom: 8px;
}

.zm-fame-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

/* ========== 翻译技巧 ========== */
.zm-translation-tips {
  background: var(--zm-primary);
}

.zm-tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.zm-tip-item {
  padding: 22px;
  background: #fff;
  border-left: 4px solid var(--zm-link);
  box-shadow: 2px 2px 8px var(--zm-shadow);
  transition: border-color 0.3s ease;
}

.zm-tip-item:hover {
  border-left-color: var(--zm-accent);
}

.zm-tip-title {
  font-family: var(--zm-font-title);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.zm-tip-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.zm-tip-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ========== 术语百科 ========== */
.zm-glossary {
  background: var(--zm-paper);
  border-top: 1px solid var(--zm-border);
  border-bottom: 1px solid var(--zm-border);
}

.zm-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.zm-glossary-item {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 2px;
}

.zm-glossary-term {
  font-family: var(--zm-font-title);
  font-size: 1rem;
  color: var(--zm-link);
  margin-bottom: 6px;
}

.zm-glossary-def {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

/* ========== 寻片委托 ========== */
.zm-request-board {
  background: var(--zm-primary);
}

.zm-request-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.zm-request-item {
  padding: 20px;
  background: #fff;
  border: 1px dashed var(--zm-border);
  position: relative;
}

.zm-request-user {
  font-family: var(--zm-font-title);
  font-size: 0.85rem;
  color: var(--zm-link);
  margin-bottom: 8px;
}

.zm-request-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.zm-request-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.zm-request-status {
  font-family: var(--zm-font-title);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
}

.zm-request-waiting { background: #FFF3E0; color: #E65100; }
.zm-request-accepted { background: #E8F5E9; color: #2E7D32; }

/* ========== 联盟大事件 ========== */
.zm-alliance-news {
  background: var(--zm-paper);
  border-top: 1px solid var(--zm-border);
  border-bottom: 1px solid var(--zm-border);
}

.zm-news-timeline {
  position: relative;
  padding-left: 40px;
}

.zm-news-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--zm-border);
}

.zm-news-item {
  position: relative;
  margin-bottom: 30px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--zm-border);
  box-shadow: 2px 2px 6px var(--zm-shadow);
}

.zm-news-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: var(--zm-accent);
  border-radius: 50%;
  border: 2px solid #fff;
}

.zm-news-date {
  font-family: var(--zm-font-title);
  font-size: 0.8rem;
  color: var(--zm-accent);
  margin-bottom: 6px;
}

.zm-news-title {
  font-family: var(--zm-font-title);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.zm-news-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ========== 合作伙伴 ========== */
.zm-partners {
  background: var(--zm-primary);
}

.zm-partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.zm-partner-item {
  padding: 15px 30px;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 3px;
  font-family: var(--zm-font-title);
  font-size: 0.95rem;
  color: var(--zm-secondary);
  box-shadow: 2px 2px 6px var(--zm-shadow);
  transition: transform 0.3s ease;
}

.zm-partner-item:hover {
  transform: scale(1.05);
}

/* ========== 加入我们 ========== */
.zm-join-us {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.zm-join-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.zm-join-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px var(--zm-gutter);
  max-width: 700px;
}

.zm-join-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.zm-join-desc {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* ========== 按钮样式 ========== */
.zm-btn {
  display: inline-block;
  font-family: var(--zm-font-title);
  font-size: 0.95rem;
  padding: 12px 30px;
  border: 2px solid var(--zm-secondary);
  background: var(--zm-secondary);
  color: var(--zm-primary);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 1px;
}

.zm-btn:hover {
  background: transparent;
  color: var(--zm-secondary);
}

.zm-btn:hover::after {
  display: none;
}

.zm-btn-outline {
  background: transparent;
  color: var(--zm-secondary);
}

.zm-btn-outline:hover {
  background: var(--zm-secondary);
  color: var(--zm-primary);
}

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

.zm-btn-accent:hover {
  background: #b80017;
  border-color: #b80017;
  color: #fff;
}

/* ========== 页脚 ========== */
#zm-footer {
  background: var(--zm-secondary);
  color: rgba(245, 245, 220, 0.8);
  padding: 50px var(--zm-gutter) 30px;
}

.zm-footer-inner {
  max-width: var(--zm-max-width);
  margin: 0 auto;
}

.zm-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.zm-footer-col h3 {
  font-family: var(--zm-font-title);
  font-size: 1rem;
  color: var(--zm-primary);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.zm-footer-col p,
.zm-footer-col a {
  font-size: 0.88rem;
  color: rgba(245, 245, 220, 0.7);
  line-height: 2;
}

.zm-footer-col a:hover {
  color: var(--zm-primary);
}

.zm-footer-col a:hover::after {
  display: none;
}

.zm-footer-links {
  list-style: none;
}

.zm-footer-links li a {
  display: inline-block;
  padding: 2px 0;
}

.zm-footer-bottom {
  border-top: 1px solid rgba(245, 245, 220, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 245, 220, 0.5);
  line-height: 2;
}

.zm-footer-bottom a {
  color: rgba(245, 245, 220, 0.6);
  font-size: 0.8rem;
}

.zm-footer-honor {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(245, 245, 220, 0.4);
}

/* ========== 栏目页通用 ========== */
.zm-page-header {
  background: var(--zm-secondary);
  padding: 60px var(--zm-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zm-page-header h1 {
  font-size: 2.2rem;
  color: var(--zm-primary);
  position: relative;
  z-index: 2;
}

.zm-page-header-desc {
  font-size: 1rem;
  color: rgba(245, 245, 220, 0.8);
  margin-top: 12px;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.zm-page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.zm-page-content {
  max-width: var(--zm-max-width);
  margin: 0 auto;
  padding: 50px var(--zm-gutter);
}

/* ========== 翻译间 - Kanban ========== */
.zm-kanban-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--zm-border);
  margin-bottom: 30px;
}

.zm-kanban-tab {
  font-family: var(--zm-font-title);
  font-size: 0.95rem;
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--zm-text);
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.zm-kanban-tab.zm-tab-active {
  background: #fff;
  border-color: var(--zm-border);
  border-bottom-color: #fff;
  color: var(--zm-accent);
  font-weight: bold;
}

.zm-kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  overflow-x: auto;
}

.zm-kanban-column {
  background: var(--zm-paper);
  border: 1px solid var(--zm-border);
  border-radius: 3px;
  padding: 15px;
  min-height: 400px;
}

.zm-kanban-col-title {
  font-family: var(--zm-font-title);
  font-size: 0.9rem;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--zm-border);
  margin-bottom: 15px;
  color: var(--zm-secondary);
}

.zm-kanban-card {
  background: #fff;
  border: 1px solid #e0d9b0;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 2px;
  box-shadow: 1px 1px 4px var(--zm-shadow);
  font-size: 0.85rem;
}

.zm-kanban-card-title {
  font-family: var(--zm-font-title);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.zm-kanban-card-info {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
}

/* ========== 在线编辑器 ========== */
.zm-editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 500px;
}

.zm-editor-video {
  background: #1a1a1a;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--zm-font-title);
  min-height: 300px;
}

.zm-editor-panel {
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 3px;
  padding: 20px;
}

.zm-editor-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.zm-editor-time {
  font-family: var(--zm-font-title);
  font-size: 0.8rem;
  color: var(--zm-link);
}

.zm-editor-input {
  font-family: var(--zm-font-body);
  font-size: 0.9rem;
  border: none;
  border-bottom: 1px solid var(--zm-border);
  padding: 4px 0;
  width: 100%;
  background: transparent;
  color: var(--zm-text);
}

.zm-editor-input:focus {
  outline: none;
  border-bottom-color: var(--zm-link);
}

.zm-editor-hint {
  text-align: center;
  font-style: italic;
  color: #999;
  padding: 20px;
  font-size: 0.9rem;
}

/* ========== APP下载页 ========== */
.zm-app-section {
  text-align: center;
  padding: 80px var(--zm-gutter);
  max-width: 800px;
  margin: 0 auto;
}

.zm-app-letter {
  font-family: var(--zm-font-handwrite);
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--zm-text);
  text-align: left;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--zm-border);
  box-shadow: 3px 3px 10px var(--zm-shadow);
  margin: 30px 0;
  background-image: linear-gradient(to bottom, rgba(201, 185, 154, 0.1) 1px, transparent 1px);
  background-size: 100% 35px;
}

.zm-qr-placeholder {
  width: 180px;
  height: 180px;
  background: var(--zm-paper);
  border: 2px dashed var(--zm-border);
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--zm-font-title);
  font-size: 0.85rem;
  color: #999;
}

/* ========== 内页文章样式 ========== */
.zm-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px var(--zm-gutter);
}

.zm-article h2 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--zm-border);
}

.zm-article p {
  margin-bottom: 18px;
  text-indent: 2em;
  line-height: 2;
}

.zm-article img {
  margin: 20px auto;
  border: 1px solid var(--zm-border);
  box-shadow: 3px 3px 10px var(--zm-shadow);
}

/* ========== 面包屑 ========== */
.zm-breadcrumb {
  max-width: var(--zm-max-width);
  margin: 0 auto;
  padding: 15px var(--zm-gutter);
  font-size: 0.85rem;
  color: #888;
  font-family: var(--zm-font-title);
}

.zm-breadcrumb a {
  color: var(--zm-link);
  font-size: 0.85rem;
}

.zm-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}

/* ========== Tab面板 ========== */
.zm-tab-content {
  display: none;
}

.zm-tab-content.zm-tab-active {
  display: block;
}

/* ========== 响应式 ========== */

/* 1440px */
@media (max-width: 1440px) {
  .zm-section {
    padding: 50px var(--zm-gutter);
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .zm-kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .zm-editor-layout {
    grid-template-columns: 1fr;
  }

  .zm-hero-content h1 {
    font-size: 2.2rem;
  }
}

/* 768px */
@media (max-width: 768px) {
  .zm-nav-list {
    display: none;
  }

  .zm-hamburger {
    display: flex;
  }

  .zm-mobile-menu {
    display: block;
  }

  .zm-hero-content h1 {
    font-size: 1.8rem;
  }

  .zm-hero {
    min-height: 50vh;
  }

  .zm-section-title {
    font-size: 1.5rem;
  }

  .zm-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .zm-fame-grid {
    grid-template-columns: 1fr;
  }

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

  .zm-footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .zm-page-header h1 {
    font-size: 1.8rem;
  }

  .zm-kanban-tabs {
    flex-wrap: wrap;
  }
}

/* 360px */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .zm-hero-content h1 {
    font-size: 1.5rem;
  }

  .zm-card-grid {
    grid-template-columns: 1fr;
  }

  .zm-task-grid {
    grid-template-columns: 1fr;
  }

  .zm-kanban-board {
    grid-template-columns: 1fr;
  }

  .zm-tips-list {
    grid-template-columns: 1fr;
  }

  .zm-nav-inner {
    padding: 10px 15px;
  }

  .sp-logo-text {
    font-size: 1rem;
  }
}
