/* 《同源》道教期刊 — 紫氣東來主題 */
:root {
  --lavender: #cbc1da;     /* 主紫（指定色）*/
  --primary: #3a2d52;      /* 深紫墨 */
  --violet: #8b7aa8;       /* 中紫 */
  --violet-text: #6b598c;  /* 紫（文字用）*/
  --violet-light: #e6e0f0; /* 淡紫面板 */
  --accent: #c9a84c;       /* 金色 */
  --bg: #f3f0f8;
  --card: #ffffff;
  --text: #2a2438;
  --muted: #8b84a0;
  --border: #d9d0e6;
  --shadow: 0 6px 30px rgba(58,45,82,0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
.header {
  background: linear-gradient(180deg, var(--primary) 0%, #2b2040 100%);
  color: #ece6f6;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(30,20,50,0.4);
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 10px;
  font-family: "SimSun", "Songti SC", serif;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.logo .logo-main { color: var(--accent); }
.logo .logo-sub {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(201,168,76,0.65);
  font-family: "SimSun", "Songti SC", serif;
}
.nav { display: flex; gap: 36px; }
.nav a {
  color: rgba(236,230,246,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.nav a:hover, .nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.main { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; min-height: 60vh; }

/* Hero — 紫氣東來 */
.hero {
  position: relative;
  border-radius: 0 0 20px 20px;
  padding: 60px 50px 50px;
  color: #ece6f6;
  margin: 0 -20px 50px;
  overflow: hidden;
  border-bottom: 2px solid rgba(201,168,76,0.25);
  background:
    radial-gradient(ellipse 70% 90% at 85% 15%, rgba(203,193,218,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(139,122,168,0.30) 0%, transparent 55%),
    linear-gradient(160deg, #3a2d52 0%, #2b2040 45%, #3a2d52 100%);
}
.hero::after {
  content: "\2601\FE0E";
  position: absolute;
  right: 6%;
  bottom: 6%;
  font-size: 190px;
  color: rgba(203,193,218,0.12);
  pointer-events: none;
  line-height: 1;
}
.hero::before {
  content: "紫氣東來";
  position: absolute;
  right: 3%;
  top: 12%;
  font-size: 30px;
  letter-spacing: 14px;
  font-family: "SimSun", "Songti SC", serif;
  color: rgba(203,193,218,0.22);
  writing-mode: vertical-rl;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid rgba(201,168,76,0.3);
  letter-spacing: 3px;
  font-family: "SimSun", "Songti SC", serif;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
  font-weight: 900;
  font-family: "SimSun", "Songti SC", serif;
  letter-spacing: 6px;
  line-height: 1.2;
  color: var(--accent);
}
.hero .issue-info-line {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-family: "SimSun", "Songti SC", serif;
}
.hero p { font-size: 15px; opacity: 0.85; line-height: 2; max-width: 640px; }
.hero-quote {
  margin-top: 28px;
  padding: 16px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(203,193,218,0.12);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 14px;
  color: rgba(236,230,246,0.7);
  line-height: 1.8;
  max-width: 520px;
  border-radius: 0 8px 8px 0;
}
.hero-quote .quote-src { text-align: right; margin-top: 4px; font-size: 12px; opacity: 0.6; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  font-family: "SimSun", "Songti SC", serif;
}
.hero-stat .label { font-size: 12px; opacity: 0.55; margin-top: 6px; letter-spacing: 2px; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "SimSun", "Songti SC", serif;
  color: var(--primary);
  letter-spacing: 2px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--violet) 0%, var(--accent) 100%);
  border-radius: 2px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
  margin-left: 8px;
}

/* 欄目卡片 */
.cols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.col-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.col-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.col-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(58,45,82,0.16);
  border-color: rgba(139,122,168,0.45);
}
.col-card:hover::before { opacity: 1; }
.col-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.col-icon {
  width: 44px; height: 44px;
  background: linear-gradient(160deg, var(--primary), var(--violet));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  font-family: "SimSun", "Songti SC", serif;
  box-shadow: 0 4px 12px rgba(139,122,168,0.30);
}
.col-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  font-family: "SimSun", "Songti SC", serif;
  letter-spacing: 2px;
}
.col-article { padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.col-article:last-child { border-bottom: none; }
.col-article .art-title {
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
  font-family: "SimSun", "Songti SC", serif;
}
.col-article .art-author { color: var(--muted); font-size: 12px; margin-top: 6px; letter-spacing: 1px; }
.col-card a { text-decoration: none; color: inherit; display: block; }

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 40px 0; color: var(--violet-text); opacity: 0.35; font-size: 14px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--violet) 50%, transparent 100%);
}

/* 本期概覽 */
.cover-section { display: flex; gap: 36px; margin-bottom: 60px; align-items: flex-start; }
.cover-mock {
  width: 300px;
  aspect-ratio: 210/297;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(203,193,218,0.45) 0%, transparent 65%),
    linear-gradient(160deg, #3a2d52 0%, #55476e 55%, #3a2d52 100%);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #ece6f6;
  box-shadow: 0 12px 40px rgba(58,45,82,0.35);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 36px;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}
.cover-mock:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 50px rgba(58,45,82,0.4); }
.cover-mock::before {
  content: "同源";
  position: absolute;
  font-size: 110px;
  font-family: "SimSun", "Songti SC", serif;
  color: rgba(201,168,76,0.07);
  font-weight: 900;
  top: 50px;
  letter-spacing: 12px;
  pointer-events: none;
}
.cover-mock::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(0deg, rgba(201,168,76,0.10) 0%, transparent 100%);
  pointer-events: none;
}
.cover-mock .cover-title {
  font-size: 36px;
  font-family: "SimSun", "Songti SC", serif;
  letter-spacing: 10px;
  margin-bottom: 10px;
  z-index: 1; font-weight: 900; color: var(--accent);
}
.cover-mock .cover-sub {
  font-size: 14px; letter-spacing: 5px; margin-bottom: 36px;
  color: var(--accent); z-index: 1; opacity: 0.85;
}
.cover-mock .cover-issue {
  font-size: 56px; font-weight: 900;
  font-family: "SimSun", "Songti SC", serif;
  margin-bottom: 10px; z-index: 1; color: #ece6f6;
}
.cover-mock .cover-info { font-size: 12px; line-height: 2; opacity: 0.7; z-index: 1; font-family: "SimSun", "Songti SC", serif; }
.cover-mock .cover-date { margin-top: auto; font-size: 13px; opacity: 0.55; z-index: 1; letter-spacing: 3px; }

