/* Tuokeda iOS-inspired visual layer. The original site.css remains the layout base. */
:root {
  --ink: #182a29;
  --muted: #637471;
  --green: #096b59;
  --line: #dfe8e4;
  --cream: #f6f8f7;
  --ios-ease: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  scroll-padding-top: 90px;
}
body { background: var(--cream); -webkit-font-smoothing: antialiased; }
::selection { color: #084c41; background: #c9ebdd; }
:focus-visible { outline: 3px solid #4ac4a0; outline-offset: 3px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }

/* Translucent chrome */
.site-header {
  height: 76px;
  background: rgba(250, 252, 250, .76);
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(175%) blur(22px);
  backdrop-filter: saturate(175%) blur(22px);
  box-shadow: 0 1px 0 rgba(10, 60, 49, .05);
  transition: box-shadow .35s ease, background .35s ease;
}
.site-header.is-scrolled { background: rgba(250, 252, 250, .91); box-shadow: 0 10px 35px rgba(25, 67, 55, .09); }
.brand { gap: 12px; letter-spacing: -.05em; }
.brand-mark { border-radius: 15px; box-shadow: 0 7px 18px rgba(12, 92, 71, .12); }
.brand-mark img { border-radius: inherit; }
.main-nav { gap: 5px; font-size: 13px; }
.main-nav > a:not(.nav-login) {
  padding: 10px 14px;
  border-radius: 12px;
  transition: color .25s ease, background .25s ease, transform .35s var(--ios-ease);
}
.main-nav > a:not(.nav-login):hover { color: var(--green); background: rgba(15, 114, 87, .075); transform: translateY(-1px); }
.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 10px 17px;
  border: 1px solid rgba(10, 97, 75, .13);
  border-radius: 999px;
  background: #e8f3ed;
  color: #075847;
  transition: transform .35s var(--ios-ease), background .25s ease, box-shadow .35s ease;
}
.nav-login:hover { background: #d8ede0; box-shadow: 0 6px 18px rgba(5, 88, 68, .12); transform: translateY(-2px); }
.nav-form { margin-left: 4px; }
.flash { top: 90px; border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

/* Hero with soft light and floating product previews */
.hero { position: relative; isolation: isolate; background: radial-gradient(ellipse at 76% 36%, #dcefe5 0, transparent 39%), linear-gradient(135deg, #f7faf7 0%, #edf5f0 55%, #eaf2ec 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(9px); z-index: -1; }
.hero::before { width: 270px; height: 270px; left: -120px; top: 10%; background: rgba(228, 244, 228, .75); }
.hero::after { width: 400px; height: 400px; right: -210px; bottom: -150px; background: rgba(206, 232, 221, .5); }
.hero-grid { min-height: 665px; }
.hero h1 { letter-spacing: -.065em; line-height: 1.12; }
.hero h1 em, .section h2 em { background: linear-gradient(130deg, #0d795e, #075b4e 68%, #238d72); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #5f726e; line-height: 1.9; }
.eyebrow, .section-kicker { letter-spacing: .15em; }
.pulse { animation: pulse-ring 2.6s ease-out infinite; }
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(39, 177, 121, .16); } 50% { box-shadow: 0 0 0 8px rgba(39, 177, 121, .04); } }
.orbit { border-color: rgba(95, 154, 122, .17); }
.orbit-one { background: rgba(255, 255, 255, .38); box-shadow: 0 0 90px rgba(188, 230, 199, .38); }
.orbit-three { opacity: .72; }
.visual-core {
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 28px 65px rgba(23, 93, 66, .16), inset 0 1px rgba(255, 255, 255, .9);
}
.visual-pill {
  background: rgba(255, 255, 255, .83);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 19px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 17px 42px rgba(28, 79, 54, .13), inset 0 1px rgba(255, 255, 255, .9);
  transition: translate .5s var(--ios-ease), box-shadow .5s var(--ios-ease);
}
.visual-pill:hover { translate: 0 -6px; box-shadow: 0 24px 48px rgba(28, 79, 54, .18); }
.visual-pill .pill-icon { border-radius: 11px; }

/* Rounded controls and cards */
.button {
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 15px;
  font-size: 13px;
  transition: transform .42s var(--ios-ease), box-shadow .42s var(--ios-ease), background .25s ease, border-color .25s ease;
}
.button:active, .nav-login:active, .product-link:active { transform: scale(.97); }
.button-primary { background: linear-gradient(145deg, #0b7560, #075746); box-shadow: 0 9px 22px rgba(4, 96, 72, .19); }
.button-primary:hover { box-shadow: 0 15px 28px rgba(4, 96, 72, .26); }
.button-ghost { background: rgba(255, 255, 255, .74); border-color: rgba(255, 255, 255, .95); box-shadow: 0 8px 24px rgba(40, 91, 60, .065); }
.button-ghost:hover { background: #fff; box-shadow: 0 13px 28px rgba(40, 91, 60, .12); }
.trust-strip { background: #115d4e; }
.products-section, .contact-section { background: #f7f9f8; }
.section { padding-block: 100px; }
.section h2 { letter-spacing: -.045em; }
.product-grid { gap: 20px; }
.product-card, .contact-form, .profile-card, .portal-content, .admin-block, .admin-overview > div, .simple-card, .admin-stats > div {
  border: 1px solid rgba(211, 226, 217, .72);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(21, 59, 42, .05), 0 1px 3px rgba(21, 59, 42, .025);
}
.product-card { padding: 28px; min-height: 430px; transition: transform .55s var(--ios-ease), box-shadow .55s var(--ios-ease), border-color .35s ease; }
.product-card:hover { transform: translateY(-7px); border-color: #c5e0d1; box-shadow: 0 24px 52px rgba(22, 75, 53, .12); }
.product-symbol { border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 10px 24px rgba(18, 50, 43, .12); }
.tag-row span { border-radius: 999px; padding: 6px 10px; background: #f0f5f1; }
.product-link { align-items: center; transition: color .25s ease; }
.product-link span { transition: transform .4s var(--ios-ease); }
.product-link:hover span { transform: translate(3px, -3px); }
.workflow-section { background: linear-gradient(180deg, #edf4ef, #f1f7f2); }
.steps { display: grid; gap: 12px; }
.step { border: 1px solid rgba(198, 221, 208, .72); border-radius: 19px; padding: 20px 22px; background: rgba(255, 255, 255, .64); box-shadow: 0 7px 22px rgba(19, 70, 43, .035); transition: transform .45s var(--ios-ease), background .3s ease; }
.step:first-child { padding-top: 20px; }
.step:hover { transform: translateX(5px); background: rgba(255, 255, 255, .9); }
.statement-section { background: radial-gradient(circle at 80% 20%, #166f5b, #0b4d42 57%, #093b35); }
.statement-orb { background: radial-gradient(circle, #d5ffe31a, transparent 68%); }
.contact-form { padding: 36px; }
.contact-form input, .contact-form select, .contact-form textarea,
.auth-box input, .simple-card input, .user-dialog input, .user-dialog select {
  min-height: 48px; padding: 13px 15px; border-radius: 13px;
  border: 1px solid #dbe7df; background: #f8faf8; color: #1d352b;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.auth-box input:focus, .simple-card input:focus, .user-dialog input:focus, .user-dialog select:focus {
  border-color: #4aa884; background: #fff; box-shadow: 0 0 0 4px rgba(50, 166, 117, .13); outline: none;
}
.site-footer { background: #102c27; }
.footer-links a { transition: color .25s ease, transform .35s var(--ios-ease); }
.footer-links a:hover { transform: translateY(-2px); }

/* Work area, login, and admin share one visual system */
.auth-main { background: #f5f8f5; }
.auth-art { background: radial-gradient(circle at 10% 0%, #167e64, #0b5b4c 48%, #083f37); }
.auth-art:after { border-color: #ffffff26; }
.auth-panel { background: radial-gradient(circle at 80% 15%, #e7f3eb, #f7faf7 60%); }
.auth-box { padding: 36px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.78); box-shadow: 0 22px 60px rgba(18,75,48,.09); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.auth-box h2, .portal-heading h1 { letter-spacing: -.05em; }
.portal-main, .admin-main, .simple-main { background: radial-gradient(circle at 5% 0%, #eaf4ed, transparent 38%), #f6f8f7; }
.account-badge { border: 1px solid #cce8d5; background: #e8f5eb; }
.profile-avatar { border-radius: 19px; background: linear-gradient(145deg, #e1f2e6, #d3eadc); }
.profile-action, .portal-products a, .portal-help a, .text-link, .back-link { transition: color .2s ease, transform .35s var(--ios-ease); }
.profile-action:hover, .portal-products a:hover, .portal-help a:hover, .text-link:hover, .back-link:hover { color: #119276; }
.portal-products article { border-radius: 18px; padding: 18px; transition: transform .4s var(--ios-ease), border-color .3s ease, background .3s ease; }
.portal-products article:hover { transform: translateY(-3px); border-color: #c9e4d4; background: #fbfefb; }
.portal-product-icon { border-radius: 15px; }
.locked { border-radius: 999px; padding: 8px 12px; }
.portal-help { border: 1px solid #dbece0; border-radius: 18px; background: linear-gradient(120deg, #edf7ef, #f5faf5); }
.admin-stats > div { padding: 23px; }
.admin-stats b { letter-spacing: -.05em; }
.admin-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 5px; margin-block: 34px 22px; border: 1px solid #e1eae3; border-radius: 15px; background: #ebf0ec; }
.admin-tabs a { min-width: 84px; padding: 10px 16px; border-radius: 11px; color: #627970; text-align: center; transition: background .25s ease, box-shadow .3s ease, color .25s ease; }
.admin-tabs a.active { border: 0; background: white; color: #075d4d; box-shadow: 0 2px 8px rgba(32, 75, 49, .1); }
.admin-tabs a:not(.active):hover { color: #075d4d; }
th { background: #f4f8f5; }
td { border-color: #edf2ed; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: #f8fbf8; }
.table-action, .inline-form button { border-radius: 9px; padding: 8px 10px; transition: background .2s ease; }
.table-action:hover, .inline-form button:hover { background: #e2f3e8; }
.inline-form select { border-radius: 9px; }
.user-dialog { border: 1px solid #e1eae3; border-radius: 25px; box-shadow: 0 35px 100px rgba(12, 47, 37, .29); }
.user-dialog::backdrop { background: rgba(12, 34, 30, .42); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.dialog-close { width: 36px; height: 36px; background: #edf4ee; transition: background .2s ease; }
.dialog-close:hover { background: #dfece1; }
.user-dialog fieldset { border-radius: 14px; }

/* Only animate elements after JS has registered the observer. */
.js-motion .reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ios-ease); }
.js-motion .reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
.js-motion .product-card:nth-child(2), .js-motion .admin-stats > div:nth-child(2) { transition-delay: .07s; }
.js-motion .product-card:nth-child(3), .js-motion .admin-stats > div:nth-child(3) { transition-delay: .14s; }
.js-motion .admin-stats > div:nth-child(4) { transition-delay: .21s; }

@media (max-width: 900px) {
  .main-nav { gap: 1px; }
  .main-nav > a:not(.nav-login) { padding-inline: 9px; }
  .workflow-grid { gap: 24px; }
  .auth-box { padding: 27px; }
}
@media (max-width: 650px) {
  :root { scroll-padding-top: 74px; }
  .site-header { height: 66px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dce9df; border-radius: 13px; background: rgba(255,255,255,.78); }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 17px; height: 2px; border-radius: 2px; background: #185849; transition: transform .3s ease, opacity .3s ease; }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { top: 66px; left: 8px; right: 8px; padding: 13px; gap: 2px; border: 1px solid rgba(255,255,255,.9); border-radius: 0 0 20px 20px; background: rgba(250,252,250,.95); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); box-shadow: 0 18px 40px rgba(12,55,41,.16); }
  .main-nav > a:not(.nav-login), .main-nav > .nav-login { padding: 12px 13px; }
  .main-nav.open { animation: menu-in .32s var(--ios-ease) both; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .nav-form { margin: 5px 0 0; padding: 0; }
  .nav-form .nav-login { width: 100%; }
  .hero-copy { padding-top: 55px; }
  .hero h1 { font-size: clamp(46px, 12vw, 57px); letter-spacing: -.055em; }
  .hero-lead { line-height: 1.85; }
  .hero-visual { height: 390px; }
  .visual-pill { border-radius: 15px; }
  .section { padding-block: 72px; }
  .product-card { padding: 24px; }
  .step { padding: 18px; }
  .step:first-child { padding-top: 18px; }
  .contact-form { padding: 23px; }
  .auth-box { padding: 25px; }
  .portal-heading { flex-wrap: wrap; }
  .admin-tabs { width: 100%; justify-content: space-between; gap: 0; }
  .admin-tabs a { flex: 1; min-width: 0; padding-inline: 9px; }
  .admin-stats > div { padding: 17px; }
  .portal-products article { padding: 13px; }
  .user-dialog { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-motion .reveal-ready { opacity: 1; transform: none; }
}

/* Crisp platform marks shared by hero, product cards and workspace. */
.visual-pill .pill-icon.platform-tile,
.product-card .product-symbol.platform-tile,
.portal-product-icon.platform-tile {
  background: #fff;
  color: inherit;
  border: 1px solid rgba(220, 230, 225, .9);
  overflow: hidden;
}
.platform-tile img { display: block; flex: none; object-fit: contain; max-width: none; }
.platform-tile.platform-douyin img { width: 112%; height: 112%; }
.platform-tile.platform-xiaohongshu img { width: 90%; height: 90%; }
.platform-tile.platform-channels img { width: 114%; height: 114%; }

/* Product marks belong to the products; the floating hero pills show platforms. */
.product-card .product-symbol.product-artwork {
  width: 112px;
  height: 112px;
  margin: 25px 0 20px;
  border: 1px solid rgba(220, 230, 225, .9);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 50, 43, .1);
}
.product-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.platform-tile.platform-xiaohongshu img {
  width: 82%;
  height: 82%;
  border-radius: 7px;
}

/* Product editing and quick access in the management console. */
.admin-launchpad { margin-bottom: 22px; padding: 28px; border: 1px solid #d7e7dc; border-radius: 24px; background: linear-gradient(135deg, #f4faf5, #eaf5ee); }
.admin-launchpad .block-heading { margin-bottom: 18px; }
.admin-launch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-launch-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #e1ebe2; border-radius: 18px; background: #fff; }
.admin-launch-card img, .product-admin-head img { flex: none; object-fit: contain; border: 1px solid #e1eae3; border-radius: 15px; background: #fff; }
.admin-launch-card div { min-width: 0; flex: 1; }
.admin-launch-card b, .admin-launch-card small { display: block; }
.admin-launch-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.admin-launch-card small { margin-top: 4px; color: #81948a; font-size: 11px; }
.admin-launch-card a { flex: none; color: #076650; font-size: 11px; font-weight: 800; }
.product-admin-list { display: grid; gap: 22px; }
.product-admin-card { padding: 24px; border: 1px solid #e0ebe3; border-radius: 22px; background: #fbfdfb; scroll-margin-top: 110px; }
.product-admin-card:target { border-color: #6bbd92; box-shadow: 0 0 0 4px rgba(69, 169, 113, .12); }
.product-admin-head { display: flex; align-items: center; gap: 17px; padding-bottom: 22px; border-bottom: 1px solid #e8eee9; }
.product-admin-head h3 { margin: 6px 0 2px; font-size: 21px; }
.product-admin-head p { margin: 0; color: #81938a; font-size: 12px; }
.product-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.product-admin-actions a, .product-admin-actions span { padding: 10px 12px; border-radius: 11px; background: #eaf3ed; color: #08644f; font-size: 11px; font-weight: 800; }
.product-admin-actions .admin-launch-button { background: #0b6d56; color: #fff; }
.product-admin-actions span { background: #f2f4f0; color: #8a9990; }
.product-admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; padding-top: 22px; }
.product-admin-fields label { display: flex; flex-direction: column; gap: 8px; color: #405a4b; font-size: 12px; font-weight: 800; }
.product-admin-fields label.wide { grid-column: 1 / -1; }
.product-admin-fields small { display: inline; color: #89998e; font-weight: 400; }
.product-admin-fields input, .product-admin-fields select, .product-admin-fields textarea { width: 100%; padding: 12px 14px; border: 1px solid #dbe7df; border-radius: 12px; outline: none; background: #fff; color: #1d352b; font: inherit; font-weight: 400; }
.product-admin-fields input:focus, .product-admin-fields select:focus, .product-admin-fields textarea:focus { border-color: #4aa884; box-shadow: 0 0 0 4px rgba(50, 166, 117, .13); }
.product-admin-fields textarea { resize: vertical; line-height: 1.6; }
.product-admin-fields input[type=file] { padding: 10px; }
.product-admin-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; }
.product-admin-foot span { color: #81948a; font-size: 11px; }
@media (max-width: 900px) { .admin-launch-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) {
  .admin-tabs { overflow-x: auto; justify-content: flex-start; }
  .admin-tabs a { flex: none; min-width: max-content; }
  .admin-launchpad { padding: 18px; }
  .product-admin-card { padding: 16px; }
  .product-admin-head { align-items: flex-start; flex-wrap: wrap; }
  .product-admin-actions { width: 100%; justify-content: flex-start; margin-left: 0; }
  .product-admin-fields { grid-template-columns: 1fr; }
  .product-admin-fields label.wide { grid-column: auto; }
  .product-admin-foot { align-items: stretch; flex-direction: column; }
}
