:root{
  --bg:#f4efe5;
  --bg-soft:#fbf8f2;
  --card:#fffdf8;
  --line:#ddd2bf;
  --text:#1f2a37;
  --muted:#6b7280;
  --accent:#1d4ed8;
  --up:#cf3a2b;
  --down:#0f9f6e;
  --shadow:0 18px 50px rgba(76,58,32,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:linear-gradient(180deg,#f6f0e4 0%,#efe6d6 100%);color:var(--text);font-family:Georgia,"Noto Serif SC","Source Han Serif SC","PingFang SC",serif}
body{min-height:100vh}
a{color:inherit}
.pmk-page{max-width:1500px;margin:0 auto;padding:18px 16px 28px}
.pmk-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;padding:18px 4px 24px}
.eyebrow{margin:0 0 10px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#8a6b3f}
.pmk-hero h1{margin:0;font-size:44px;line-height:1.04;font-weight:700}
.hero-text{max-width:760px;margin:14px 0 0;font-size:16px;line-height:1.8;color:#5f6975}
.hero-meta{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px}
.meta-card{padding:16px 18px;border:1px solid var(--line);background:rgba(255,253,248,.84);border-radius:18px;box-shadow:var(--shadow);min-width:0}
.meta-card span{display:block;font-size:12px;color:#8a7460;margin-bottom:8px}
.meta-card strong{display:block;font-size:15px;line-height:1.5}
.pmk-shell{display:grid;grid-template-columns:360px 1fr;gap:18px;align-items:start}
.sidebar-card,.main-card{background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.sidebar-card{padding:18px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:hidden;display:flex;flex-direction:column}
.sidebar-head{display:flex;flex-direction:column;gap:12px;padding-bottom:14px;border-bottom:1px solid #ece2d0}
.sidebar-head h2{margin:0;font-size:22px}
.category-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.category-tabs::-webkit-scrollbar{height:6px}
.category-tabs::-webkit-scrollbar-thumb{background:#d9ccb6;border-radius:999px}
.category-chip{border:1px solid #d9c9b2;background:#fff8ed;color:#5d6672;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.category-chip.active{background:#143b92;border-color:#143b92;color:#fff}
.subcategory-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.subcategory-tabs::-webkit-scrollbar{height:6px}
.subcategory-tabs::-webkit-scrollbar-thumb{background:#d9ccb6;border-radius:999px}
.subcategory-chip{border:1px solid #e3d8c6;background:#fffdf8;color:#66707d;padding:7px 11px;border-radius:999px;font-size:12px;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.subcategory-chip.active{background:#eef4ff;border-color:#2f5bc0;color:#173f98;font-weight:700}
.search-input{width:100%;border:1px solid var(--line);background:var(--bg-soft);border-radius:14px;padding:12px 14px;font-size:14px;color:var(--text);outline:none}
.search-input:focus{border-color:#8fb3ff;box-shadow:0 0 0 4px rgba(29,78,216,.08)}
.event-list{overflow:auto;padding-top:14px;display:flex;flex-direction:column;gap:12px}
.event-item{border:1px solid #eadfcd;background:linear-gradient(180deg,#fffdfa 0%,#faf4ea 100%);border-radius:18px;padding:14px 14px 13px;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.event-item:hover{transform:translateY(-1px);border-color:#cdb694;box-shadow:0 10px 24px rgba(97,76,38,.09)}
.event-item.active{border-color:#355fbe;background:linear-gradient(180deg,#edf4ff 0%,#f7fbff 100%);box-shadow:0 10px 28px rgba(53,95,190,.12)}
.event-title{font-size:15px;line-height:1.55;font-weight:700}
.event-slug{margin-top:6px;font-size:12px;color:#7d8793;word-break:break-all}
.event-meta{display:flex;justify-content:space-between;gap:10px;margin-top:12px;font-size:12px;color:#5f6975}
.event-price{font-weight:700;color:#143b92}
.main-card{padding:20px 22px 22px}
.event-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid #ece2d0}
.event-title-block{display:flex;gap:14px;align-items:flex-start;min-width:0}
.event-icon{width:56px;height:56px;border-radius:16px;object-fit:cover;border:1px solid #e2d5c0;background:#f5efe4;flex:0 0 auto}
.event-heading{min-width:0}
.event-heading h2{margin:0;font-size:28px;line-height:1.25}
.event-desc{margin:10px 0 0;font-size:14px;line-height:1.7;color:#66707d;max-width:860px}
.event-badges{display:flex;flex-wrap:wrap;gap:10px}
.badge{padding:8px 11px;border-radius:999px;background:#f8f1e4;border:1px solid #e7d8bd;font-size:12px;color:#725c36;white-space:nowrap}
.instrument-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:16px 0}
.instrument-chip{border:1px solid #e1d3be;background:#fffaf1;border-radius:16px;padding:10px 12px;min-width:0;cursor:pointer;transition:border-color .16s ease,background .16s ease}
.instrument-chip.active{border-color:#3159b8;background:#eef4ff}
.instrument-chip strong{display:block;font-size:14px}
.instrument-chip span{display:block;margin-top:4px;font-size:12px;color:#66707d}
.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:6px 0 14px}
.toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.interval-tabs{display:flex;flex-wrap:wrap;gap:8px}
.tab-btn{border:1px solid #d9c9b2;background:#fff8ed;color:#4b5563;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:700;cursor:pointer}
.tab-btn.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.load-state{font-size:13px;color:#7a8492}
.translate-toggle{border:1px solid #d9c9b2;background:#fff8ed;color:#4b5563;padding:9px 13px;border-radius:999px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.translate-toggle.active{background:#143b92;border-color:#143b92;color:#fff}
.event-title-sub,.event-desc-sub,.instrument-sub{margin-top:6px;font-size:12px;line-height:1.6;color:#7d8793}
.event-desc-sub{margin-top:8px}
.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-bottom:16px}
.metric-card{padding:14px 16px;background:#fffaf3;border:1px solid #eadbc2;border-radius:18px}
.metric-card span{display:block;font-size:12px;color:#86745f}
.metric-card strong{display:block;margin-top:8px;font-size:24px;line-height:1.1}
.metric-card em{display:block;margin-top:6px;font-style:normal;font-size:12px;color:#6b7280}
.text-up{color:var(--up)}
.text-down{color:var(--down)}
.chart-card{border:1px solid #eadbc5;border-radius:24px;background:linear-gradient(180deg,#fffefb 0%,#f8f3ea 100%);padding:16px}
.chart-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:10px;color:#6b7280;font-size:12px}
.chart-wrap{position:relative;height:620px;border-radius:18px;border:1px solid #e7dcc8;background:#fffdfa;overflow:hidden}
#klineCanvas{display:block;width:100%;height:100%}
.chart-tooltip{position:absolute;display:none;min-width:190px;pointer-events:none;z-index:2;padding:10px 12px;background:rgba(24,31,42,.92);color:#eef3ff;border-radius:14px;border:1px solid rgba(255,255,255,.08);font-size:12px;line-height:1.65;box-shadow:0 16px 40px rgba(17,24,39,.24)}
.chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#8b95a3;font-size:15px}
.empty-list{padding:18px 12px;color:#8a92a0;text-align:center;font-size:14px}
@media (max-width: 1180px){
  .pmk-shell{grid-template-columns:1fr}
  .sidebar-card{position:relative;top:auto;max-height:none}
}
@media (max-width: 760px){
  .pmk-page{padding:12px}
  .pmk-hero{flex-direction:column;align-items:flex-start;padding-bottom:16px}
  .pmk-hero h1{font-size:34px}
  .hero-meta{width:100%;grid-template-columns:1fr}
  .main-card,.sidebar-card{border-radius:20px}
  .event-header{flex-direction:column}
  .metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .toolbar{align-items:flex-start;flex-direction:column}
  .toolbar-right{width:100%;justify-content:space-between}
  .chart-wrap{height:420px}
}
