/* 法规解读页 —— 与 portal.css 同一套配色 */
.notes-shell{max-width:1080px}
.notes-print-title{display:none}

/* 控件 */
.notes-controls{background:#fff;border:1px solid #d7e2d9;border-radius:14px;padding:16px 18px;margin:26px 0 14px;position:sticky;top:8px;z-index:6;box-shadow:0 6px 18px #25473608}
.notes-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
.notes-field{display:flex;flex-direction:column;gap:5px;min-width:140px}
.notes-field.grow{flex:1;min-width:230px}
.notes-field label{font-size:12px;font-weight:650;color:#597368;letter-spacing:.02em}
.notes-controls input[type=search],.notes-controls select{font:inherit;font-size:14px;padding:9px 11px;min-height:42px;border:1px solid #b8cbbf;border-radius:8px;background:#fff;color:#243b33;width:100%}
.notes-controls input[type=search]:focus,.notes-controls select:focus{outline:2px solid #69a88a;outline-offset:1px;border-color:#69a88a}
.notes-button{font:inherit;font-size:13px;font-weight:600;color:#185e49;background:#edf5ef;border:1px solid #c7dacd;padding:8px 13px;border-radius:8px;min-height:42px;cursor:pointer;white-space:nowrap}
.notes-button:hover:not(:disabled){background:#e0eee4;border-color:#8db49b}
.notes-button.primary{background:#185e49;border-color:#185e49;color:#fff}
.notes-button.primary:hover:not(:disabled){background:#14624a}
.notes-button:disabled{opacity:.45;cursor:default}
.notes-button[aria-pressed=true]{background:#f6e7c8;border-color:#dfc38a;color:#6b4a13}
.notes-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:13px;padding-top:13px;border-top:1px solid #e7eee9}
.notes-pager{display:flex;align-items:center;gap:10px}
.notes-position{font-size:13px;color:#60756b;text-align:center;min-width:96px}
.notes-switches{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.notes-switch{display:flex;align-items:center;gap:6px;font-size:13px;color:#4d6a5f;cursor:pointer;user-select:none}
.notes-switch input{width:15px;height:15px;accent-color:#185e49}
.notes-progress{font-size:12px;color:#7b8f86}


/* 考点页 */
.notes-article{background:#fff;border:1px solid #d7e2d9;border-radius:14px;padding:0;overflow:hidden;scroll-margin-top:176px}
.point-head{padding:26px 30px 20px;border-bottom:1px solid #eef3ef;background:linear-gradient(180deg,#fbfdfa,#fff)}
.point-tags{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.tag{font-size:11px;font-weight:650;padding:3px 8px;border-radius:5px;letter-spacing:.04em}
.tag.lv-mastery{background:#faece7;color:#a74630}
.tag.lv-understand{background:#e8f0f6;color:#2f5f7d}
.tag.ghost{background:#eef3ef;color:#5c7a6e;font-weight:600;font-variant-numeric:tabular-nums}
.point-head h2{margin:0 0 10px;font-size:25px;line-height:1.5;color:#1d322b;letter-spacing:-.01em}
.point-path{margin:0;font-size:12.5px;color:#7b8f86;line-height:1.7}
.point-path span+span::before{content:" · ";color:#b7c6be}

.point-body{padding:24px 30px 30px}

.summary-box{border-left:3px solid #3f8a68;background:#f5faf6;border-radius:0 8px 8px 0;padding:14px 18px;margin:0 0 24px}
.summary-box em{display:block;font-style:normal;font-size:11px;letter-spacing:.1em;color:#3f8a68;font-weight:650;margin-bottom:6px}
.summary-box p{margin:0;font-size:16.5px;line-height:1.8;color:#1f3b31;max-width:44em}

.sec-head{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:15px;font-weight:650;color:#185e49}
.sec-head i{font-style:normal;width:22px;height:22px;border-radius:6px;background:#edf5ef;color:#185e49;display:grid;place-items:center;font-size:12px;flex:none}
.sec-head small{font-weight:400;font-size:12px;color:#8a9c93;margin-left:auto;letter-spacing:0}

.law{background:#fafbf8;border:1px solid #e4ebe4;border-radius:10px;margin:0 0 26px}
.law>summary{cursor:pointer;padding:12px 16px;font-size:13.5px;font-weight:600;color:#3d5d52;list-style:none;display:flex;align-items:center;gap:8px}
.law>summary::-webkit-details-marker{display:none}
.law>summary::before{content:"▸";color:#8db49b;transition:transform .15s;display:inline-block}
.law[open]>summary::before{transform:rotate(90deg)}
.law>summary em{font-style:normal;font-weight:400;font-size:12px;color:#8a9c93;margin-left:auto;text-align:right}
.law-inner{padding:0 16px 16px;border-top:1px solid #e4ebe4}
.law-clause{margin:14px 0 0}
.law-clause h4{margin:0 0 6px;font-size:12.5px;color:#5c7a6e;font-weight:650;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.law-clause pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:14px;line-height:1.85;color:#3c5147;max-width:52em}
.law-note{margin:12px 0 0;font-size:12px;color:#8a9c93}

.read-block{margin:0 0 22px}
.read-block:last-child{margin-bottom:0}
.read-block h3{margin:0 0 8px;font-size:16.5px;color:#1d322b;line-height:1.6;padding-left:11px;border-left:3px solid #cfe0d4}
.read-block p{margin:0 0 10px;font-size:16px;line-height:1.95;color:#2c433a;text-align:justify;max-width:46em}
.read-block p:last-child{margin-bottom:0}
.read-block strong{color:#124e3b;font-weight:650;background:linear-gradient(transparent 62%,#e5f2e9 62%);padding:0 1px}

.list-sec{margin:26px 0 0;padding-top:20px;border-top:1px dashed #e0e8e2}
.key-list{margin:0;padding:0;list-style:none;counter-reset:k}
.key-list li{counter-increment:k;position:relative;padding:7px 0 7px 30px;font-size:15px;line-height:1.85;color:#2c433a;border-bottom:1px solid #f2f6f3;max-width:46em}
.key-list li:last-child{border-bottom:0}
.key-list li::before{content:counter(k);position:absolute;left:0;top:9px;width:19px;height:19px;border-radius:50%;background:#edf5ef;color:#185e49;font-size:11px;font-weight:650;display:grid;place-items:center}
.trap-list{margin:0;padding:0;list-style:none}
.trap-list li{position:relative;padding:8px 0 8px 22px;font-size:15px;line-height:1.85;color:#6b4a2c;max-width:46em}
.trap-list li::before{content:"!";position:absolute;left:0;top:9px;width:16px;height:16px;border-radius:4px;background:#f7ecd9;color:#a4701f;font-size:11px;font-weight:700;display:grid;place-items:center}

.point-nav{display:flex;justify-content:space-between;gap:12px;margin-top:26px;padding-top:20px;border-top:1px solid #eef3ef}
.point-nav a,.point-nav button{font:inherit;font-size:13px;font-weight:600;color:#185e49;text-decoration:none;background:#f5f9f6;border:1px solid #dbe6de;border-radius:7px;padding:8px 12px;cursor:pointer;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.point-nav a:hover,.point-nav button:hover{background:#edf5ef;border-color:#8db49b}
.point-nav .next{margin-left:auto;text-align:right}
.point-nav .ghost-link{color:#60756b;background:#fff;font-weight:500}

.notes-empty{text-align:center;color:#7b8f86;font-size:14px;padding:40px 0}
.notes-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:26px;font-size:13px;color:#60756b}
.notes-footer a{text-decoration:none}
.notes-footer a:hover{text-decoration:underline}

@media(max-width:820px){
  .notes-shell{padding:22px 16px 60px}
  .notes-title{font-size:29px}
  .notes-controls{position:static;padding:14px}
  .point-head{padding:20px 18px 16px}
  .point-head h2{font-size:21px}
  .point-body{padding:18px}
  .read-block p{font-size:15.5px;line-height:1.9}
  .notes-tools{gap:10px}
  .notes-pager{width:100%;justify-content:space-between}
  .notes-pager .notes-button{flex:1}
  .notes-position{min-width:80px;font-size:12px}
  .notes-switches{width:100%;justify-content:space-between}
  .point-nav{flex-direction:column}
  .point-nav a,.point-nav button{max-width:100%}
  .point-nav .next{margin-left:0}
}
@media print{
  .notes-controls,.notes-switches,.point-nav,.notes-footer,.topbar{display:none}
  .notes-print-title{display:block;font-size:17px;margin:0 0 12px;color:#243b33}
  .notes-article{border:0}
  .law{break-inside:avoid}
  .read-block{break-inside:auto}
}
