.hpp-is-textbook .hpp-main{grid-template-columns:1fr}
.hpp-is-textbook .hpp-stage{padding:28px;border-right:0}
.hpp-textbook{max-width:1040px;margin:0 auto}
.hpp-textbook-head{padding:24px;border:1px solid #fecaca;border-radius:16px;background:linear-gradient(135deg,#fff 52%,#fff7f7)}
.hpp-textbook-head h3{margin:5px 0 7px;color:#0f172a;font-size:27px;line-height:1.35}
.hpp-textbook-head p{max-width:850px;margin:0;color:#64748b;font-size:14px;line-height:1.65}
.hpp-textbook-section{margin-top:18px;padding:21px;border:1px solid var(--hpp-line);border-radius:15px;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.035)}
.hpp-textbook-section-title{display:flex;align-items:baseline;gap:10px;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #fee2e2}
.hpp-textbook-section-title span{color:var(--hpp-accent);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}
.hpp-textbook-section-title h3{margin:0;color:#0f172a;font-family:"Noto Serif SC","Songti SC",serif;font-size:21px}
.hpp-textbook-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hpp-textbook-person{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:13px;border:1px solid #fee2e2;border-radius:11px;background:#fffafa}
.hpp-textbook-person strong{grid-row:1/4;font-family:"Noto Serif SC","Songti SC",serif;font-size:30px;font-weight:600;color:#0f172a}
.hpp-textbook-person b{color:var(--hpp-accent);font-size:12px}
.hpp-textbook-person span{color:#334155;font-size:13px;font-weight:700}
.hpp-textbook-person small{color:#94a3b8;font-size:10px}
.hpp-textbook-address-note{margin:12px 0 0;padding:10px 12px;border-left:3px solid #f59e0b;border-radius:7px;background:#fffbeb;color:#78716c;font-size:12px;line-height:1.6}
.hpp-dialogue{max-width:900px;margin:0 auto}
.hpp-dialogue-turn{margin:0 0 22px;padding:0}
.hpp-dialogue-turn:last-child{margin-bottom:0}
.hpp-dialogue-turn p{margin:0;line-height:1.7}
.hpp-dialogue-turn p+p{margin-top:1px}
.hpp-dialogue-han{font-family:"Noto Serif SC","Songti SC",serif;font-size:19px;color:#0f172a}
.hpp-dialogue-han b{color:#0f172a}
.hpp-dialogue-pinyin{color:var(--hpp-accent);font-size:13px}
.hpp-dialogue-vi{color:#475569;font-size:13px}
.hpp-dialogue-pinyin b,.hpp-dialogue-vi b{color:#334155}
.hpp-textbook-table-wrap{overflow:auto;border:1px solid var(--hpp-line);border-radius:11px}
.hpp-textbook-vocabulary{width:100%;border-collapse:collapse;table-layout:fixed}
.hpp-textbook-vocabulary th{padding:11px 10px;background:#fff7f7;color:#64748b;font-size:10px;text-align:left;text-transform:uppercase}
.hpp-textbook-vocabulary th:first-child{width:55px;text-align:center}
.hpp-textbook-vocabulary th:nth-child(2){width:18%}
.hpp-textbook-vocabulary th:nth-child(3){width:19%}
.hpp-textbook-vocabulary th:nth-child(4){width:18%}
.hpp-textbook-vocabulary td{padding:10px;border-top:1px solid #eef2f7;color:#475569;font-size:12px;line-height:1.5}
.hpp-textbook-vocabulary td:first-child{text-align:center;color:#94a3b8}
.hpp-textbook-vocabulary td strong{font-family:"Noto Serif SC","Songti SC",serif;font-size:21px;color:#0f172a}
.hpp-textbook-vocabulary td b{color:var(--hpp-accent);font-weight:650}
.hpp-textbook-reference-list{display:grid;gap:18px}
.hpp-textbook-reference-block{padding:15px;border:1px solid #fee2e2;border-radius:12px;background:#fffdfd}
.hpp-textbook-reference-block>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px}
.hpp-textbook-reference-block>header h4{margin:0;color:#0f172a;font-size:17px}
.hpp-textbook-reference-block>header b{color:var(--hpp-accent);font-family:"Noto Serif SC","Songti SC",serif;font-size:17px}
.hpp-textbook-reference-block>p{margin:0 0 12px;color:#64748b;font-size:12px;line-height:1.65}
.hpp-textbook-reference th:first-child{width:auto;text-align:left}
.hpp-textbook-reference th:nth-child(2),.hpp-textbook-reference th:nth-child(3),.hpp-textbook-reference th:nth-child(4){width:auto}
.hpp-textbook-reference td:first-child{text-align:left;color:#475569}
.hpp-textbook-reference td{font-size:13px}
.hpp-textbook-grammar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hpp-textbook-grammar-card{overflow:hidden;border:1px solid var(--hpp-line);border-radius:12px;background:#fff}
.hpp-textbook-grammar-card>header{display:flex;gap:10px;align-items:flex-start;padding:13px;background:#fff7f7}
.hpp-textbook-grammar-card>header>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--hpp-accent);color:#fff;font-size:10px;font-weight:800}
.hpp-textbook-grammar-card h4{margin:0 0 4px;color:#0f172a;font-size:15px}
.hpp-textbook-grammar-card code{color:#be123c;font-family:inherit;font-size:11px}
.hpp-textbook-grammar-card>p{margin:0;padding:13px;color:#475569;font-size:12px;line-height:1.65}
.hpp-textbook-grammar-card>p.hpp-grammar-detail{padding-top:0;color:#334155}
.hpp-textbook-grammar-card>p.hpp-grammar-warning{margin:0 13px 13px;padding:9px 10px;border-left:3px solid #f59e0b;background:#fffbeb;color:#92400e}
.hpp-textbook-grammar-card>p b{color:#0f172a}
.hpp-reference-han{display:block;font-family:"Noto Serif SC","Songti SC",serif;font-size:15px;color:#0f172a}
.hpp-reference-pinyin{display:block;margin-top:3px;color:var(--hpp-accent);font-size:11px;font-weight:600;line-height:1.45}
.hpp-textbook-grammar-card ul{margin:0;padding:0 13px 13px;list-style:none}
.hpp-textbook-grammar-card li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:9px 0;border-top:1px dashed #e2e8f0}
.hpp-textbook-grammar-card li strong{font-family:"Noto Serif SC","Songti SC",serif;font-size:17px;color:#0f172a}
.hpp-textbook-grammar-card li b{color:var(--hpp-accent);font-size:11px;font-weight:600}
.hpp-textbook-grammar-card li span{grid-column:1/-1;color:#64748b;font-size:11px}
.hpp-textbook-patterns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hpp-textbook-pattern{display:grid;grid-template-columns:28px 1fr;gap:9px;padding:11px;border:1px solid var(--hpp-line);border-radius:10px;background:#fff}
.hpp-textbook-pattern>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff1f2;color:#be123c;font-size:10px;font-weight:800}
.hpp-textbook-pattern strong{display:block;font-family:"Noto Serif SC","Songti SC",serif;font-size:18px;color:#0f172a}
.hpp-textbook-pattern b{display:block;color:var(--hpp-accent);font-size:11px;font-weight:600}
.hpp-textbook-pattern p{margin:3px 0 0;color:#64748b;font-size:11px}
.hpp-textbook-empty{padding:35px;border:1px solid #fecaca;border-radius:15px;background:#fff7f7;text-align:center}
.hpp-textbook-empty h3{margin:6px 0;color:#0f172a;font-size:22px}
.hpp-textbook-empty p{max-width:600px;margin:0 auto;color:#64748b;line-height:1.65}
@container hpp (min-width:1000px){.hpp-tabs{grid-template-columns:repeat(12,minmax(0,1fr))}}
@container hpp (max-width:760px){.hpp-is-textbook .hpp-stage{padding:14px}.hpp-textbook-head,.hpp-textbook-section{padding:16px}.hpp-textbook-head h3{font-size:22px}.hpp-textbook-people{grid-template-columns:1fr}.hpp-textbook-grammar,.hpp-textbook-patterns{grid-template-columns:1fr}}
@container hpp (max-width:560px){.hpp-textbook-section-title{display:block}.hpp-textbook-section-title h3{margin-top:3px}.hpp-dialogue-han{font-size:17px}.hpp-textbook-table-wrap{overflow:visible;border:0}.hpp-textbook-vocabulary,.hpp-textbook-vocabulary tbody{display:block}.hpp-textbook-vocabulary thead{display:none}.hpp-textbook-vocabulary tr{display:block;margin-bottom:9px;padding:5px 11px;border:1px solid var(--hpp-line);border-radius:10px}.hpp-textbook-vocabulary td{display:grid;grid-template-columns:90px 1fr;gap:8px;padding:7px 0;border-top:1px dashed #e2e8f0;text-align:left!important}.hpp-textbook-vocabulary td:first-child{border-top:0}.hpp-textbook-vocabulary td:before{content:attr(data-label);color:#94a3b8;font-size:9px;font-weight:800;text-transform:uppercase}}
