*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans CJK TC",sans-serif;color:#1a1a1a;background:#fafafa;line-height:1.7}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.nav{position:sticky;top:0;background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);border-bottom:1px solid rgba(240,240,240,0.8);z-index:50}
.nav .container{display:flex;align-items:center;height:64px}
.brand{font-weight:700;color:#0d9488;text-decoration:none;font-size:20px;transition:color 0.2s}
.brand:hover{color:#0f766e}
.spacer{flex:1}
.login{color:#4a5568;text-decoration:none;font-weight:500;padding:8px 16px;border-radius:8px;transition:all 0.2s}
.login:hover{background:#f7fafc;color:#2d3748}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#ecfeff,#f0fdf4)}
.hero .container{padding:56px 16px 64px}
.pattern{position:absolute;width:600px;height:600px;border-radius:50%;filter:blur(70px);opacity:.35;top:-120px;left:-200px;background:#99f6e4}
.pattern-2{top:auto;bottom:-160px;left:auto;right:-240px;background:#a7f3d0}
.pattern-3{top:-140px;left:auto;right:140px;background:#bae6fd}
.pattern-4{bottom:-120px;left:180px;background:#fde68a}
.pattern-5{top:120px;left:50%;transform:translateX(-50%);background:#fbcfe8}
.grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:24px;padding:40px 0}
@media (min-width:640px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}}
@media (min-width:960px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}}
.card{position:relative;border:1px solid #f0f0f0;border-radius:16px;overflow:hidden;background:#fff;transition:all .3s ease;box-shadow:0 2px 8px rgba(0,0,0,0.04)}
.card:hover{box-shadow:0 12px 40px rgba(0,0,0,0.12);transform:translateY(-4px)}
.card .cover{display:block;height:180px;background:linear-gradient(135deg,#99f6e4,#bae6fd);background-size:cover;background-position:center;position:relative;overflow:hidden}
.card .cover::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.15);opacity:0;transition:opacity 0.3s ease}
.card:hover .cover::after{opacity:1}
.card .meta{font-size:13px;color:#666;padding:16px 16px 0;display:flex;align-items:center;gap:8px}
.card .meta .category{color:#0d9488;background:#ecfeff;padding:4px 8px;border-radius:8px;font-size:12px;font-weight:600}
.card .meta .dot{color:#ccc}
.card h2{font-size:20px;line-height:1.4;margin:8px 16px 12px;color:#1a202c;font-weight:600}
.card .excerpt{font-size:15px;color:#4a5568;margin:0 16px 20px;line-height:1.5}
.article{background:#fff;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,0.08);margin:20px auto;overflow:hidden}
.article header{padding:40px 40px 24px;border-bottom:1px solid #f0f0f0}
.article .banner{width:100%;height:400px;background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:32px;border-radius:0 0 16px 16px;position:relative;overflow:hidden;background-color:#f8fafc;display:flex;align-items:center;justify-content:center}
.article .banner img{max-width:90%;max-height:90%;object-fit:contain;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,0.12);border:1px solid rgba(255,255,255,0.8)}
.article .banner::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(to bottom,rgba(0,0,0,0) 70%,rgba(0,0,0,0.05) 100%)}
.article .banner-placeholder{height:400px;background:linear-gradient(135deg,#e6fffa,#f0fdf4);display:flex;align-items:center;justify-content:center;color:#0d9488;font-size:20px;font-weight:600;border-radius:0 0 16px 16px}
.cover-placeholder-herbs{background:linear-gradient(135deg,#ecfeff,#f0fdf4) !important}
.cover-placeholder-theory{background:linear-gradient(135deg,#fef3c7,#fef7e0) !important;color:#92400e !important}
.cover-placeholder-case{background:linear-gradient(135deg,#fce7f3,#fdf2f8) !important;color:#be185d !important}
.cover-placeholder-research{background:linear-gradient(135deg,#e0e7ff,#f0f9ff) !important;color:#1e40af !important}
.article .content{
  padding:32px 40px 40px;
  line-height:1.8;
  font-size:19px;
  overflow-x:auto;
  word-wrap:break-word;
}
.article .meta{margin-bottom:16px;font-size:14px;color:#666}
.article .meta .category{color:#0d9488;font-weight:600;background:#ecfeff;padding:4px 10px;border-radius:12px;font-size:13px}
.article .meta .dot{margin:0 8px;color:#ccc}
.article h1{font-size:36px;line-height:1.3;margin:0;color:#1a1a1a;font-weight:700}
@media (max-width:768px){
  .article{margin:0;border-radius:0}
  .article header{padding:24px 20px 16px}
  .article .content{padding:20px;font-size:18px}
  .article h1{font-size:30px}
  .prose h1{font-size:34px}
  .prose h2{font-size:26px}
  .prose h3{font-size:22px}
  .article .banner,.article .banner-placeholder{height:280px;border-radius:0}
  .card .cover{height:160px}
  .prose img,
  .prose figure img,
  .prose .image img,
  .content img{
    max-width: 100%;
  }
}
.prose{
  color:#2d3748;
  font-size:19px;
  line-height:1.8;
  overflow-x:auto;
  word-wrap:break-word;
}
.prose h1,.prose h2,.prose h3,.prose h4{line-height:1.4;margin:2em 0 0.8em;color:#1a202c;font-weight:600}
.prose h1{font-size:38px;margin-top:1.5em}
.prose h2{font-size:30px;border-bottom:2px solid #f7fafc;padding-bottom:8px}
.prose h3{font-size:24px}
.prose h4{font-size:21px}
.prose p{margin:1.5em 0;text-align:justify;text-justify:inter-ideograph}
.prose a{color:#0d9488;text-decoration:none;border-bottom:1px solid #a7f3d0;transition:all 0.2s}
.prose a:hover{color:#0f766e;border-bottom-color:#0d9488}
.prose ul,.prose ol{margin:1.5em 0;padding-left:2em}
.prose li{margin:0.8em 0}
.prose blockquote{margin:2em 0;padding:1.5em 2em;border-left:6px solid #0d9488;background:linear-gradient(135deg,#f0fdfa,#ecfeff);color:#0f766e;border-radius:0 12px 12px 0;font-style:italic}
.prose img{
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  margin: 2em auto;
  display: block;
  border: 1px solid #f0f0f0;
  background: #f8fafc;
}

/* 確保編輯器中的圖片也遵循同樣的樣式 */
.prose figure img,
.prose .image img,
.content img{
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  margin: 2em auto;
  display: block;
  border: 1px solid #f0f0f0;
  background: #f8fafc;
}

/* 如果圖片太大，可以點擊查看原圖 */
.prose img:hover{
  cursor: zoom-in;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}
.prose table{border-collapse:collapse;width:100%;margin:2em 0;border-radius:8px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.prose table th{background:#f7fafc;font-weight:600;color:#2d3748;padding:12px 16px}
.prose table td{border:1px solid #e2e8f0;padding:12px 16px}
.prose table tr:nth-child(even){background:#f9fafb}
.prose code{background:#f7fafc;padding:3px 8px;border-radius:6px;font-family:Consolas,Monaco,'Courier New',monospace;color:#d73a49;font-size:0.9em}
.prose pre{background:linear-gradient(135deg,#1a202c,#2d3748);color:#e2e8f0;border-radius:12px;padding:20px;overflow:auto;margin:2em 0;box-shadow:0 8px 24px rgba(0,0,0,0.2)}
.prose pre code{background:transparent;padding:0;color:#e2e8f0}
.comments{background:#fff;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,0.08);padding:40px;margin:32px auto}
.comments h3{font-size:24px;color:#1a202c;margin-bottom:24px;font-weight:600}
.comment{border:1px solid #f0f0f0;border-radius:12px;padding:20px;margin:16px 0;background:#fafafa;transition:all 0.2s}
.comment:hover{box-shadow:0 4px 12px rgba(0,0,0,0.1);border-color:#e2e8f0}
.comment .author{font-weight:600;color:#0d9488;font-size:16px}
.comment .time{font-size:13px;color:#999;margin:4px 0 8px}
.comment .body{color:#2d3748;line-height:1.6;font-size:15px}
.field{margin:20px 0}
.field label{display:block;margin-bottom:8px;font-weight:600;color:#2d3748;font-size:15px}
.field input,.field textarea{width:100%;padding:14px 16px;border:2px solid #e2e8f0;border-radius:12px;font-size:15px;transition:all 0.2s;background:#fff}
.field input:focus,.field textarea:focus{outline:none;border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,0.1)}
.field textarea{resize:vertical;min-height:100px;font-family:inherit}
.btn{display:inline-block;background:linear-gradient(135deg,#0d9488,#0f766e);color:#fff;text-decoration:none;border:none;border-radius:12px;padding:14px 24px;cursor:pointer;font-size:15px;font-weight:600;transition:all 0.2s;box-shadow:0 4px 12px rgba(13,148,136,0.3)}
.btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(13,148,136,0.4)}
@media (max-width:768px){.comments{margin:20px 0;padding:24px 20px;border-radius:0}}
.footer{border-top:1px solid #f0f0f0;color:#718096;padding:32px 0;margin-top:60px;background:#fff;text-align:center;font-size:14px}

