/* Foundation and six existing appearances. */
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; }
button,input,select,textarea { font:inherit; }
button,a,summary,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.4; }
[hidden] { display:none!important; }
#eteste-design {
  --page:#f3f4ef; --paper:#fffefa; --surface:#ecefe7; --ink:#242b26;
  --secondary:#5d675f; --muted:#667166; --line:#d4dacf; --soft-line:#e5e9df; --control-line:#879181;
  --accent:#355a43; --accent-ink:#fffefa; --accent-soft:#e8eee3;
  --warning:#9a502b; --warning-soft:#fae9dd; --addition:#d9e9ce; --deletion:#f4dcd2;
  --tone-light:var(--paper);
  --tone-summary:color-mix(in oklab,var(--surface) 80%,var(--tone-light));
  --tone-low:color-mix(in oklab,var(--surface) 60%,var(--tone-light));
  --tone-mid:color-mix(in oklab,var(--surface) 40%,var(--tone-light));
  --tone-high:color-mix(in oklab,var(--surface) 20%,var(--tone-light));
  --ui-font:14px; --help-title:14px; --reading-size:18px; --editor-leading:1.95;
  --gutter:48px; --shadow:0 8px 24px #2030250a;
  min-height:100svh; background:var(--page); color:var(--ink); color-scheme:light;
  font:var(--ui-font)/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}
#eteste-design[data-theme="ink"] {
  --tone-light:color-mix(in oklab,var(--surface) 88%,var(--ink));
  --page:#1b201d; --paper:#252c27; --surface:#2d352f; --ink:#e7ebdf;
  --secondary:#bac4b6; --muted:#bac4b6; --line:#485346; --soft-line:#394337; --control-line:#7c8a74;
  --accent:#b5d39f; --accent-ink:#1b2b1a; --accent-soft:#303e2c;
  --warning:#ffc098; --warning-soft:#4f3527; --addition:#3f5934; --deletion:#5c3a31; color-scheme:dark;
}
#eteste-design[data-theme="green"] {
  --page:#edf2e7; --paper:#f7fbf2; --surface:#e1e9d8; --ink:#263b2c;
  --secondary:#4e6652; --muted:#4e6652; --line:#c6d5be; --soft-line:#dde6d5; --control-line:#788f70;
  --accent:#315e3d; --accent-ink:#f7fbf2; --accent-soft:#dfead8;
}
#eteste-design[data-theme="contrast-yellow"] {
  --page:#000; --paper:#000; --surface:#171700; --ink:#ffed58;
  --secondary:#ffed58; --muted:#ffed58; --line:#ffed58; --soft-line:#a89d40; --control-line:#ffed58;
  --accent:#ffed58; --accent-ink:#000; --accent-soft:#262400;
  --warning:#fff; --warning-soft:#351c00; --addition:#153d15; --deletion:#542900; color-scheme:dark;
}
#eteste-design[data-theme="contrast-blue"] {
  --page:#07172e; --paper:#091e3a; --surface:#15314d; --ink:#ffeb8b;
  --secondary:#f9e69d; --muted:#f9e69d; --line:#8bdcff; --soft-line:#8bbace; --control-line:#8bdcff;
  --accent:#90e6ff; --accent-ink:#07182b; --accent-soft:#133a54;
  --warning:#ffe4a1; --warning-soft:#3c3015; --addition:#124838; --deletion:#542d40; color-scheme:dark;
}
#eteste-design[data-theme^="contrast"] { --tone-summary:var(--page); --tone-low:var(--page); --tone-mid:var(--page); --tone-high:var(--page); }
#eteste-design :is(h1,h2,h3,h4,p,dl,dd) { margin:0; }
#eteste-design a { color:inherit; text-decoration:none; }
#eteste-design button { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0; border-radius:5px; background:transparent; color:inherit; }
#eteste-design :is(button,a,input,select,textarea,summary) { touch-action:manipulation; }
#eteste-design :is(button,a,summary,select,input):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
#eteste-design svg { flex-shrink:0; }
#eteste-design .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
#eteste-design .skip-link { position:fixed; top:-120px; left:20px; z-index:100; background:var(--accent); color:var(--accent-ink); padding:12px 18px; }
#eteste-design .skip-link:focus { top:12px; }
#eteste-design .mobile-copy,#eteste-design .expanded-only { display:none; }
#eteste-design :is(.icon-button,.text-button,.primary-button) { min-height:36px; padding:6px 10px; font-size:var(--ui-font); }
#eteste-design .icon-button { min-width:36px; }
#eteste-design .primary-button { background:var(--accent); color:var(--accent-ink); border:1px solid var(--accent); padding:8px 14px; }

/* Header: one aligned brand block, one set of navigation choices. */
#eteste-design .site-header { max-width:1360px; margin:auto; padding:18px var(--gutter); display:flex; align-items:center; gap:24px; position:relative; }
#eteste-design .site-header::after { content:''; position:absolute; height:1px; background:var(--soft-line); left:var(--gutter); right:var(--gutter); bottom:0; }
#eteste-design .brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
#eteste-design .brand-symbol { width:42px; height:48px; color:var(--accent); }
#eteste-design .smart-lens { stroke:#d64b33; animation:eteste-lens-pulse 8s ease-in-out infinite; }
#eteste-design[data-theme="ink"] .smart-lens { stroke:#ff8061; }
#eteste-design[data-theme^="contrast"] .smart-lens { stroke:var(--accent); animation:none; }
/* Two brief pulses, then a long breath; only the small original SVG lens animates. */
@keyframes eteste-lens-pulse { 0%,5%,10%,18%,100% { opacity:0; } 2.5%,7.5%,58% { opacity:1; } }
#eteste-design .brand-copy { display:grid; justify-items:start; text-align:left; gap:1px; }
#eteste-design .brand-heading { display:flex; align-items:baseline; gap:8px; line-height:1.3; }
#eteste-design .brand-name { font-size:21px; font-weight:650; letter-spacing:0; }
#eteste-design .brand-latin { font-size:18px; font-weight:500; letter-spacing:-.025em; }
#eteste-design .brand small { display:block; padding:0; margin:0; line-height:1.45; font-size:14px; font-weight:400; letter-spacing:0; color:var(--secondary); }
#eteste-design .brand-e { color:var(--accent); font-weight:650; }
#eteste-design .brand-domain { color:var(--secondary); font-weight:400; }
#eteste-design .primary-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:8px 20px; margin-left:22px; margin-right:auto; }
#eteste-design .primary-navigation :is(button,a) { min-height:36px; white-space:nowrap; color:var(--secondary); padding:6px 0; font-size:max(15px,var(--ui-font)); }
#eteste-design .primary-navigation button[aria-pressed="true"] { color:var(--ink); font-weight:600; text-decoration:underline; text-underline-offset:9px; text-decoration-color:var(--accent); }
#eteste-design .pinyin-navigation { display:inline-flex; align-items:center; gap:3px; }
#eteste-design .navigation-select { display:none; }
#eteste-design .header-actions { display:flex; align-items:center; gap:12px; }
#eteste-design .language-control { display:flex; align-items:center; gap:4px; }
#eteste-design .language-control select { min-height:36px; width:52px; border:0; background:transparent; color:var(--ink); font-size:var(--ui-font); }
#eteste-design .account-button { white-space:nowrap; border:1px solid var(--line); background:var(--paper); padding:7px 10px; min-height:36px; }
#eteste-design .assistance-toggle { min-height:36px; padding:6px; white-space:nowrap; color:var(--secondary); }
#eteste-design .assistance-toggle[aria-expanded="true"] { color:var(--accent); }
#eteste-design .assistance-toggle[aria-expanded="true"]>svg:last-child { transform:rotate(180deg); }

#eteste-design .header-support { display:flex; align-items:center; gap:6px; }
#eteste-design .help-shortcut { display:inline-flex; align-items:center; justify-content:center; width:32px; min-height:36px; color:var(--secondary); border-radius:5px; }
#eteste-design .help-shortcut:hover { background:var(--surface); color:var(--accent); }


#eteste-design .site-footer { max-width:1360px; margin:25px auto 0; padding:0 var(--gutter) 24px; color:var(--secondary); font-size:var(--ui-font); }
#eteste-design .footer-links { display:flex; align-items:center; flex-wrap:wrap; gap:2px 16px; border-top:1px solid var(--soft-line); padding-top:15px; }
#eteste-design .footer-links>p { margin-right:auto; }
#eteste-design .footer-links b { color:var(--ink); font-weight:500; margin-right:8px; }
#eteste-design .footer-links :is(a,button) { display:inline-flex; align-items:center; min-height:32px; padding:4px 0; white-space:nowrap; }
#eteste-design .footer-legal { display:flex; align-items:center; flex-wrap:wrap; gap:4px 18px; min-height:33px; margin-top:3px; }
#eteste-design .copyright { padding:0; text-align:left; }
#eteste-design .footer-meta { margin-left:auto; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px 20px; }
#eteste-design .footer-icp { color:var(--secondary); }
#eteste-design .made-with { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
#eteste-design .footer-legal :is(a,button) { min-height:32px; display:inline-flex; align-items:center; padding:0; }
#eteste-design .operator-details { margin-top:22px; padding-top:14px; border-top:1px solid var(--line); color:var(--secondary); }
#eteste-design .contact-address,.contact-topics { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; margin-top:10px; }
#eteste-design .contact-address>span { color:var(--ink); }
#eteste-design .contact-address button { color:var(--accent); min-height:36px; }

/* Standalone documents inherit the D-1 foundation, header, footer and themes. */
#eteste-design .document-theme {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 14px;
  white-space: nowrap;
}
#eteste-design .document-theme select {
  font: inherit;
  min-height: 44px;
  max-width: 130px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
}
#eteste-design .site-document {
  width: min(1160px,calc(100% - 96px));
  margin: 28px auto 44px;
  min-height: 440px;
}
#eteste-design .document-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
#eteste-design .site-document-layout {
  display: grid;
  grid-template-columns: 176px minmax(0,780px);
  gap: 40px;
}
#eteste-design .site-document-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}
#eteste-design .site-document-nav a {
  min-height: 44px;
  justify-content: start;
  text-align: left;
  padding: 8px 14px;
  border-left: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  color: var(--secondary);
}
#eteste-design .site-document-nav a[aria-current=page] {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 600;
}
#eteste-design .site-document-paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 36px;
  font-size: 16px;
  line-height: 1.9;
}
#eteste-design .site-document-paper h1 {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 26px;
}
#eteste-design .site-document-paper p {
  margin: 14px 0;
}
#eteste-design .site-document-paper a {
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
#eteste-design .site-document-paper .primary-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  text-decoration: none;
}
#eteste-design .site-document-paper .operator-details {
  font-size: 14px;
}
#eteste-design .site-document-paper .text-button {
  min-height: 44px;
  font-size: 14px;
}
#eteste-design .document-feedback {
  font-size: 14px;
  color: var(--secondary);
}
@media(max-width:900px) {
  #eteste-design.document-surface .site-header {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
  #eteste-design.document-surface .primary-navigation {
    order: 3;
    width: 100%;
    margin: 0;
  }
  #eteste-design.document-surface .brand {
    margin-right: auto;
  }
  #eteste-design .site-document {
    width: calc(100% - 48px);
  }
  #eteste-design .site-document-layout {
    gap: 24px;
    grid-template-columns: 148px 1fr;
  }
}
@media(max-width:620px) {
  #eteste-design .site-document {
    width: calc(100% - 32px);
    margin: 18px auto 28px;
  }
  #eteste-design .site-document-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  #eteste-design .site-document-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  #eteste-design .site-document-nav a {
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  #eteste-design .site-document-paper {
    padding: 22px 20px;
  }
  #eteste-design .site-document-paper h1 {
    font-size: 24px;
  }
  #eteste-design .document-theme>span {
    display: none;
  }
}

#eteste-design .site-document-nav a { display:flex; align-items:center; text-decoration:none; }
#eteste-design .document-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; margin-left:auto; }
#eteste-design .document-language { display:inline-flex; align-items:center; min-height:44px; font-size:14px; }
#eteste-design .made-with svg { width:13px; height:13px; }
#eteste-design .text-button { font-size:14px; min-height:44px; }
#eteste-design .site-document-paper .contact-topics a { display:inline-flex; align-items:center; min-height:44px; }
#eteste-design .contact-address button { color:var(--accent); }
#eteste-design .site-footer a:hover { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:900px) {
 #eteste-design .site-header { flex-wrap:wrap; gap:12px 24px; }
 #eteste-design .document-actions { margin-left:0; }
}
@media(max-width:620px) {
 #eteste-design { --gutter:16px; }
 #eteste-design .site-header { padding:12px 16px; gap:8px 18px; }
 #eteste-design .brand-symbol { width:34px; height:40px; }
 #eteste-design .brand small { display:none; }
 #eteste-design .brand-name { font-size:18px; }
 #eteste-design .brand-latin { font-size:16px; }
 #eteste-design .document-actions { width:100%; justify-content:space-between; order:4; }
 #eteste-design .footer-links>p { width:100%; }
 #eteste-design .footer-meta { justify-content:flex-end; }
 #eteste-design .footer-icp { margin-left:auto; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } #eteste-design .smart-lens { animation:none; } }
