.drift-bottle {
  --db-ink: #173c3b;
  --db-soft: #557371;
  --db-ocean: #2e7772;
  --db-ocean-deep: #195a58;
  --db-coral: #d9785c;
  --db-surface: rgba(251, 250, 243, 0.78);
  --db-surface-strong: rgba(255, 255, 255, 0.58);
  --db-line: rgba(23, 60, 59, 0.14);
  --db-shadow: 0 28px 72px rgba(28, 77, 72, 0.1);
  width: 100%;
  max-width: 920px;
  margin: 2.25rem auto 3.5rem;
  padding: 0;
  color: var(--db-ink);
  font-family: inherit;
  line-height: 1.7;
}

body.dark .drift-bottle {
  --db-ink: #e8f4f1;
  --db-soft: #abc3be;
  --db-ocean: #79c8bd;
  --db-ocean-deep: #95d8ce;
  --db-coral: #ef9b80;
  --db-surface: rgba(18, 38, 40, 0.82);
  --db-surface-strong: rgba(255, 255, 255, 0.06);
  --db-line: rgba(190, 226, 217, 0.15);
  --db-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
}

.drift-bottle,
.drift-bottle * {
  box-sizing: border-box;
}

.drift-bottle button,
.drift-bottle textarea {
  font: inherit;
}

.drift-bottle .db-hero {
  max-width: 650px;
  margin: 0 0 1.65rem;
}

.drift-bottle .db-eyebrow,
.drift-bottle .db-kicker,
.drift-bottle .db-quota,
.drift-bottle .db-counter,
.drift-bottle .db-status,
.drift-bottle .db-composer-footer,
.drift-bottle .db-label,
.drift-bottle .db-time,
.drift-bottle .db-text-button,
.drift-bottle .db-primary {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.drift-bottle .db-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--db-ocean);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.22em;
}

.drift-bottle .db-hero h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--db-ink);
  font-family: inherit;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1;
}

.drift-bottle .db-hero > p:last-child {
  margin: 1.1rem 0 0;
  color: var(--db-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.drift-bottle .db-composer {
  position: relative;
  padding: clamp(1.35rem, 4vw, 2.35rem);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 4px 26px 4px 26px;
  background: var(--db-surface);
  box-shadow: var(--db-shadow);
  backdrop-filter: blur(16px);
}

.drift-bottle .db-composer::before {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--db-coral);
  box-shadow: 12px 0 0 rgba(217, 120, 92, 0.28);
}

.drift-bottle .db-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.drift-bottle .db-kicker {
  margin: 0 0 0.35rem;
  color: var(--db-coral);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.drift-bottle h3 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--db-ink);
  font-family: inherit;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.drift-bottle .db-quota {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--db-line);
  border-radius: 99px;
  color: var(--db-soft);
  background: var(--db-surface-strong);
  font-size: 0.7rem;
  line-height: 1.4;
}

.drift-bottle .db-quota-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--db-ocean);
  box-shadow: 0 0 0 4px rgba(46, 119, 114, 0.1);
}

.drift-bottle .db-quota.is-empty .db-quota-dot {
  background: var(--db-coral);
  box-shadow: 0 0 0 4px rgba(217, 120, 92, 0.1);
}

.drift-bottle form {
  margin: 1.5rem 0 0;
}

.drift-bottle .db-textarea-wrap {
  position: relative;
}

