/* 论文式 (Paper Style) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', Georgia, 'Songti SC', serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: #8b4513; text-decoration: none; border-bottom: 1px solid #ddd; }
a:hover { border-bottom-color: #8b4513; }

/* 页眉 */
.paper-header {
  border-bottom: 2px solid #1a1a1a;
  padding: 16px 40px 12px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.paper-header .journal { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #666; font-family: -apple-system, sans-serif; }
.paper-header .journal strong { color: #1a1a1a; }
.paper-header .volume { font-size: 11px; color: #666; font-family: -apple-system, sans-serif; }

/* 标题区 */
.paper-title { max-width: 720px; margin: 40px auto 20px; padding: 0 40px; text-align: center; }
.paper-type { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #8b4513; font-family: -apple-system, sans-serif; margin-bottom: 16px; }
.paper-title h1 { font-size: 28px; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.paper-title .authors { font-size: 14px; color: #444; margin-bottom: 6px; }
.paper-title .affiliation { font-size: 12px; color: #666; font-style: italic; }
.paper-title .doi { font-size: 11px; color: #8b4513; margin-top: 12px; font-family: -apple-system, sans-serif; }

/* 摘要 */
.abstract { max-width: 640px; margin: 0 auto 24px; padding: 16px 40px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.abstract-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #666; font-family: -apple-system, sans-serif; margin-bottom: 8px; }
.abstract p { font-size: 13px; color: #444; text-align: justify; margin: 0; line-height: 1.75; }
.keywords { max-width: 640px; margin: 0 auto 24px; padding: 0 40px; font-size: 12px; color: #666; font-family: -apple-system, sans-serif; }

/* 目次 */
.paper-index { max-width: 640px; margin: 0 auto; padding: 0 40px 40px; }
.paper-index h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: #1a1a1a; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.paper-listing { padding: 4px 0; }
.paper-listing a { font-size: 14px; color: #444; border-bottom: none; }
.paper-listing a:hover { color: #8b4513; }

/* 双栏正文 */
.paper-content { max-width: 1000px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 200px; gap: 0; position: relative; }
.main-col { max-width: 640px; min-width: 0; }
.side-col { font-size: 12px; color: #666; border-left: 1px solid #eee; padding-left: 24px; padding-top: 4px; }
.paper-breadcrumb { font-size: 12px; color: #999; margin-bottom: 12px; font-family: -apple-system, sans-serif; }
.paper-breadcrumb a { border-bottom: none; color: #8b4513; }
.paper-chapter-title { font-size: 26px; font-weight: 700; margin: 0 0 18px; color: #1a1a1a; padding-bottom: 8px; border-bottom: 2px solid #1a1a1a; }

/* 正文样式 */
.main-col h2 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; color: #1a1a1a; padding-bottom: 4px; border-bottom: 1px solid #eee; }
.main-col h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: #333; font-style: italic; }
.main-col p { margin: 10px 0; text-align: justify; }
.main-col strong { color: #1a1a1a; }
.main-col code { font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace; font-size: 0.85em; background: #f5f5f5; padding: 1px 5px; border-radius: 2px; color: #c0392b; }
.main-col pre { background: #f8f8f8; border: 1px solid #eee; border-radius: 4px; padding: 12px 16px; overflow-x: auto; margin: 14px 0; font-size: 0.9em; line-height: 1.55; }
.main-col pre code { background: none; color: #1a1a1a; padding: 0; border: none; }
.main-col blockquote { margin: 14px 0; padding: 6px 16px; border-left: 2px solid #ddd; color: #555; font-style: italic; }
.main-col table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 13px; font-family: -apple-system, sans-serif; }
.main-col th, .main-col td { border: 1px solid #ddd; padding: 6px 10px; text-align: left; }
.main-col th { background: #f8f8f8; font-weight: 600; }
.main-col ul, .main-col ol { margin: 10px 0; padding-left: 24px; }
.main-col li { margin: 4px 0; }
.main-col hr { border: none; border-top: 1px solid #eee; margin: 24px 0; }
.main-col img { max-width: 100%; border: 1px solid #eee; border-radius: 3px; margin: 12px 0; }

/* Callout */
.callout { margin: 14px 0; padding: 8px 12px 8px 32px; border: 1px solid #eee; border-radius: 4px; position: relative; font-size: 13px; background: #fafafa; }
.callout::before { position: absolute; left: 10px; top: 8px; font-size: 13px; }
.callout-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.callout-body p { margin: 2px 0; }
.callout-note { border-left: 3px solid #8b4513; }
.callout-note::before { content: '◈'; color: #8b4513; }
.callout-important { border-left: 3px solid #c0392b; }
.callout-important::before { content: '⚠'; color: #c0392b; }
.callout-tip { border-left: 3px solid #2d6a4f; }
.callout-tip::before { content: '☞'; color: #2d6a4f; }

/* 侧栏 */
.side-section { margin-bottom: 20px; }
.side-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; font-family: -apple-system, sans-serif; margin-bottom: 4px; }
.side-col a { display: block; padding: 3px 0; color: #555; border-bottom: none; font-size: 12px; line-height: 1.4; }
.side-col a:hover { color: #8b4513; }
.side-col a.l3 { padding-left: 12px; font-size: 11px; }

/* 导航 */
.paper-nav { max-width: 640px; margin: 0 auto; padding: 20px 40px 10px; border-top: 1px solid #ddd; display: flex; justify-content: space-between; }
.paper-nav a { font-family: -apple-system, sans-serif; font-size: 13px; color: #8b4513; border-bottom: none; }
.paper-nav a:hover { text-decoration: underline; }

/* 页脚 */
.paper-footer { max-width: 1000px; margin: 0 auto; padding: 12px 40px; border-top: 1px solid #ddd; text-align: center; font-size: 11px; color: #999; font-family: -apple-system, sans-serif; }

@media (max-width: 860px) {
  .paper-content { grid-template-columns: 1fr; }
  .side-col { display: none; }
}
