:root { --ink: #17201f; --muted: #66736f; --line: #d9e1dc; --panel: rgba(255, 255, 255, 0.88); --panel-strong: #f8fbf8; --teal: #007d74; --teal-dark: #07534f; --mint: #b8e8dd; --coral: #e7604d; --amber: #d49b28; --blue: #2f6fb1; --shadow: 0 22px 70px rgba(18, 45, 41, 0.16); --rx: -18deg; --ry: 24deg; --rz: 0deg; --zoom: 1; } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "Microsoft YaHei UI", "Noto Sans CJK SC", "Segoe UI", sans-serif; background: linear-gradient(120deg, rgba(0, 125, 116, 0.08), transparent 34%), linear-gradient(240deg, rgba(231, 96, 77, 0.09), transparent 30%), repeating-linear-gradient(90deg, rgba(23, 32, 31, 0.035) 0 1px, transparent 1px 82px), #edf2ee; } button, input { font: inherit; } button { cursor: pointer; } .app-shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 32px; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; margin-bottom: 18px; } .eyebrow { margin: 0 0 7px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 0; } h1, h2 { margin: 0; font-family: "Microsoft JhengHei UI", "Microsoft YaHei UI", sans-serif; letter-spacing: 0; } h1 { font-size: clamp(28px, 4vw, 54px); line-height: 1.05; } h2 { font-size: 25px; } .status-strip { display: flex; align-items: center; gap: 12px; min-width: 330px; padding: 14px 16px; border: 1px solid rgba(0, 125, 116, 0.2); border-radius: 8px; background: rgba(255, 255, 255, 0.72); box-shadow: 0 10px 36px rgba(18, 45, 41, 0.08); color: var(--muted); } .status-strip strong { color: var(--teal-dark); } .pulse { width: 10px; height: 10px; border-radius: 50%; background: #00a87d; box-shadow: 0 0 0 8px rgba(0, 168, 125, 0.12); } .workbench { display: grid; grid-template-columns: minmax(360px, 0.86fr) minmax(620px, 1.45fr); gap: 18px; } .panel { min-width: 0; border: 1px solid rgba(23, 32, 31, 0.1); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; } .panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 22px 16px; border-bottom: 1px solid rgba(23, 32, 31, 0.08); } .terminal-badge, .score-pill { flex: 0 0 auto; border-radius: 8px; border: 1px solid rgba(0, 125, 116, 0.16); background: #eef8f5; color: var(--teal-dark); } .terminal-badge { padding: 9px 11px; font-weight: 800; } .score-pill { display: grid; gap: 2px; min-width: 112px; padding: 9px 12px; text-align: right; } .score-pill span { color: var(--muted); font-size: 12px; } .score-pill strong { font-size: 26px; line-height: 1; } .scanner-panel { display: flex; flex-direction: column; } .scan-hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 14px; padding: 18px 18px 12px; } .scan-window { position: relative; min-height: 270px; border-radius: 8px; border: 1px solid #cbd8d2; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(218, 232, 226, 0.9)), repeating-linear-gradient(0deg, transparent 0 24px, rgba(0, 125, 116, 0.05) 24px 25px); } .scanner-rail { position: absolute; left: 11%; right: 11%; top: 34px; height: 9px; border-radius: 99px; background: linear-gradient(90deg, #17201f, #59716c 52%, #17201f); } .scanner-head { position: absolute; left: 50%; top: 48px; width: 86px; height: 52px; border-radius: 8px; transform: translateX(-50%); background: linear-gradient(145deg, #1d2d2a, #3f5c56); box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18); animation: scanHead 3.8s ease-in-out infinite; } .scanner-head span { position: absolute; left: 50%; bottom: -12px; width: 32px; height: 18px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: var(--teal); } .scan-beam { position: absolute; left: 50%; top: 102px; width: 170px; height: 150px; transform: translateX(-50%); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(37, 206, 184, 0.44), rgba(37, 206, 184, 0.03)); mix-blend-mode: multiply; animation: beam 1.6s ease-in-out infinite alternate; } .turntable { position: absolute; left: 50%; bottom: 26px; width: 210px; height: 112px; transform: translateX(-50%); } .plaster-base { position: absolute; inset: 50px 0 0; border-radius: 50%; background: radial-gradient(ellipse at center, #ffffff 0 36%, #d8e0db 64%, #aebdb8 100%); box-shadow: 0 20px 30px rgba(15, 37, 34, 0.18); } .mini-arch { position: absolute; left: 50%; top: 0; width: 150px; height: 88px; transform: translateX(-50%) rotateX(62deg); transform-style: preserve-3d; } .mini-arch i { position: absolute; width: 23px; height: 42px; border-radius: 50% 50% 42% 42%; background: linear-gradient(145deg, #fff, #cdd8d2); box-shadow: inset -5px -7px 10px rgba(72, 88, 84, 0.18); } .mini-arch i:nth-child(1) { left: 5px; top: 44px; transform: rotate(-34deg); } .mini-arch i:nth-child(2) { left: 25px; top: 23px; transform: rotate(-22deg); } .mini-arch i:nth-child(3) { left: 55px; top: 11px; transform: rotate(-8deg); } .mini-arch i:nth-child(4) { left: 88px; top: 11px; transform: rotate(8deg); } .mini-arch i:nth-child(5) { left: 118px; top: 23px; transform: rotate(22deg); } .mini-arch i:nth-child(6) { left: 138px; top: 44px; transform: rotate(34deg); } .mini-arch i:nth-child(7) { left: 71px; top: 38px; width: 19px; height: 34px; } .scan-readout { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 18px; border-radius: 8px; color: #eaf8f4; background: linear-gradient(145deg, rgba(7, 83, 79, 0.98), rgba(23, 32, 31, 0.95)), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px); } .readout-main { display: flex; align-items: flex-end; gap: 6px; font-family: "Consolas", "Microsoft YaHei UI", monospace; } .readout-main span { font-size: clamp(58px, 8vw, 106px); line-height: 0.92; } .readout-main small { padding-bottom: 9px; font-size: 22px; color: #a9d6cc; } .scan-readout p { margin: 8px 0 18px; color: #bde7de; } .progress-track { height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.16); } .progress-track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #ffffff); transition: width 0.35s ease; } .readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; } .readout-grid div { padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); } .readout-grid span, .readout-grid small { display: block; } .readout-grid span { font-size: 24px; font-weight: 800; } .readout-grid small { color: #add9d0; margin-top: 3px; } .scan-speed-control { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; margin-top: 12px; padding: 8px 10px 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #bde7de; font-weight: 800; } .scan-speed-control select { min-width: 82px; min-height: 30px; border: 1px solid rgba(189, 231, 222, 0.42); border-radius: 6px; color: #073f3c; background: #eaf8f4; font-weight: 900; } .scan-speed-control span { white-space: nowrap; } .speed-tooltip { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 8px 10px; border-radius: 6px; color: #17312e; background: #fff; box-shadow: 0 12px 30px rgba(15, 37, 34, 0.18); font-style: normal; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 0.16s ease, transform 0.16s ease; } .speed-tooltip::after { content: ""; position: absolute; right: 22px; top: 100%; border: 7px solid transparent; border-top-color: #fff; } .scan-speed-control:hover .speed-tooltip, .scan-speed-control:focus-within .speed-tooltip { opacity: 1; transform: translateY(0); } .control-row, .segmented, .file-zone, .queue { margin-inline: 18px; } .control-row { display: flex; gap: 10px; margin-top: 4px; } .primary-btn, .ghost-btn, .angle-btn, .segment { min-height: 42px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; } .primary-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; background: linear-gradient(135deg, var(--teal), #0f5f77); box-shadow: 0 12px 24px rgba(0, 125, 116, 0.22); } .icon { font-size: 15px; } .ghost-btn { color: var(--teal-dark); background: #fff; border-color: var(--line); } .icon-btn { width: 48px; font-size: 23px; } .segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #eef3ef; } .segment { padding: 0 8px; color: var(--muted); background: transparent; } .segment.active { color: white; background: var(--teal-dark); } .file-zone { display: grid; gap: 6px; margin-top: 14px; padding: 14px; border: 1px dashed rgba(0, 125, 116, 0.45); border-radius: 8px; background: rgba(255, 255, 255, 0.7); cursor: pointer; } .progress-zone { cursor: default; } .file-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; } .file-zone span { color: var(--muted); } .file-zone strong { color: var(--teal-dark); } .file-zone small { color: var(--muted); } .queue { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 14px; margin-bottom: 18px; } .queue span { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; background: #dce7e2; border: 1px solid rgba(23, 32, 31, 0.06); overflow: hidden; } .queue span.done { background: linear-gradient(145deg, #ffffff, var(--mint)); border-color: rgba(0, 125, 116, 0.42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); } .queue span.done::before { content: ""; width: 54%; height: 68%; border-radius: 46% 46% 34% 34%; background: radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.95) 0 16%, transparent 18%), linear-gradient(145deg, #fffefa, #d5e2dc 72%, #9eb3ac); box-shadow: inset -4px -6px 8px rgba(54, 88, 81, 0.18), 0 5px 10px rgba(0, 125, 116, 0.16); transform: rotate(-8deg); } .queue span.done::after { content: ""; position: absolute; width: 17%; height: 17%; top: 28%; left: 43%; border-radius: 50%; background: rgba(77, 105, 99, 0.16); } .compare-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; background: rgba(248, 251, 248, 0.76); } .angle-group { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #eef3ef; } .angle-btn { padding: 0 13px; color: var(--muted); background: transparent; } .angle-btn.active { color: white; background: #1c2c2a; } .zoom-control { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 800; } .zoom-control input { width: 132px; accent-color: var(--teal); } .switch { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: var(--muted); font-weight: 800; } .switch input { position: absolute; opacity: 0; } .switch span { position: relative; width: 48px; height: 26px; border-radius: 999px; background: #cbd8d2; transition: background 0.2s ease; } .switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; } .switch input:checked + span { background: var(--coral); } .switch input:checked + span::after { transform: translateX(22px); } .score-action { min-height: 42px; padding: 0 18px; border: 1px solid rgba(0, 125, 116, 0.22); border-radius: 8px; color: white; background: linear-gradient(135deg, var(--coral), var(--amber)); font-weight: 900; box-shadow: 0 12px 24px rgba(231, 96, 77, 0.2); } .viewer { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 18px 16px; } .model-card { min-width: 0; border: 1px solid rgba(23, 32, 31, 0.1); border-radius: 8px; background: #fff; overflow: hidden; } .card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid rgba(23, 32, 31, 0.08); } .card-title span { font-weight: 900; } .card-title small { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; } .model-space { position: relative; height: 390px; display: grid; place-items: center; perspective: 900px; overflow: hidden; background: radial-gradient(circle at 50% 58%, rgba(0, 125, 116, 0.1), transparent 42%), linear-gradient(180deg, #f7faf8, #e3ebe6); touch-action: none; } .stl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.22s ease; } .model-space.has-model .stl-canvas { opacity: 1; } .model-space.has-model { background: radial-gradient(circle at 50% 56%, rgba(0, 125, 116, 0.18), transparent 44%), linear-gradient(180deg, #eef5f1, #d4e3dc); } .model-space.has-model .dental-object { opacity: 0; } .axis-mark { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 6px 8px; border-radius: 6px; color: #60716c; background: rgba(255, 255, 255, 0.7); font-family: "Consolas", monospace; font-size: 12px; font-weight: 800; } .dental-object { position: relative; width: 310px; height: 260px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--zoom)); transition: transform 0.28s ease; } .gum, .tooth { position: absolute; transform-style: preserve-3d; } .gum { left: 50%; top: 50%; width: 260px; height: 170px; transform: translate(-50%, -42%) rotateX(70deg); border: 18px solid rgba(214, 132, 119, 0.72); border-top-width: 24px; border-bottom-color: transparent; border-radius: 50% 50% 42% 42%; filter: drop-shadow(0 16px 22px rgba(78, 46, 43, 0.16)); } .gum::after { content: ""; position: absolute; left: 50%; top: 50%; width: 132px; height: 68px; transform: translate(-50%, -44%); border-radius: 50%; background: rgba(255, 255, 255, 0.32); } .tooth { left: 50%; top: 50%; width: var(--tw); height: var(--th); border-radius: 48% 48% 36% 36%; background: radial-gradient(circle at 34% 24%, #ffffff 0 17%, transparent 18%), linear-gradient(145deg, #fffefa, #d8e1dc 72%, #a7b6b0); box-shadow: inset -8px -11px 13px rgba(61, 81, 76, 0.14), 0 12px 18px rgba(27, 54, 50, 0.16); transform: rotateZ(var(--a)) translateY(var(--r)) rotateZ(calc(var(--a) * -1)) rotateX(16deg) translateZ(var(--z)); } .tooth::after { content: ""; position: absolute; inset: 21% 24% auto; height: 25%; border-radius: 50%; background: rgba(116, 132, 127, 0.14); } .student-object .tooth:nth-child(4), .student-object .tooth:nth-child(9), .student-object .tooth:nth-child(13) { filter: saturate(0.9); transform: rotateZ(var(--a)) translateY(calc(var(--r) + var(--dr, 0px))) rotateZ(calc(var(--a) * -1)) rotateX(16deg) rotateY(var(--tilt, 0deg)) translateZ(var(--z)); } .student-object .tooth:nth-child(4) { --dr: -8px; --tilt: 9deg; } .student-object .tooth:nth-child(9) { --dr: 7px; --tilt: -8deg; } .student-object .tooth:nth-child(13) { --dr: -5px; --tilt: 12deg; } .student-object.heat-on .tooth:nth-child(4)::before, .student-object.heat-on .tooth:nth-child(9)::before, .student-object.heat-on .tooth:nth-child(13)::before { content: ""; position: absolute; inset: -5px; border-radius: inherit; background: radial-gradient(circle, rgba(231, 96, 77, 0.82), rgba(212, 155, 40, 0.36) 46%, transparent 67%); mix-blend-mode: multiply; } .mini-file { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; width: calc(100% - 24px); min-height: 42px; margin: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal-dark); background: #f7faf8; font-weight: 800; cursor: pointer; overflow: hidden; } .model-file-input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; } .metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 18px 18px; } .metric { padding: 13px; border-radius: 8px; border: 1px solid rgba(23, 32, 31, 0.09); background: var(--panel-strong); } .metric span, .metric strong { display: block; } .metric span { color: var(--muted); font-size: 13px; } .metric strong { margin-top: 5px; font-size: 22px; } .score-report { margin: 0 18px 18px; border: 1px solid rgba(23, 32, 31, 0.09); border-radius: 8px; overflow: hidden; background: #fff; } .report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid rgba(23, 32, 31, 0.08); background: #f7faf8; } .report-head h3 { margin: 0; font-size: 22px; } .report-head strong { min-width: 96px; padding: 10px 12px; border-radius: 8px; color: var(--teal-dark); background: #eef8f5; text-align: center; font-size: 28px; } .report-actions { display: flex; align-items: center; gap: 10px; } .score-table-wrap { max-height: 520px; overflow: auto; } .score-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; } .score-table th, .score-table td { padding: 12px 14px; border-bottom: 1px solid rgba(23, 32, 31, 0.08); text-align: center; } .score-table th { position: sticky; top: 0; z-index: 1; color: #101817; background: #fff; font-weight: 900; } .score-table td { font-weight: 800; } .score-table .category { color: #101817; background: #f7faf8; font-size: 17px; } .score-table .point { text-align: left; } .score-table .total { color: var(--teal-dark); background: #f3f8f6; font-size: 18px; } .modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(23, 32, 31, 0.34); backdrop-filter: blur(5px); } .modal-backdrop[hidden], .score-report[hidden] { display: none !important; } .modal { width: min(420px, 100%); padding: 24px; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px rgba(23, 32, 31, 0.26); } .score-report-dialog { width: min(980px, calc(100vw - 36px)); max-height: calc(100vh - 44px); margin: 0; box-shadow: 0 24px 80px rgba(23, 32, 31, 0.26); } .score-report-dialog .score-table-wrap { max-height: min(620px, calc(100vh - 180px)); } .score-report-dialog .icon-btn { flex: 0 0 auto; width: 42px; min-height: 42px; font-size: 24px; line-height: 1; } .modal h3 { margin: 0 0 10px; font-size: 24px; } .modal p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; } .modal-close { width: 100%; } @keyframes scanHead { 0%, 100% { transform: translateX(-85%); } 50% { transform: translateX(-15%); } } @keyframes beam { from { opacity: 0.42; } to { opacity: 0.78; } } @media (max-width: 1120px) { .workbench { grid-template-columns: 1fr; } .model-space { height: 340px; } } @media (max-width: 760px) { .app-shell { width: min(100% - 24px, 1500px); padding-top: 16px; } .topbar, .panel-head, .scan-hero, .viewer, .metric-row { grid-template-columns: 1fr; } .topbar { display: grid; } .status-strip { min-width: 0; flex-wrap: wrap; } .panel-head { display: grid; } .scan-hero { display: grid; } .viewer { display: grid; } .metric-row { display: grid; } .compare-toolbar { align-items: stretch; } .angle-group, .zoom-control, .switch, .score-action { width: 100%; } .angle-group { display: grid; grid-template-columns: repeat(4, 1fr); } .angle-btn { padding: 0 6px; } .segmented { grid-template-columns: 1fr; } .queue { grid-template-columns: repeat(8, 1fr); } .dental-object { width: 260px; height: 230px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }