/* AI看书王官网 — 固定 Noto Sans SC，不跟随系统字体 */

/* Latin */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/noto-sans-sc/noto-sans-sc-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/noto-sans-sc/noto-sans-sc-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/noto-sans-sc/noto-sans-sc-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 简体中文 */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-500-normal.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-600-normal.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --brand: #4d6bfe;
  --brand-deep: #4176e6;
  --text: #1e232c;
  --text-blue: #152443;
  --text-muted: rgba(0, 0, 0, 0.65);
  --bg: #f9f8f8;
  --surface: hsla(0, 0%, 100%, 0.3);
  --surface-raised: hsla(0, 0%, 100%, 0.45);
  --input-hover: hsla(0, 0%, 100%, 0.36);
  --border: rgba(0, 0, 0, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-focus: hsla(0, 0%, 100%, 0.25);
  --blur: 12px;
  --radius-card: 24px;
  --radius-pill: 100px;
  --font: "Noto Sans SC", sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ds-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: min(100% - 48px, 1140px);
  margin: 0 auto;
  padding: 8px 0 0;
}

@media (min-width: 768px) {
  .ds-header-wrapper {
    width: min(100% - 144px, 1140px);
  }
}

@media (min-width: 1560px) {
  .ds-header-wrapper {
    width: min(100% - 160px, 1280px);
  }
}

.ds-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.ds-header-bar.is-scrolled {
  background: var(--surface-raised);
  backdrop-filter: blur(var(--blur));
  border-color: var(--border);
  padding-left: 12px;
  padding-right: 12px;
}

.ds-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ds-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
}

.ds-brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.ds-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ds-btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #121c31;
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s;
}

.ds-btn-ghost::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  opacity: 0;
  z-index: -1;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.36s ease-out, opacity 0.1s;
}

.ds-btn-ghost:hover {
  border-color: hsla(20, 1%, 45%, 0.2);
}

.ds-btn-ghost:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ds-btn-ghost:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ds-locale-toggle {
  display: flex;
  align-items: center;
  height: 32px;
  margin-left: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.ds-locale-toggle-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.ds-locale-toggle-item.is-active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ds-hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(100svh, 1020px);
  overflow: hidden;
  padding-bottom: 24px;
  background: linear-gradient(180deg, #9cc1e7 0%, rgba(250, 250, 250, 0) 100%);
}

.ds-pattern-canvas,
.ds-flow-field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(#000000fc 0%, #000000e8 8.98%, transparent 100%);
}

.ds-pattern-canvas {
  z-index: 1;
}

.ds-flow-field-canvas {
  z-index: 5;
}

.ds-hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  padding: 64px 24px 0;
  gap: 40px;
}

.ds-hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ds-hero-rise {
  opacity: 0;
  transform: translateY(40px);
  animation: ds-hero-rise 1s cubic-bezier(0.44, 0, 0.56, 1) forwards;
}

.ds-hero-rise-delay {
  animation-delay: 0.1s;
}

@keyframes ds-hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ds-hero-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  color: var(--text);
  font-size: 15px;
  line-height: 160%;
  text-align: center;
  text-wrap: pretty;
  transition: color 0.2s;
}

.ds-hero-tip:hover {
  color: var(--text-blue);
}

.ds-hero-tip-icon {
  display: inline-flex;
  align-items: center;
  height: 1lh;
  margin-right: 6px;
  color: var(--brand-deep);
  flex-shrink: 0;
}

.ds-hero-tip-text {
  opacity: 0.55;
  transition: opacity 0.2s;
}

.ds-hero-tip:hover .ds-hero-tip-text {
  opacity: 1;
}

.ds-hero-tip-arrow {
  display: inline-flex;
  align-items: center;
  height: 1lh;
  margin-left: 2px;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.ds-hero-tip:hover .ds-hero-tip-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.ds-text-slogan {
  margin: 0;
  color: var(--text-blue);
  font-size: 38px;
  font-weight: 400;
  line-height: 155%;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-align: center;
  opacity: 0.92;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .ds-text-slogan {
    font-size: 42px;
  }
}

@media (min-width: 1024px) {
  .ds-text-slogan {
    font-size: 46px;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
  }
}

.ds-hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 880px;
  gap: 40px;
}

.ds-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 4px 10px 10px;
  cursor: text;
  background: var(--surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-card);
  backdrop-filter: blur(var(--blur));
  transition: background-color 0.2s, border-color 0.2s;
}

.ds-input-wrapper:hover,
.ds-input-wrapper:focus-within {
  background-color: var(--input-hover);
  border-color: var(--border-focus);
}

.ds-input-wrapper textarea {
  display: block;
  width: 100%;
  min-height: 80px;
  max-height: 300px;
  height: 80px;
  resize: none;
  border: 0;
  outline: none;
  padding: 12px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  overflow-y: auto;
}

.ds-input-wrapper textarea::placeholder {
  color: rgba(45, 55, 72, 0.7);
}

.ds-input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.ds-input-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-hero-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  user-select: none;
}

.ds-hero-toggle-btn--selected {
  background-color: rgba(65, 118, 230, 0.12);
  color: var(--brand-deep);
  border-color: rgba(65, 118, 230, 0.3);
}

.ds-hero-send-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--brand-deep);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.ds-hero-send-btn:hover {
  background: #3568d4;
}

.ds-site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 28px 32px 32px;
  color: rgba(30, 35, 44, 0.45);
  font-size: 12px;
  background: var(--bg);
}

.ds-site-footer a:hover {
  color: rgba(30, 35, 44, 0.75);
}

@media (max-width: 960px) {
  .ds-text-slogan {
    white-space: normal;
  }
}