.drift-bottle textarea {
  display: block;
  width: 100%;
  min-height: 145px;
  margin: 0;
  padding: 1.15rem 1.15rem 2.15rem;
  resize: vertical;
  border: 1px solid var(--db-line);
  border-radius: 3px 16px 3px 16px;
  outline: none;
  color: var(--db-ink);
  background: var(--db-surface-strong);
  font-size: 1rem;
  line-height: 1.8;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.drift-bottle textarea::placeholder {
  color: #91a6a1;
}

.drift-bottle textarea:focus {
  border-color: rgba(46, 119, 114, 0.5);
  box-shadow: 0 0 0 4px rgba(46, 119, 114, 0.07);
}

.drift-bottle .db-counter {
  position: absolute;
  right: 0.9rem;
  bottom: 0.7rem;
  color: #809591;
  font-size: 0.68rem;
}

.drift-bottle .db-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.drift-bottle .db-composer-footer p {
  margin: 0;
  color: var(--db-soft);
  font-size: 0.72rem;
  line-height: 1.7;
}

.drift-bottle .db-primary {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  min-width: 138px;
  margin: 0;
  padding: 0.9rem 1.05rem 0.9rem 1.25rem;
  border: 0;
  border-radius: 3px 13px 3px 13px;
  color: #f7fbf7;
  background: #195a58;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.3;
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

body.dark .drift-bottle .db-primary {
  color: #102c2b;
  background: #85cfc4;
}

.drift-bottle .db-primary:hover {
  background: #154b4a;
  transform: translateY(-2px);
}

body.dark .drift-bottle .db-primary:hover {
  background: #a0ddd3;
}

.drift-bottle .db-primary:disabled {
  cursor: wait;
  opacity: 0.52;
  transform: none;
}

.drift-bottle .db-status {
  min-height: 1.25rem;
  margin: 0.8rem 0 -0.35rem;
  color: var(--db-soft);
  font-size: 0.72rem;
}

.drift-bottle .db-status.is-error {
  color: var(--db-coral);
}

.drift-bottle .db-ocean {
  margin-top: 2.75rem;
}

.drift-bottle .db-ocean-heading {
  align-items: flex-end;
  margin-bottom: 1rem;
}

.drift-bottle .db-text-button {
  padding: 0.45rem 0;
  border: 0;
  color: var(--db-ocean);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.4;
}

.drift-bottle .db-text-button span {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 180ms ease;
}

.drift-bottle .db-text-button:hover span {
  transform: translateX(4px);
}

.drift-bottle .db-text-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.drift-bottle .db-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 3.8rem);
  align-items: center;
  min-height: 250px;
  padding: 2.4rem clamp(1.6rem, 6vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--db-line);
  border-radius: 24px 4px 24px 4px;
  background:
    linear-gradient(120deg, rgba(223, 240, 234, 0.55), rgba(247, 247, 235, 0.48)),
    radial-gradient(circle at 10% 90%, rgba(46, 119, 114, 0.17), transparent 18rem);
  box-shadow: 0 18px 55px rgba(28, 77, 72, 0.07);
}

