.phonetic-learning { height:100dvh; display:flex; flex-direction:column; overflow:hidden; color:var(--ink); background:var(--canvas); font-family:var(--font-sans); letter-spacing:0; }
.phonetic-learning[hidden] { display:none; }
.phonetic-learning * { box-sizing:border-box; letter-spacing:0; }
.phonetic-learning button { font:inherit; cursor:pointer; }
.phonetic-learning button:disabled { cursor:default; opacity:.45; }
.phonetic-learning button:focus-visible { outline:3px solid #0878ee; outline-offset:4px; }
.ph-header { position:relative; flex-shrink:0; display:flex; align-items:center; justify-content:center; min-height:92px; padding:18px 80px; }
.ph-header h1 { margin:0; font-weight:700; font-size:30px; color:#0a74ed; }
.ph-header h1 span { color:#020304; }
.ph-back { position:absolute; left:24px; top:22px; width:48px; height:48px; display:grid; place-items:center; padding:0; border:0; background:transparent; color:#0a74ed; }
.ph-back svg { width:40px; height:40px; }
.ph-content { flex:1; min-height:0; margin:0 36px 32px; padding:30px 46px; background:white; overflow:auto; }
.ph-categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px 28px; max-width:1000px; margin:0 auto; padding:0 16px 34px; }
.ph-category { width:100%; max-width:200px; aspect-ratio:4/3; padding:2px; justify-self:center; border:3px solid transparent; border-radius:8px; background:transparent; }
.ph-category.ph-active { border-color:#0a74ed; }
.ph-category img { display:block; width:100%; height:100%; object-fit:contain; }
.ph-items-region { max-width:1200px; margin:0 auto; }
.ph-items { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:28px 48px; }
.ph-item { width:100%; aspect-ratio:130/79; border:0; padding:10px; color:#111; background:transparent url('/assets/original-ui/icon_yinbiao_nosel.webp') center/100% 100% no-repeat; font-family:'Segoe UI','Arial',sans-serif !important; font-size:38px !important; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; touch-action:pan-y; }
.ph-item.ph-selected { background-image:url('/assets/original-ui/icon_yinbiao_sel.webp'); color:white; }
.ph-item span { display:inline-block; max-width:100%; overflow-wrap:anywhere; }
.ph-loading,.ph-empty { text-align:center; padding:40px 0; color:#687887; }
.ph-detail-layout { display:grid; grid-template-columns:minmax(260px,376px) minmax(0,1fr); gap:64px; max-width:1440px; margin:12px auto; align-items:center; }
.ph-symbol-card { position:relative; width:100%; aspect-ratio:295/372; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:42px; padding:20px; border:0; background:transparent url('/assets/original-ui/icon_yb_detial_bg.webp') center/100% 100% no-repeat; color:white; }
.ph-symbol-card span { font-family:'Segoe UI','Arial',sans-serif; font-size:92px; line-height:1.2; overflow-wrap:anywhere; max-width:100%; }
.ph-symbol-card svg { width:42px; height:36px; }
.ph-instruction { min-width:0; }
.ph-technique { display:inline-flex; align-items:center; gap:16px; padding:0; min-height:48px; border:0; background:transparent; color:#0a74ed; font-size:28px !important; }
.ph-technique svg { width:36px; height:36px; }
.ph-technique-text { font-size:23px; line-height:1.8; margin:26px 0 38px 52px; white-space:pre-line; overflow-wrap:anywhere; color:#101820; }
.ph-diagrams { display:grid; grid-template-columns:1fr 1fr; gap:32px; border-top:2px solid #ddd; padding-top:36px; }
.ph-diagram { margin:0; min-width:0; }
.ph-diagram figcaption { font-size:22px; color:#0a74ed; margin-bottom:18px; }
.ph-image { display:flex; align-items:center; justify-content:center; padding:6px; background:#e8f3fe; aspect-ratio:124/95; max-width:248px; border-radius:8px; overflow:hidden; }
.ph-image img { width:100%; height:100%; object-fit:contain; }
.ph-image p { margin:0; color:#687887; font-size:16px; }
.ph-image [role='alert'] { text-align:center; font-size:16px; }
.ph-image button { display:flex; margin:12px auto 0; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid #a8cfe8; border-radius:6px; color:#0869bc; background:white; }
.ph-status { flex-shrink:0; align-self:center; margin:0 20px 12px; padding:8px 18px; border-radius:6px; background:#a3322d; color:white; max-width:calc(100% - 40px); overflow-wrap:anywhere; }
.ph-status[hidden] { display:none; }
.ph-error { text-align:center; padding:60px 16px; }
.ph-error button { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 18px; border:1px solid #a6cceb; border-radius:6px; background:#e8f3fe; color:#145e99; }
@media(min-width:1700px) { .ph-header { min-height:112px; } .ph-content { padding:36px 60px; } .ph-categories { max-width:1160px; } .ph-category { max-width:230px; } .ph-items-region { max-width:1460px; } .ph-item { font-size:46px !important; } .ph-detail-layout { grid-template-columns:460px minmax(0,1fr); gap:90px; } .ph-symbol-card span { font-size:100px; } .ph-technique-text { font-size:26px; } }
@media(max-width:1100px) { .ph-content { margin:0 24px 24px; padding:24px; } .ph-categories { gap:16px 20px; padding:0 24px 28px; } .ph-items { gap:24px; } .ph-detail-layout { grid-template-columns:minmax(210px,30%) minmax(0,1fr); gap:32px; } .ph-technique-text { font-size:20px; margin:22px 0 28px; } .ph-symbol-card span { font-size:68px; } .ph-diagrams { gap:20px; padding-top:24px; } }
@media(max-width:650px) { .ph-header { min-height:74px; padding:16px 64px; } .ph-header h1 { font-size:26px; } .ph-back { left:14px; top:15px; width:44px; height:44px; } .ph-back svg { width:32px; height:32px; } .ph-content { margin:0 12px 12px; padding:18px 14px; } .ph-categories { gap:12px; padding:0 0 24px; grid-template-columns:repeat(4,minmax(0,1fr)); } .ph-category { border-width:2px; padding:1px; min-height:42px; } .ph-items { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 14px; } .ph-item { font-size:30px !important; } .ph-detail-layout { display:block; margin:0; } .ph-symbol-card { width:190px; margin:0 auto 28px; gap:24px; } .ph-symbol-card span { font-size:60px; } .ph-symbol-card svg { width:32px; height:28px; } .ph-technique { font-size:23px !important; gap:12px; } .ph-technique svg { width:28px; height:28px; } .ph-technique-text { font-size:18px; margin:16px 0 24px; } .ph-diagram figcaption { font-size:18px; margin-bottom:12px; } .ph-diagrams { gap:16px; } }
@media(max-height:580px) and (min-width:651px) { .ph-header { min-height:66px; } .ph-back { top:10px; } .ph-content { padding:18px 24px; margin-bottom:16px; } .ph-category { max-width:130px; } .ph-items-region { max-width:800px; } .ph-item { font-size:30px !important; } .ph-detail-layout { align-items:start; } .ph-symbol-card { max-width:240px; } }

/* ===== 重做：黏土卡片风（音源/图片源保留） ===== */
.ph-content{background:transparent;padding:24px 32px}
.ph-categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1100px}
.ph-category{display:flex;align-items:center;gap:12px;max-width:none;aspect-ratio:auto;padding:14px 16px;border:1px solid #eaf3f4;border-radius:18px;background:#fff;box-shadow:0 6px 16px #1736500d;text-align:left}
.ph-category.ph-active{border-color:#0bb4c4;background:#e2f6f8}
.ph-avatar{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-weight:800;color:#fff;flex-shrink:0;font-size:18px}
.ph-avatar[data-tone=long]{background:#0bb4c4}
.ph-avatar[data-tone=short]{background:#ff9f43}
.ph-avatar[data-tone=diphthong]{background:#58b368}
.ph-avatar[data-tone=voiceless]{background:#6c8fb3}
.ph-avatar[data-tone=voiced]{background:#e8739a}
.ph-avatar[data-tone=nasal]{background:#8f9fb3}
.ph-avatar[data-tone=similar]{background:#b08968}
.ph-avatar[data-tone=semi]{background:#4fc3a1}
.ph-cat-name{font-weight:600;color:#254450}
.ph-cat-count{margin-left:auto;font-size:12px;color:#7c9aa4;background:#f2f7f8;border-radius:999px;padding:3px 10px}
.ph-items{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.ph-item{aspect-ratio:auto;min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid #eaf3f4;border-radius:20px;background:#fff;background-image:none;box-shadow:0 6px 16px #1736500d;font-size:26px !important;color:#254450}
.ph-item.ph-selected{background:#e2f6f8;border-color:#0bb4c4;color:#0b8fa0}
.ph-item-glyph{font-size:26px}
.ph-item-play{color:#7c9aa4}
.ph-item-play svg{width:20px;height:20px}
.ph-detail-layout{gap:32px}
.ph-symbol-card{background:#fff;border-radius:26px;box-shadow:0 12px 30px #17365014;color:#254450;aspect-ratio:auto;min-height:280px}
.ph-symbol-card span{font-size:56px;color:#0b8fa0}
.ph-symbol-card svg{color:#0b8fa0}
.ph-diagram{background:#fff;border-radius:18px;padding:16px;box-shadow:0 6px 16px #1736500d}
@media(max-width:650px){
  .ph-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ph-items{grid-template-columns:repeat(3,minmax(0,1fr))}
}
