:root {
  --base-bg: #e9f6f1;
  --card-bg: #fff;
  --primary: #28a398;
  --accent: #38bdf8;
  --text: #333;
  --muted: #e0f2ef;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: "M PLUS 1", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--base-bg);
  color: var(--text);
  padding-top: 60px;
}

.app-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.header {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
  color: var(--text);
}

.login-app {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.back-link { margin: 6px 0; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.field-hint {
  background: color-mix(in srgb, var(--card-bg) 88%, #f7f9f8 12%);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, #e3ecea);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
}
.field-hint.show { display: block; }
.field-note.keep { font-size: 12px; color: color-mix(in srgb, var(--text) 70%, #666); }

.new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.public-head {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  z-index: 200;
}
.public-head--border {
  border-top: 5px solid var(--primary);
}
html[data-theme="white"] .public-head--border {
  border-top-color: #e6e6e6;
}
html[data-theme="black"] .public-head--border {
  border-top: 0;
}
html[data-theme="black"] .public-head {
  background: #000;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
.public-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}
.public-logo img {
  height: 30px;
  width: auto;
}
.public-foot {
  width: 100%;
  padding: 16px 0 24px;
}

.chip-link {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 14px;
  color: var(--primary);
  text-decoration: none;
  background: var(--muted);
  background: color-mix(in srgb, var(--primary) 14%, #fff);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.chip-link:hover {
  background: var(--muted);
  background: color-mix(in srgb, var(--primary) 32%, #fff);
  color: var(--primary);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 22%, transparent);
  transform: translateY(-1px);
}
html[data-theme="black"] .chip-link {
  background: #000;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
html[data-theme="black"] .chip-link:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}
.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
.logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  margin: 20px auto 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}
h1, h2, h3, h4 { text-align: center; margin: 8px 0 25px; font-size: 1.3em; }
.info-section p { font-size: 0.9em; }
.info-section {
  text-align: center;
  color: var(--text);
  line-height: 1.6;
  margin: 6px 0 12px;
}
.info-section p {
  margin: 6px 0;
  color: color-mix(in srgb, var(--text) 70%, #666);
}
.info-section.info-lead { color: var(--text); }
html[data-theme="black"] .info-section,
html[data-theme="black"] .info-section.info-lead,
html[data-theme="black"] .info-section p {
  color: #fff;
}
.info-section.info-lead { font-weight: 600; }
p.lead { text-align: center; color: #555; margin: 0 0 18px; line-height: 1.6; }
.btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 18px auto 0;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(40,163,152,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.auth-form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #dfe8e6);
  background: #fff;
  font-size: 14px;
  color: var(--text);
}
html[data-theme="black"] .auth-form input {
  background: #0b0b0b;
  color: #fff;
  border-color: #222;
}
.auth-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.auth-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.user-banner {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -30px;
  margin-bottom: 16px;
  font-weight: 700;
}
.user-banner .label {
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 70%, #666);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(40,163,152,0.25); }
.btn[disabled] { background: #b9c8c5; cursor: not-allowed; box-shadow: none; transform: none; }
html[data-theme="black"] .btn-push {
  background: linear-gradient(90deg, #ff5a2c 0%, #ff8a1f 100%);
  box-shadow: 0 12px 24px rgba(255, 122, 31, 0.28);
}
html[data-theme="black"] .btn-push:hover {
  box-shadow: 0 14px 26px rgba(255, 122, 31, 0.32);
}
.btn-push .ri-notification-3-fill {
  display: inline-block;
  transform-origin: 50% 18%;
  animation: bellSwingLoop 3.5s ease-in-out infinite;
}
.btn-icon-jelly {
  display: inline-block;
  font-size: 1.5em;
  transform-origin: 50% 40%;
  animation: jellyWobbleLoop 4.225s cubic-bezier(0.2, 0.9, 0.35, 1) infinite;
}
@keyframes jellyWobbleLoop {
  0% { transform: scale(1, 1); }
  1.25% { transform: scale(1.14, 0.86); }
  2.5% { transform: scale(0.92, 1.08); }
  3.75% { transform: scale(1.1, 0.9); }
  4.5% { transform: scale(0.96, 1.04); }
  5% { transform: scale(1, 1); }
  100% { transform: scale(1, 1); }
}
@keyframes bellSwingLoop {
  0% { transform: rotate(0deg); }
  2.9% { transform: rotate(16deg); }
  5.7% { transform: rotate(-14deg); }
  8.6% { transform: rotate(12deg); }
  11.4% { transform: rotate(-10deg); }
  13.1% { transform: rotate(8deg); }
  14.3% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.status { text-align: center; margin-top: 14px; font-size: 14px; color: #555; min-height: 20px; }
.status.warn { color: #c0392b; font-weight: 700; }
.status.ok { color: var(--text); font-weight: 700; }
.foot-note { text-align: center; font-size: 10px; color: #888; letter-spacing: 0.02em; }

.env-hint {
  background: color-mix(in srgb, var(--card-bg) 90%, #f7f7f7 10%);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #e5e5e5);
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.env-hint--inline {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 12px;
}
.env-hint--inline .env-hint__body {
  padding: 0;
}
.env-hint__title {
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--text);
}
.env-hint__message {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.env-hint__message.show {
  display: block;
  animation: hintPulse 0.6s ease-out;
}
.env-hint__block {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.env-hint__block h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.env-hint__block p {
  font-size: 14px;
  margin: 0;
}
@keyframes hintPulse {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.public-links { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.public-link { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-radius:14px; background:var(--card-bg); box-shadow:0 6px 16px rgba(0,0,0,0.08); text-decoration:none; color:var(--text); font-weight:700; }
.public-link { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-radius:14px; background:var(--card-bg); box-shadow:0 6px 16px rgba(0,0,0,0.08); text-decoration:none; color:var(--text); font-weight:700; }
.public-link .desc { font-size:13px; color:#666; font-weight:500; }
.public-link .icon { color:var(--accent); font-size:20px; }

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  background: color-mix(in srgb, var(--card-bg) 92%, #f5f7f6 8%);
  margin-bottom: 20px;
}
.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}
.slide {
  min-width: 100%;
  position: relative;
}
.slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.3);
  padding: 0;
}
.slider-dots button.active {
  background: var(--accent);
}

.push-list-mini {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.push-card-mini {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--text);
  align-items: center;
}
.push-card-arrow {
  color: var(--accent);
  font-size: 20px;
}
.push-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}
.push-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.push-thumb .badge-new {
  position: absolute;
  top: 3px;
  left: 3px;
  background: #ff5f8d;
  color: #fff;
  padding: 2px 4px;
  border-radius: 8px;
  font-size: 5px;
  font-weight: 700;
  animation: blink 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.push-body {
  flex: 1;
}
.push-title-mini {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.push-meta-mini {
  font-size: 12px;
  color: #666;
}

.jump-card-ready { opacity:0; transform: translateY(-18px); }
.jump-card-show { animation: jumpIn 0.5s ease-out forwards; }
.jump-card-show .push-title-mini {
  animation: textSquash 0.45s ease-out;
  transform-origin: left center;
}
.jump-card { transform-origin:center; transition: box-shadow 0.2s ease; }
.jump-card.jump-press { transform: scale(1.03); }
@keyframes jumpIn { 0% { opacity:0; transform: translateY(-20px); } 60% { opacity:1; transform: translateY(8px); } 100% { opacity:1; transform: translateY(0); } }
@keyframes textSquash {
  0% { transform: scale(0.9, 1.05) skewX(-4deg); opacity: 0; }
  60% { transform: scale(1.03, 0.96) skewX(2deg); opacity: 1; }
  100% { transform: scale(1,1) skewX(0deg); opacity: 1; }
}

.public-list { display: flex; flex-direction: column; gap: 10px; }
.public-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: var(--card-bg);
  align-items: flex-start;
  transition: box-shadow 0.2s ease;
}
html[data-theme="black"] .public-card {
  background: rgba(0,0,0,0.5);
  color: #f5f5f5;
  border: none;
}
.public-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}
.public-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.public-thumb .badge-new {
  position: absolute;
  top: 3px;
  left: 3px;
  background: #ff5f8d;
  color: #fff;
  padding: 2px 4px;
  border-radius: 8px;
  font-size: 5px;
  font-weight: 700;
  animation: blink 4s ease-in-out infinite;
  z-index: 2;
}
.public-meta { font-size: 11px; color: #888; margin-top: 4px; }
.public-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.public-title .char { pointer-events: none; }
.public-body-short {
  font-size: 13px;
  color: #555;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.pager { display:flex; gap:6px; justify-content:center; margin-top:16px; }
.pager a {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  border-color: color-mix(in srgb, var(--primary) 18%, #e5e5e5);
  color: var(--primary);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.pager a:hover {
  background: var(--muted);
  background: color-mix(in srgb, var(--primary) 26%, #fff);
  border-color: color-mix(in srgb, var(--primary) 44%, #d9d9d9);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 22%, transparent);
}
html[data-theme="black"] .pager a:hover {
  background: #000;
  border-color: #333;
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}
.pager a.active { background:var(--primary); color:#fff; border-color: var(--primary); }
.pager a.disabled { pointer-events:none; opacity:.4; }
html[data-theme="black"] .public-card { border-color: #2f2f2f; }
html[data-theme="black"] .public-card:hover {
  background: #000;
  border-color: #3a3a3a;
  box-shadow: 0 10px 20px rgba(0,0,0,0.45);
}

.push-title-mini .char,
.public-title .char {
  display: inline-block;
  will-change: transform;
}
.jump-card:hover .push-title-mini .char,
.public-card:hover .public-title .char {
  animation: titleWave 0.45s ease-in-out 1 both;
  animation-delay: calc(var(--i) * 0.05s);
}
.public-card.is-touch-wave .public-title .char {
  animation: titleWave 0.45s ease-in-out 1 both;
  animation-delay: calc(var(--i) * 0.05s);
}
@keyframes titleWave {
  0% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

html[data-theme="black"] body,
html[data-theme="black"] .public-logo,
html[data-theme="black"] .public-logo span,
html[data-theme="black"] .header {
  color: #f2f2f2;
}
html[data-theme="black"] .detail-text,
html[data-theme="black"] .detail-title {
  color: rgba(255,255,255,0.95);
}
html[data-theme="black"] .detail-text a {
  color: #f39c12;
}
html[data-theme="black"] .new-btn {
  background: #f39c12;
  color: #2d1c00;
  box-shadow: 0 12px 24px rgba(243,156,18,0.35);
}

.public-card.list-anim-ready { opacity: 0; transform: translateY(14px) scale(0.98); }
.public-card.list-anim-show { animation: listJump 0.5s ease-out forwards; }
@keyframes listJump {
  0% { opacity:0; transform: translateY(16px) scale(0.96); }
  60% { opacity:1; transform: translateY(-6px) scale(1.02); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}
.detail-card-anim.detail-ready { opacity: 0; transform: translateY(14px) scale(0.98); }
.detail-card-anim.detail-show { animation: listJump 0.6s ease-out forwards; }

@media (max-width: 767px) {
  .wrap { padding: 20px 14px 36px; }
  .logo { width: 96px; height: 96px; }
  .login-card { padding: 14px; }
  .public-card { padding: 10px; }
  .public-thumb { width: 70px; height: 70px; }
}

.info-top h1,.info-top h2,.info-top h3,.info-top h4,.info-top h5{
margin: 0;
padding: 0;
}
.info-top p{
  font-size: 0.8em;
}
.info-lead,.info-top{
width: 80%;
margin-left: auto;
margin-right: auto;
font-size: 0.85em;
}
@media screen and (max-width:1024px){
.info-lead,.info-top{
width: 95%;
}
}
.info-lead p{
font-size: 0.9em;
}