.cover-desc {
  flex: 1;
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.cover-desc::before {
  content: "";
  position: absolute;
  top: 0; left: 32px; right: 32px; height: 3px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--accent) 50%, var(--violet) 100%);
  border-radius: 0 0 3px 3px;
}
.cover-desc h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; font-family: "SimSun", "Songti SC", serif; letter-spacing: 2px; }
.cover-desc p { font-size: 14.5px; line-height: 1.9; color: #444; margin-bottom: 14px; }
.toc-list { margin-top: 20px; padding: 0; }
.toc-list li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-family: "SimSun", "Songti SC", serif;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list .pg { color: var(--muted); font-size: 12px; white-space: nowrap; margin-left: 12px; }
.toc-list li a {
  text-decoration: none; color: inherit;
  display: flex; justify-content: space-between; width: 100%;
  transition: all 0.2s;
}
.toc-list li a:hover { color: var(--violet); padding-left: 8px; }

/* 典藏表格 */
.archive-table {
  width: 100%;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.archive-table table { width: 100%; border-collapse: collapse; }
.archive-table th {
  background: linear-gradient(180deg, var(--primary) 0%, #2b2040 100%);
  color: var(--accent);
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: "SimSun", "Songti SC", serif;
}
.archive-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.archive-table tr:hover td { background: #f7f4fc; }
.archive-table tr.issue-head td {
  background: var(--violet-light);
  color: var(--primary);
  font-weight: 700;
  font-family: "SimSun", "Songti SC", serif;
  letter-spacing: 1px;
}
.btn-read {
  background: linear-gradient(135deg, var(--violet) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}
.btn-read:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #b8943a 100%);
  color: var(--primary);
}

/* 關於本刊 */
.about-content {
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  line-height: 1.9;
  border: 1px solid var(--border);
  position: relative;
}
.about-content::before {
  content: "";
  position: absolute;
  top: 0; left: 40px; right: 40px; height: 3px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--accent) 50%, var(--violet) 100%);
  border-radius: 0 0 3px 3px;
}
.about-content h2 { font-size: 24px; margin-bottom: 20px; color: var(--primary); font-family: "SimSun", "Songti SC", serif; letter-spacing: 3px; }
.about-content h3 {
  font-size: 18px; margin: 28px 0 14px; color: var(--violet-text);
  font-family: "SimSun", "Songti SC", serif; letter-spacing: 2px;
  display: flex; align-items: center; gap: 10px;
}
.about-content h3::before { content: "◆"; font-size: 10px; color: var(--accent); }
.about-content p { margin-bottom: 14px; color: #444; font-size: 15px; }
.about-content ul { margin-left: 20px; margin-bottom: 14px; }
.about-content li { margin-bottom: 10px; font-size: 14.5px; color: #444; line-height: 1.8; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.team-card {
  text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--violet-light) 0%, var(--bg) 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(58,45,82,0.12); }
.team-avatar {
  width: 76px; height: 76px;
  background: linear-gradient(160deg, var(--primary), var(--violet));
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  font-family: "SimSun", "Songti SC", serif;
  border: 2px solid rgba(201,168,76,0.3);
}
.team-card h4 { font-size: 16px; margin-bottom: 4px; font-family: "SimSun", "Songti SC", serif; }
.team-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* 徵稿 */
.submit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.submit-card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
}
.submit-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(58,45,82,0.12); }
.submit-card::before {
  content: "";
  position: absolute;
  top: 0; left: 32px; right: 32px; height: 3px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--accent) 100%);
  border-radius: 0 0 3px 3px;
}
.submit-card h3 {
  font-size: 18px; color: var(--primary); margin-bottom: 16px;
  font-family: "SimSun", "Songti SC", serif;
  display: flex; align-items: center; gap: 10px; letter-spacing: 2px;
}
.submit-card h3::before { content: "◆"; font-size: 10px; color: var(--accent); }
.submit-card p, .submit-card li { font-size: 14.5px; line-height: 1.9; color: #444; }
.submit-card ul { margin-left: 18px; margin-top: 10px; }
.submit-card li { margin-bottom: 8px; }
.highlight-box {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--bg) 100%);
  padding: 18px;
  border-radius: 10px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--primary);
  line-height: 1.8;
  border-left: 3px solid var(--accent);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--primary) 0%, #2b2040 100%);
  color: rgba(236,230,246,0.5);
  padding: 40px;
  text-align: center;
  font-size: 13px;
  margin-top: 60px;
  border-top: 1px solid rgba(201,168,76,0.15);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}
.footer .footer-slogan {
  font-family: "SimSun", "Songti SC", serif;
  font-size: 15px;
  color: rgba(201,168,76,0.55);
  letter-spacing: 6px;
  margin-top: 8px;
}

.err-box {
  max-width: 640px; margin: 60px auto; padding: 32px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: #a33; font-size: 14px; line-height: 1.9;
}

@media (max-width: 768px) {
  .header { padding: 0 20px; height: 64px; }
  .logo { font-size: 20px; letter-spacing: 6px; }
  .logo .logo-sub { display: none; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; letter-spacing: 1px; }
  .hero { padding: 40px 24px 36px; margin: 0 -20px 36px; }
  .hero h1 { font-size: 30px; letter-spacing: 4px; }
  .hero::after, .hero::before { display: none; }
  .hero-stats { gap: 24px; }
  .cols-grid { grid-template-columns: 1fr; gap: 18px; }
  .cover-section { flex-direction: column; align-items: center; }
  .cover-mock { width: 260px; }
  .submit-grid { grid-template-columns: 1fr; gap: 20px; }
  .archive-table th, .archive-table td { padding: 12px 12px; font-size: 13px; }
}