body.dark .drift-bottle .db-card {
  background:
    linear-gradient(120deg, rgba(34, 63, 64, 0.6), rgba(28, 43, 43, 0.48)),
    radial-gradient(circle at 10% 90%, rgba(88, 166, 155, 0.16), transparent 18rem);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.drift-bottle .db-bottle-art {
  position: relative;
  height: 188px;
  filter: drop-shadow(7px 16px 12px rgba(24, 70, 68, 0.12));
  transform: scale(0.88) rotate(-5deg);
  transform-origin: center;
}

.drift-bottle .db-cap {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 62px;
  width: 35px;
  height: 22px;
  border: 2px solid rgba(73, 103, 80, 0.75);
  border-radius: 5px 5px 2px 2px;
  background: repeating-linear-gradient(90deg, #8a9f77 0 3px, #738c67 3px 6px);
}

.drift-bottle .db-neck {
  position: absolute;
  z-index: 1;
  top: 19px;
  left: 68px;
  width: 24px;
  height: 30px;
  border: 2px solid rgba(46, 119, 114, 0.58);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: rgba(209, 241, 231, 0.32);
}

.drift-bottle .db-body {
  position: absolute;
  top: 46px;
  left: 18px;
  width: 120px;
  height: 141px;
  border: 2px solid rgba(46, 119, 114, 0.58);
  border-radius: 34px 34px 31px 31px / 26px 26px 38px 38px;
  background: linear-gradient(100deg, rgba(206, 239, 229, 0.4), rgba(255, 255, 255, 0.16) 60%, rgba(166, 213, 202, 0.17));
}

.drift-bottle .db-paper {
  position: absolute;
  top: 49px;
  left: 23px;
  width: 72px;
  height: 55px;
  padding: 15px 12px;
  border-radius: 3px;
  background: #fff8dd;
  box-shadow: inset 0 0 13px rgba(179, 157, 102, 0.14);
  transform: rotate(8deg);
}

.drift-bottle .db-paper i {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: rgba(123, 104, 64, 0.27);
}

.drift-bottle .db-paper i:last-child {
  width: 60%;
}

.drift-bottle .db-shine {
  position: absolute;
  top: 69px;
  left: 37px;
  width: 6px;
  height: 68px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(8deg);
}

.drift-bottle .db-copy {
  min-width: 0;
}

.drift-bottle .db-label {
  margin: 0 0 0.7rem;
  color: var(--db-coral);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.drift-bottle blockquote {
  max-width: 100%;
  min-height: 80px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--db-ink);
  background: transparent;
  font-family: inherit;
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.drift-bottle blockquote::before {
  content: "“";
}

.drift-bottle blockquote::after {
  content: "”";
}

.drift-bottle .db-time {
  margin: 1rem 0 0;
  color: var(--db-soft);
  font-size: 0.68rem;
}

.drift-bottle .db-card.is-loading .db-copy {
  opacity: 0.5;
}

.drift-bottle .db-card.is-arriving {
  animation: db-arrive 520ms ease-out both;
}

.drift-bottle .db-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.drift-bottle.is-compact .db-hero {
  display: none;
}

.drift-bottle.is-compact .db-ocean {
  margin-top: 1.8rem;
}

@keyframes db-arrive {
  from {
    opacity: 0.25;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drift-home-button {
  position: fixed;
  z-index: 9999;
  top: max(14px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: #effbf7 !important;
  background: linear-gradient(135deg, rgba(34, 111, 105, 0.94), rgba(24, 80, 78, 0.94));
  box-shadow: 0 8px 24px rgba(15, 59, 57, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none !important;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.drift-home-button:hover,
.drift-home-button:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2a817a, #175653);
  box-shadow: 0 10px 28px rgba(15, 59, 57, 0.28), 0 0 0 4px rgba(112, 201, 189, 0.16);
  transform: translateY(-1px);
}

.drift-home-button:focus-visible {
  outline: 2px solid #9ee0d6;
  outline-offset: 2px;
}

.drift-home-button__spark {
  color: #ffd69f;
  font-size: 12px;
  line-height: 1;
  animation: drift-home-spark 2.8s ease-in-out infinite;
}

body.dark .drift-home-button {
  border-color: rgba(174, 227, 218, 0.34);
  color: #effbf7 !important;
  background: linear-gradient(135deg, rgba(30, 91, 87, 0.94), rgba(16, 56, 55, 0.94));
}

body.admin-bar .drift-home-button {
  top: 46px;
}

@media (max-width: 782px) {
  body.admin-bar .drift-home-button {
    top: 60px;
  }

  .drift-home-button {
    top: 64px;
    right: max(14px, env(safe-area-inset-right));
    min-height: 38px;
    padding: 0.52rem 0.85rem;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drift-home-button,
  .drift-home-button__spark {
    animation: none;
    transition: none;
  }
}

@keyframes drift-home-spark {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.86) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.12) rotate(22deg);
  }
}

.drift-cookie-consent[hidden] {
  display: none !important;
}

.drift-cookie-consent {
  --drift-cookie-accent: #e799b0;
  position: fixed;
  z-index: 100000;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: block;
  width: min(560px, calc(100vw - 36px));
  min-height: 223px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  color: #173c3b;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 239, 245, 0.62));
  box-shadow:
    0 22px 64px rgba(10, 48, 46, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  isolation: isolate;
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  animation: none !important;
  transition: none !important;
}

.drift-cookie-consent::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.38), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(231, 153, 176, 0.28), transparent 42%);
}

.drift-cookie-copy {
  position: relative;
  z-index: 3;
  width: 65%;
  padding: 22px 20px 18px 24px;
}

.drift-cookie-kicker {
  margin: 0 0 8px;
  color: var(--drift-cookie-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.drift-cookie-copy h2 {
  margin: 0;
  color: #173c3b;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.drift-cookie-copy > p:not(.drift-cookie-kicker) {
  margin: 10px 0 0;
  color: #5b7773;
  font-size: 12px;
  line-height: 1.72;
}

.drift-cookie-link {
  display: inline-block;
  margin-top: 8px;
  color: #b85f7c !important;
  font-size: 11px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drift-cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.drift-cookie-button {
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid var(--drift-cookie-accent);
  border-radius: 3px 10px 3px 10px;
  color: #40252f;
  background: var(--drift-cookie-accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  animation: none !important;
  transition: none !important;
}

.drift-cookie-button:hover,
.drift-cookie-button:focus-visible {
  background: #dc86a1;
  box-shadow: 0 5px 14px rgba(184, 95, 124, 0.2);
}

.drift-cookie-button.is-secondary {
  color: #9c5470;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(231, 153, 176, 0.58);
}

.drift-cookie-button.is-secondary:hover,
.drift-cookie-button.is-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.8);
}

.drift-cookie-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  pointer-events: none;
  border: 0;
  box-shadow: none;
}

.drift-cookie-media img {
  display: block;
  width: 58%;
  height: 100%;
  margin-left: auto;
  margin-right: 0;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: translateX(6%);
}

@media (max-width: 680px) {
  .drift-bottle {
    margin-top: 1.5rem;
  }

  .drift-bottle .db-heading {
    display: block;
  }

  .drift-bottle .db-quota {
    margin-top: 0.75rem;
  }

  .drift-bottle .db-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .drift-bottle .db-primary {
    width: 100%;
  }

  .drift-bottle .db-ocean-heading .db-text-button {
    margin-top: 0.65rem;
  }

  .drift-bottle .db-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.8rem 1.4rem 2rem;
  }

  .drift-bottle .db-bottle-art {
    width: 150px;
    height: 160px;
    margin: -0.6rem 0 -1rem -0.35rem;
    transform: scale(0.75) rotate(-5deg);
    transform-origin: left center;
  }

  .drift-bottle blockquote {
    min-height: 68px;
    font-size: 1.2rem;
  }

  .drift-cookie-consent {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    min-height: 257px;
    border-radius: 20px;
  }

  .drift-cookie-media {
    inset: 0;
    width: 100%;
  }

  .drift-cookie-media img {
    width: 100%;
    object-position: center center;
    opacity: 1;
    transform: translateX(14%);
  }

  .drift-cookie-copy {
    width: 100%;
    padding: 17px 14px 15px 17px;
  }

  .drift-cookie-copy h2 {
    font-size: 21px;
  }

  .drift-cookie-copy > p:not(.drift-cookie-kicker) {
    font-size: 11px;
    line-height: 1.62;
  }

  .drift-cookie-actions {
    flex-direction: column;
    gap: 6px;
  }

  .drift-cookie-button {
    width: 100%;
    min-height: 32px;
  }
}

.drift-live2d-toggle {
  display: none;
}

@media (max-width: 768px) {
  body:not(.drift-live2d-visible) #oml2d-stage,
  body:not(.drift-live2d-visible) #oml2d-statusBar {
    display: none !important;
  }

  .drift-live2d-toggle {
    position: fixed;
    z-index: 10001;
    right: 12px;
    bottom: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(231, 153, 176, 0.72);
    border-radius: 999px;
    color: #492a35;
    background: rgba(255, 239, 245, 0.92);
    box-shadow: 0 8px 22px rgba(70, 35, 49, 0.18);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    backdrop-filter: blur(14px);
    cursor: pointer;
  }

  body.drift-live2d-visible .drift-live2d-toggle {
    right: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drift-bottle *,
  .drift-bottle *::before,
  .drift-bottle *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .drift-cookie-consent,
  .drift-cookie-media img {
    animation: none !important;
    transition: none !important;
  }
}
