:root{--ink:#151b23;--red:#e94235;--paper:#f2f5f7;--muted:#687782;--line:#dce3e8;--white:#fff;--green:#168568;--amber:#c77a22;--blue:#376ab4}
*{box-sizing:border-box}html{min-width:320px;background:var(--paper)}body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.shell{width:min(1320px,100%);margin:auto;padding:0 clamp(18px,4vw,58px)}.site-header{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:48px;height:48px;border-radius:14px;object-fit:cover;background:#fff}.brand strong,.brand small{display:block}.brand strong{font-size:15px}.brand small{margin-top:4px;color:var(--muted);font-size:10px;letter-spacing:.08em}.back-link{font-size:12px;font-weight:800;color:#3e515f}.hero{min-height:260px;padding:40px clamp(26px,4vw,55px);border-radius:28px;display:flex;justify-content:space-between;align-items:center;gap:32px;overflow:hidden;background:radial-gradient(circle at 86% 25%,#344353 0,transparent 34%),var(--ink);color:#fff}.eyebrow{color:var(--red);font-size:10px;font-weight:900;letter-spacing:.18em}.hero h1{margin:13px 0 12px;font-size:clamp(42px,5vw,67px);line-height:1.06;letter-spacing:-.06em}.hero h1 em{font-style:normal;color:#ff7a6e}.hero p{margin:0;color:#bfccd5;font-size:13px}.hero-side{min-width:190px;display:grid;grid-template-columns:35px 1fr;gap:20px 14px;align-items:center}.hero-side b{width:35px;height:35px;border:1px solid #ff7a6e;border-radius:10px;display:grid;place-items:center;color:#ff7a6e;font-size:11px}.hero-side span{color:#d1dbe2;font-size:12px;line-height:1.55}.auth-state{margin:22px 0;padding:18px 22px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#4e5e6a;font-size:13px}.auth-state:empty{display:none}.auth-state a{color:#c63529;text-decoration:underline;font-weight:800}.tab-bar{margin:30px 0 22px;padding:5px;display:inline-flex;gap:4px;border:1px solid var(--line);border-radius:15px;background:#fff}.tab{min-width:138px;padding:11px 16px;border:0;border-radius:11px;background:transparent;color:#5d6b76;font-size:13px;font-weight:800}.tab.is-active{background:var(--ink);color:#fff}.panel{padding-bottom:75px}.section-title{margin-bottom:23px;display:flex;align-items:end;justify-content:space-between;gap:24px}.section-title h2{margin:9px 0 0;font-size:clamp(27px,3.3vw,42px);letter-spacing:-.04em}.section-title p{max-width:420px;margin:0 0 3px;color:var(--muted);font-size:12px;line-height:1.65}.schedule-layout{display:grid;grid-template-columns:minmax(330px,.83fr) minmax(400px,1.17fr);align-items:start;gap:18px}.form-card,.list-card,.notice-editor,.preview-wrap{padding:26px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 35px rgba(24,40,55,.05)}h3{margin:0;font-size:18px;letter-spacing:-.025em}.form-card label,.notice-editor>label,.import-row label{margin-top:18px;display:grid;gap:8px;color:#35434e;font-size:12px;font-weight:800}.form-card label span{color:var(--red)}input,select,textarea{width:100%;min-height:43px;padding:10px 12px;border:1px solid #d3dce2;border-radius:10px;background:#fbfcfd;color:var(--ink);outline:0;font-size:13px}textarea{resize:vertical;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:#6584a9;box-shadow:0 0 0 3px rgba(55,106,180,.12)}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions,.export-actions{margin-top:22px;display:flex;flex-wrap:wrap;gap:9px}.primary,.secondary{min-height:42px;padding:10px 16px;border-radius:10px;font-size:12px;font-weight:850}.primary{border:1px solid var(--red);background:var(--red);color:#fff}.primary:hover{background:#d4372b}.secondary{border:1px solid var(--line);background:#fff;color:#344450}.secondary:hover{border-color:#aab9c3;background:#f5f8fa}.text-button{padding:6px;border:0;background:none;color:var(--blue);font-size:12px;font-weight:850}.message{min-height:18px;margin:10px 0 0;color:#a73329;font-size:12px;line-height:1.5}.message.is-success{color:var(--green)}.list-head{display:flex;align-items:start;justify-content:space-between}.list-head p{margin:6px 0 0;color:var(--muted);font-size:12px}.list-filter{margin:22px 0;padding:13px;display:flex;align-items:end;gap:9px;border-radius:13px;background:#f4f7f9}.list-filter label{flex:1;display:grid;gap:5px;color:#65727d;font-size:10px;font-weight:800}.list-filter input{min-height:37px}.list-filter button{min-height:37px}.session-list{display:grid;gap:9px}.empty-list{padding:40px 15px;border:1px dashed #cbd6dd;border-radius:14px;color:#74828d;text-align:center;font-size:13px}.session-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}.session-card-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.session-card h4{margin:0 0 6px;font-size:15px}.session-card time{color:var(--red);font-size:12px;font-weight:800}.session-card p{margin:8px 0 0;color:#65737e;font-size:11px;line-height:1.5}.session-actions{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px}.session-actions button{padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fafb;color:#465663;font-size:11px;font-weight:800}.session-actions button:hover{border-color:#a9b8c2}.notice-layout{display:grid;grid-template-columns:minmax(340px,.94fr) minmax(360px,1.06fr);align-items:start;gap:18px}.days-head{margin:24px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.days-head h3{font-size:16px}.days-head button{min-height:35px}.notice-days{display:grid;gap:9px}.notice-day{padding:12px;border:1px solid var(--line);border-radius:13px;background:#fbfcfd}.notice-day-top{display:grid;grid-template-columns:1fr 115px 30px;gap:7px}.notice-day .remove-day{padding:0;border:0;background:none;color:#9c5550;font-size:20px}.notice-day input[type=text]{margin-top:8px}.import-row{margin-top:15px;padding:13px;border:1px dashed #bccbd4;border-radius:13px;display:flex;align-items:end;gap:9px}.import-row label{flex:1;margin:0}.import-row button{white-space:nowrap}.preview-wrap{position:sticky;top:20px;background:#e8edf0}.preview-caption{margin-bottom:13px;color:#697782;font-size:11px;font-weight:800;text-align:center;letter-spacing:.08em}.notice-preview{min-height:650px;padding:38px clamp(24px,3.2vw,46px);background:#fff;box-shadow:0 16px 35px rgba(22,35,46,.1)}.preview-brand{display:flex;align-items:center;gap:10px;padding-bottom:20px;border-bottom:4px solid var(--red)}.preview-brand img{width:43px;height:43px;border-radius:11px;object-fit:cover}.preview-brand strong,.preview-brand small{display:block}.preview-brand strong{font-size:14px}.preview-brand small{margin-top:4px;color:#75818a;font-size:9px;letter-spacing:.08em}.notice-preview h2{margin:34px 0 10px;font-size:clamp(29px,3vw,39px);letter-spacing:-.05em}.preview-intro,.preview-outro{color:#5e6b74;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.preview-list{margin:27px 0 30px;display:grid;gap:9px}.preview-day{padding:15px;border-left:4px solid var(--blue);border-radius:0 10px 10px 0;background:#f1f5f9}.preview-day[data-status="停课"]{border-color:var(--red);background:#fff1ef}.preview-day[data-status="休息"]{border-color:#798590;background:#f3f5f6}.preview-day[data-status="调课"]{border-color:var(--amber);background:#fff6e8}.preview-day strong{display:flex;justify-content:space-between;gap:10px;font-size:14px}.preview-day b{font-size:11px}.preview-day p{margin:7px 0 0;color:#5c6973;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.preview-footer{margin-top:36px;padding-top:17px;border-top:1px solid #d8e0e5;display:flex;justify-content:space-between;gap:12px;color:#687680;font-size:10px}.notice-preview .empty-preview{padding:30px;border:1px dashed #cad4da;color:#75838d;text-align:center;font-size:12px}footer{min-height:100px;padding:25px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;color:#73808b;font-size:11px}footer strong{color:#26333d}footer a{margin-left:auto;color:#cf3e31;font-weight:800}
@media(max-width:900px){.schedule-layout,.notice-layout{grid-template-columns:1fr}.preview-wrap{position:static}.hero-side{display:none}.section-title{display:block}.section-title p{margin-top:8px}}
@media(max-width:540px){.shell{padding:0 14px}.site-header{min-height:72px}.brand img{width:40px;height:40px}.brand strong{font-size:12px}.brand small{font-size:8px}.back-link{font-size:11px}.hero{min-height:210px;padding:27px;border-radius:20px}.hero h1{font-size:42px}.tab-bar{display:flex}.tab{min-width:0;flex:1}.section-title h2{font-size:28px}.form-card,.list-card,.notice-editor,.preview-wrap{padding:18px;border-radius:17px}.two-cols{gap:8px}.list-filter{flex-wrap:wrap}.list-filter button{width:100%}.notice-day-top{grid-template-columns:1fr 100px 24px}.import-row{display:block}.import-row button{margin-top:8px;width:100%}.notice-preview{min-height:520px;padding:28px 23px}footer{flex-wrap:wrap}}
@media print{html,body{background:#fff}.site-header,.hero,.auth-state,.tab-bar,.section-title,.schedule-layout,.notice-editor,.preview-caption,footer{display:none!important}.shell{width:100%;padding:0}.panel{padding:0}.notice-layout{display:block}.preview-wrap{padding:0;border:0;box-shadow:none;background:#fff}.notice-preview{min-height:0;box-shadow:none;break-inside:avoid}@page{size:A4;margin:12mm}}

/* 节假日通知：先选日期范围，再逐日选择课程状态。 */
.notice-range{
  margin-top:21px;
  padding:17px 18px;
  border:1px solid #d9e3e8;
  border-left:4px solid var(--red);
  border-radius:14px;
  background:linear-gradient(110deg,#fff9f7 0%,#f8fbfc 100%);
}
.notice-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.notice-range-fields label{display:grid;gap:7px;color:#35434e;font-size:12px;font-weight:800}
.notice-range-fields input{min-width:0;background:#fff}
.notice-range-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.notice-range-actions button{min-height:44px}
.notice-range-hint{margin:10px 0 0;color:#5e707c;font-size:12px;line-height:1.6}

.notice-days{gap:12px}
.notice-day{padding:15px;border-color:#d9e2e8;border-radius:14px;background:#fff}
.notice-day:focus-within{border-color:#a9bdca;box-shadow:0 0 0 3px rgba(55,106,180,.07)}
.notice-day-header{display:grid;grid-template-columns:minmax(0,220px) auto 44px;align-items:end;justify-content:start;gap:8px;margin-bottom:12px}
.notice-day-date{display:grid;gap:6px;min-width:0;color:#35434e;font-size:12px;font-weight:800}
.notice-day-weekday{display:grid;place-items:center;min-width:46px;height:44px;padding:0 8px;border:1px solid #dbe4e9;border-radius:11px;background:#f4f7f9;color:#4f6270;font-size:12px;font-weight:850;white-space:nowrap}
.notice-day .remove-day{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #f0c9c5;border-radius:11px;background:#fff3f1;color:#bc4338;transition:background-color .16s ease,border-color .16s ease,transform .16s ease}
.notice-day .remove-day svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notice-day .remove-day:hover{border-color:#dc8b84;background:#ffe4df;color:#9f3028}
.notice-day .remove-day:active{transform:scale(.95)}
.notice-preview-actions{justify-content:flex-end;align-items:center;margin-top:16px;padding:16px 2px 0;border-top:1px solid #c8d2d9}
.notice-preview-actions button{min-height:44px}
.notice-status-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.notice-status-button{
  display:grid;place-items:center;min-width:0;min-height:46px;padding:8px 5px;
  border:1px solid #cbd7df;border-radius:10px;background:#f8fafb;
  color:#344958;font-size:12px;font-weight:850;line-height:1.25;text-align:center;
}
.notice-status-button:hover{border-color:#879eae;background:#eff4f7}
.notice-status-button[aria-pressed="true"][data-status="上课"]{border-color:var(--blue);background:var(--blue);color:#fff}
.notice-status-button[aria-pressed="true"][data-status="停课"]{border-color:var(--red);background:var(--red);color:#fff}
.notice-status-button[aria-pressed="true"][data-status="休息"]{border-color:#667684;background:#667684;color:#fff}
.notice-status-button[aria-pressed="true"][data-status="调课"]{border-color:var(--amber);background:#fff0d9;color:#7b4508}
.notice-day-detail{display:block;min-height:70px;margin-top:12px;background:#fbfcfd;color:#35434e;font-size:12px;font-weight:400}
.notice-day-detail[hidden]{display:none!important}

button:focus-visible,.back-link:focus-visible{outline:3px solid #315f9e;outline-offset:3px}
.preview-day{display:block;width:100%;text-align:left;cursor:pointer;border:0;border-left:4px solid var(--blue);font:inherit;transition:box-shadow .16s ease,background-color .16s ease}
.preview-day:hover{box-shadow:0 4px 13px rgba(24,40,55,.11)}
.preview-day[data-status="待确认"]{border-color:#98a6b0;border-style:dashed;background:#f7f9fa;color:#596b77}
.preview-day[data-status="上课"]{border-color:var(--blue);background:#f1f5f9}
.preview-day[data-status="停课"]{border-color:var(--red);background:#fff1ef}
.preview-day[data-status="休息"]{border-color:#798590;background:#f3f5f6}
.preview-day[data-status="调课"]{border-color:var(--amber);background:#fff6e8}
.preview-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.preview-caption button{min-height:36px;padding:6px 9px;border:1px solid #bdcbd4;border-radius:8px;background:#fff;color:#35516a;font-size:11px;font-weight:800;white-space:nowrap}
.preview-caption button:hover{border-color:#7e9bac}

@media(max-width:600px){
  .notice-range{padding:14px}
  .notice-range-fields{gap:8px}
  .notice-range-actions button{flex:1 1 auto}
  .notice-day{padding:12px}
  .notice-day-header{grid-template-columns:minmax(0,1fr) auto 44px;gap:7px}
  .notice-status-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preview-caption{flex-wrap:wrap}
  .notice-preview-actions button{flex:1 1 140px}
}
@media(max-width:360px){.notice-range-fields{grid-template-columns:1fr}.notice-day-weekday{font-size:11px}}
@media(prefers-reduced-motion:reduce){.preview-day{transition:none}}
@media print{.preview-day{break-inside:avoid;box-shadow:none!important}}

/* DH 横版通知画布：页面预览与导出共用的日历结构。 */
.notice-layout{grid-template-columns:minmax(0,1fr)}
.preview-wrap{position:static;min-width:0;padding:19px;background:#e5e9ed}
.preview-caption{margin:0 2px 14px;color:#4b5b66;letter-spacing:0}
.preview-viewport{max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;border-radius:13px;container-type:inline-size}
.preview-viewport:focus-visible{outline:3px solid #315f9e;outline-offset:3px}
.notice-preview{
  position:relative;isolation:isolate;display:grid;
  grid-template-rows:clamp(81px,9cqw,144px) clamp(71px,7.875cqw,126px) minmax(min-content,1fr) clamp(36px,3.94cqw,63px);
  width:100%;min-width:900px;
  height:max-content;min-height:max(506px,56.25cqw);aspect-ratio:16/9;
  padding:0;border-radius:12px;
  background:#191d23 url('/dh-notice-calendar-middle.svg') center top/100% auto repeat-y;
  box-shadow:0 18px 44px rgba(15,21,27,.19);color:#f6f7f8;
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
}
.notice-preview::before,.notice-preview::after{content:"";position:absolute;left:0;width:100%;pointer-events:none;z-index:0}
.notice-preview::before{top:0;aspect-ratio:16/9;background:url('/dh-notice-calendar-bg.jpg') center top/100% 100% no-repeat;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%)}
.notice-preview::after{bottom:0;aspect-ratio:5/1;background:url('/dh-notice-calendar-bottom.svg') center bottom/100% 100% no-repeat}
.notice-preview>*{position:relative;z-index:1}
.preview-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:0 3.1%}
.preview-brand{
  display:flex;align-items:center;flex:none;gap:1.25%;min-width:max-content;
  padding:0;border:0;background:transparent;
}
.preview-brand img{width:clamp(49px,5.2vw,72px);height:clamp(49px,5.2vw,72px);border:2px solid rgba(255,255,255,.8);border-radius:15px;object-fit:cover;background:#fff;box-shadow:0 7px 16px rgba(0,0,0,.25)}
.preview-brand strong{font-size:clamp(19px,2.15vw,30px);font-weight:900;letter-spacing:.05em;color:#fff;white-space:nowrap}
.preview-brand small{margin-top:3px;color:#d2d8db;font-size:clamp(8px,.78vw,11px);font-weight:800;letter-spacing:.12em;white-space:nowrap}
.preview-titlebar{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;
  min-width:0;margin:0 3.1%;padding:0 2.1%;
  border-left:8px solid var(--red);border-radius:5px 10px 10px 5px;
  background:rgba(15,19,24,.9);box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.preview-titlebar>span{color:#f59a8b;font-size:clamp(9px,.9vw,13px);font-weight:950;letter-spacing:.2em}
.preview-titlebar h2,.notice-preview h2{min-width:0;margin:0;color:#fff;font-size:clamp(27px,3.5vw,48px);font-weight:950;line-height:1.08;letter-spacing:.02em;overflow-wrap:anywhere}
.preview-period{flex:none;color:#e9edef;font-size:clamp(10px,1.15vw,16px);font-weight:900;letter-spacing:.08em;white-space:nowrap;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.preview-body{
  display:grid;grid-template-columns:minmax(0,2.12fr) minmax(0,.88fr);gap:1.5%;
  align-items:start;padding:1.5% 3.1% .7%;
}
.preview-calendar{
  display:grid;grid-template-rows:auto minmax(min-content,1fr);gap:10px;
  align-self:start;min-width:0;min-height:clamp(280px,31.25cqw,500px);padding:1.6%;
  border:1px solid rgba(255,255,255,.18);border-radius:13px;
  background:rgba(14,17,21,.9);box-shadow:0 10px 22px rgba(0,0,0,.18);
}
.preview-weekdays,.preview-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1.1%;min-width:0}
.preview-weekdays{align-items:center;min-height:29px;padding:0 1%;border-radius:8px;background:#f0f2f3;color:#202831}
.preview-weekdays span{text-align:center;font-size:clamp(10px,1.15vw,16px);font-weight:900;white-space:nowrap}
.preview-grid{grid-auto-rows:minmax(clamp(68px,7.5cqw,120px),1fr);min-height:0}
.preview-empty{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;min-width:0;min-height:0;padding:6px 7px;border-radius:8px;background:rgba(255,255,255,.07);color:#a5adb2}
.preview-empty .preview-date-number{opacity:.72}
.preview-empty small{font-size:clamp(8px,.78vw,11px)}
.preview-day{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  min-width:0;min-height:0;width:100%;padding:6px 7px;
  border:1px solid rgba(31,42,51,.13);border-top:4px solid #e94235;border-radius:8px;
  background:#f8f9f8;color:#242a2e;text-align:left;font:inherit;overflow:hidden;
  transition:transform .15s ease,box-shadow .15s ease;
}
.preview-day:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.25)}
.preview-day:focus-visible{outline:3px solid #ff9a6e;outline-offset:-3px}
.preview-day[data-status="上课"]{border-color:#d5dade;border-top-color:#e94235;background:#f7f8f7;color:#20262b}
.preview-day[data-status="停课"]{border-color:#f3bfbb;border-top-color:#d6372b;background:#ffe8e2;color:#b72b25}
.preview-day[data-status="休息"]{border-color:#d2d8dc;border-top-color:#77848b;background:#eceff0;color:#4e5960}
.preview-day[data-status="调课"]{border-color:#efcf97;border-top-color:#c77a22;background:#fff1d8;color:#8b4e12}
.preview-day[data-status="待确认"]{border:1px dashed #aeb7bd;border-top:4px solid #aeb7bd;background:#eef0f1;color:#6e777c}
.preview-date-number{display:block;font-size:clamp(22px,2.4vw,35px);font-weight:950;line-height:1;letter-spacing:-.04em}
.preview-day-status{display:block;margin-top:3px;padding:2px 5px;border-radius:4px;background:#e94235;color:#fff;font-size:clamp(9px,.84vw,12px);font-weight:900;line-height:1.15;white-space:nowrap}
.preview-day[data-status="停课"] .preview-day-status{background:#d6372b}
.preview-day[data-status="休息"] .preview-day-status{background:#77848b}
.preview-day[data-status="调课"] .preview-day-status{background:#c77a22}
.preview-day[data-status="待确认"] .preview-day-status{background:#859199}
.preview-month{position:absolute;top:7px;right:6px;color:#748087;font-size:clamp(8px,.68vw,10px);font-weight:900;line-height:1;opacity:.76;pointer-events:none}
.preview-day-detail{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0 0;color:inherit;font-size:clamp(8px,.78vw,11px);font-weight:700;line-height:1.3;overflow:hidden;overflow-wrap:anywhere}
.preview-note{
  display:flex;flex-direction:column;align-self:start;min-width:0;padding:8% 7%;
  border-radius:8px;background:#f9f8f5;color:#24282b;
  box-shadow:0 10px 22px rgba(0,0,0,.2);
}
.preview-note h3{display:block;margin:0 0 8%;padding-bottom:6%;border-bottom:3px solid var(--red);color:#be352b;font-size:clamp(14px,1.45vw,19px);font-weight:950;letter-spacing:.1em}
.preview-note .preview-intro,.preview-note .preview-outro{margin:0;color:#252a2e;font-size:clamp(12px,1.12vw,16px);line-height:1.62;white-space:pre-wrap;overflow-wrap:anywhere}
.preview-note-details{margin:15px 0 0;padding-top:11px;border-top:1px solid #dbddd9}
.preview-note-details h4{margin:0 0 9px;color:#a43029;font-size:clamp(11px,1.06vw,15px);font-weight:950}
.preview-note-details p{margin:7px 0;color:#353a3d;font-size:clamp(11px,1vw,14px);line-height:1.5;overflow-wrap:anywhere}
.preview-note-details strong{color:#ba382f}
.preview-note .preview-outro{margin-top:18px;padding-top:10px;border-top:1px solid #dbddd9;font-weight:800}
.preview-footer{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-width:0;margin:0;padding:0 3.1%;border:0;color:#d5dadd;
  font-size:clamp(9px,.8vw,11px);font-weight:750;letter-spacing:.06em;
}
.preview-footer strong{color:#fff}
.notice-preview .empty-preview{grid-column:1/-1;display:grid;place-items:center;margin:0;padding:15px;border:1px dashed rgba(255,255,255,.5);border-radius:9px;background:rgba(255,255,255,.06);color:#eef1f3;text-align:center;font-size:14px}

@media(max-width:700px){
  .preview-wrap{padding:12px}
  .preview-caption{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .preview-viewport{margin:0 -2px}
  .notice-preview{min-width:900px}
}
@media(prefers-reduced-motion:reduce){.preview-day{transition:none}}
@media print{
  .preview-wrap{width:100%;padding:0;background:#fff;overflow:visible}
  .preview-viewport{overflow:visible}
  .notice-preview{width:100%;min-width:0;box-shadow:none;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .preview-day{box-shadow:none!important}
  @page{size:A4 landscape;margin:8mm}
}

/* 电脑端同步查看日期状态与通知；窄屏保持上下排列。 */
@media (min-width:1200px){
  #noticePanel .section-title,
  #noticePanel .notice-layout{
    position:relative;left:50%;transform:translateX(-50%);
    width:min(1800px,calc(100vw - 32px));
  }
  #noticePanel .notice-layout{
    grid-template-columns:clamp(350px,29vw,420px) minmax(0,1fr);
    gap:18px;
  }
  #noticePanel .notice-day-header{grid-template-columns:minmax(0,1fr) auto 44px;gap:7px}
  #noticePanel .days-head,#noticePanel .preview-caption{flex-wrap:wrap}
}
@media print{
  #noticePanel .section-title{position:static;width:100%;transform:none}
  #noticePanel .notice-layout{position:static;width:100%;transform:none;display:block}
  .notice-copy-settings,.notice-preview-actions,#exportMessage{display:none!important}
}

/* 通知文案与球馆信息靠近预览和导出操作。 */
.notice-copy-settings{margin-top:18px;padding:20px 22px;border:1px solid #cfd9df;border-radius:15px;background:#fff}
.notice-copy-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:7px 18px;margin-bottom:5px}
.notice-copy-head h3{font-size:18px;color:#263743}
.notice-copy-head p{margin:0;color:#687a86;font-size:11px}
.notice-copy-settings label{display:grid;gap:7px;margin-top:15px;color:#35434e;font-size:12px;font-weight:800}
.notice-copy-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:11px;color:#6c7a83;font-size:11px}
.notice-contact-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:3px}
.notice-contact-fields label{min-width:0}
.notice-contact-fields input{min-width:0}
.notice-qr-hint{margin:14px 0 0;color:#647680;font-size:11px;line-height:1.55}
.preview-contact{margin-top:18px;padding-top:14px;border-top:1px solid #d7d9d6}
.preview-contact h4{margin:0 0 10px;color:#a43029;font-size:clamp(11px,1.08vw,15px);font-weight:950}
.preview-contact-content{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}
.preview-contact-info{display:grid;gap:9px;min-width:0}
.preview-contact-info p{margin:0;min-width:0;line-height:1.3}
.preview-contact-info span,.preview-contact-info strong{display:block;overflow-wrap:anywhere}
.preview-contact-info span{color:#68737a;font-size:clamp(9px,.8vw,12px);font-weight:800}
.preview-contact-info strong{margin-top:2px;color:#262d31;font-size:clamp(10px,1vw,14px);font-weight:900}
.preview-contact-qr{width:clamp(90px,11cqw,175px);min-width:0;text-align:center}
.preview-contact-qr-crop{position:relative;width:100%;aspect-ratio:1;overflow:hidden;border:3px solid #fff;border-radius:7px;background:#fff;box-shadow:0 0 0 1px #d8dad7}
.preview-contact-qr-crop img{position:absolute;left:-10.99%;top:-34.07%;display:block;width:121.98%;height:auto;max-width:none}
.preview-contact-qr small{display:block;margin-top:5px;color:#3f4a50;font-size:clamp(7px,.75cqw,10px);font-weight:800;line-height:1.15;letter-spacing:-.03em;white-space:nowrap}
@media(max-width:700px){.notice-copy-settings{padding:17px}.notice-contact-fields{grid-template-columns:1fr;gap:0}}
