/* ==========================================================
   左印 AI 应用中心 · 页面样式
   配色一律走 zuoyin-theme.css 的 --zy-* 变量
   主色：左印青 #00B3C4 ｜ 辅助色：左印红 #E62029
   ========================================================== */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--zy-font);
  color: var(--zy-ink);
  background: var(--zy-paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* ---------------- 顶栏 ---------------- */
.hd {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--zy-line-2);
}
.hd-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand .dot {
  width: 33px; height: 33px; flex: 0 0 33px;
  background: var(--zy-teal); color: #fff;
  font-size: 18px; font-weight: 900;
  display: grid; place-items: center; border-radius: 7px;
}
/* 字标版：方块内两行——「左印」在上、「AI」在下 */
.brand .dot--word {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 9px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,179,196, .22);
}
.brand .dot--word span {
  font-size: 11px; font-weight: 900; letter-spacing: .5px;
  line-height: 1; margin-left: .5px;
}
.brand .dot--word i {
  font-style: normal; font-family: var(--zy-font-num);
  font-size: 17px; font-weight: 900; letter-spacing: .04em;
  opacity: .96; line-height: 1; margin-left: .04em; margin-top: 1px;
}
/* 字标右侧文字：「左印AI」+「应用中心」 */
.brand .tt { line-height: 1.3; min-width: 0; }
.brand .n {
  font-size: 16px; font-weight: 900; letter-spacing: .02em;
  white-space: nowrap;
}
.brand .s {
  font-size: 11px; color: var(--zy-ink-3); letter-spacing: .01em;
  white-space: nowrap; margin-top: 1px;
}

/* ---------------- 头部说明 ---------------- */
.hero { padding: 30px 0 14px; }
.hero h1 {
  margin: 0 0 8px; font-size: 30px; line-height: 1.25;
  font-weight: 900; letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal; color: var(--zy-teal);
  background: linear-gradient(transparent 66%, rgba(0,179,196, .20) 0);
  padding: 0 2px;
}
.hero p { margin: 0; font-size: 13.5px; color: var(--zy-ink-2); max-width: 660px; }
.hero p b { color: var(--zy-ink); font-weight: 900; }

.stats {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 16px; border-top: 1px solid var(--zy-line); padding-top: 14px;
}
.stats .it {
  position: relative; padding-left: 11px;
  padding-right: 22px; margin-right: 22px;
  border-right: 1px solid var(--zy-line-2);
}
.stats .it::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px; background: var(--zy-teal);
}
.stats .it:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats .v {
  font-family: var(--zy-font-num); font-size: 24px; font-weight: 900;
  line-height: 1.1; color: var(--zy-ink);
}
.stats .v small { font-size: 12px; font-weight: 800; margin-left: 2px; color: var(--zy-ink-2); }
.stats .k { font-size: 11px; color: var(--zy-mute); letter-spacing: .06em; margin-top: 2px; }

/* ---------------- 分类 ---------------- */
.tabs {
  position: sticky; top: 58px; z-index: 30;
  background: linear-gradient(180deg, var(--zy-paper) 72%, rgba(237, 228, 216, 0));
  padding: 10px 0 8px;
}
.tabs-in {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 0 6px;
}
.tabs-in::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; cursor: pointer;
  border: 1px solid #D9D5D0; background: #fff;
  font-family: var(--zy-font); font-size: 12.5px; font-weight: 700;
  color: var(--zy-ink-2); padding: 6px 14px; border-radius: 999px;
  transition: all .16s;
}
.chip .c { font-size: 10.5px; color: var(--zy-mute); margin-left: 4px; font-weight: 700; }
.chip.on { background: var(--zy-teal); border-color: var(--zy-teal); color: #fff; box-shadow: 0 4px 12px rgba(0,179,196, .28); }
.chip.on .c { color: rgba(255, 255, 255, .8); }

/* ---------------- 应用网格 ---------------- */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  padding-bottom: 8px;
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--zy-line-2);
  border-radius: 14px; padding: 16px 16px 13px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card:hover {
  transform: translateY(-2px); border-color: var(--zy-teal-line);
  box-shadow: 0 14px 30px rgba(0, 161, 176, .16);
}
.card:active { transform: translateY(0) scale(.994); }
.card:focus-visible {
  outline: 2px solid var(--zy-teal); outline-offset: 3px;
}
.card .ic {
  width: 42px; height: 42px; border-radius: 50%;
  color: #fff; font-size: 16px; font-weight: 900;
  display: grid; place-items: center;
}
.card h3 { margin: 11px 0 5px; font-size: 15.5px; font-weight: 900; letter-spacing: -.005em; }
.card p { margin: 0; font-size: 12.5px; line-height: 1.72; color: var(--zy-ink-2); min-height: 43px; }

.badge {
  position: absolute; top: 16px; right: 14px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 4px;
}
.badge.live { background: var(--zy-teal); color: #fff; }
.badge.beta { background: var(--zy-red); color: #fff; }
.badge.soon { background: #F3F0EC; color: var(--zy-ink-3); }

.card .ft {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--zy-line-2);
}
.card .cat { font-size: 11px; color: var(--zy-mute); letter-spacing: .04em; }
.card--soon .ic { filter: saturate(.62); opacity: .88; }
.card--soon h3 { color: #615955; }

.empty {
  text-align: center; color: var(--zy-mute); font-size: 13px;
  padding: 44px 0; grid-column: 1 / -1;
}

/* ---------------- 转型说明 ---------------- */
.sec { margin: 34px 0 0; }
.sec .zy-sec { flex-wrap: wrap; row-gap: 6px; }
.sec .zy-sec-bar { white-space: nowrap; }
.sec .zy-sec-bar::after { display: none; }
.sec .zy-sec-bar { padding: 6px 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step {
  background: #fff; border: 1px solid var(--zy-line-2); border-radius: 12px;
  padding: 14px; transition: border-color .18s;
}
.step:hover { border-color: var(--zy-teal-line); }
.step .no {
  font-family: var(--zy-font-num); font-size: 13px; font-weight: 900;
  color: var(--zy-teal); letter-spacing: .1em;
}
.step h4 { margin: 4px 0 5px; font-size: 14px; font-weight: 900; }
.step p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--zy-ink-2); }

.cta {
  margin: 22px 0 0;
  background: linear-gradient(128deg, #2BC3D4 0%, var(--zy-teal) 44%, var(--zy-teal-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
  border-radius: 16px; padding: 24px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cta::before {
  content: ''; position: absolute; right: -70px; top: -96px;
  width: 250px; height: 250px; border-radius: 50%;
  border: 32px solid rgba(255, 255, 255, .10);
}
.cta::after {
  content: ''; position: absolute; right: 110px; bottom: -130px;
  width: 210px; height: 210px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.cta .tx { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.cta h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.cta p { margin: 0; font-size: 12.5px; line-height: 1.75; color: rgba(255, 255, 255, .88); }
.cta button {
  position: relative; z-index: 1;
  border: 0; cursor: pointer; font-family: var(--zy-font);
  background: #fff; color: var(--zy-teal-deep);
  font-size: 14px; font-weight: 900; padding: 12px 24px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(34, 24, 21, .18);
  transition: background .16s, color .16s, transform .16s;
}
.cta button:hover { background: var(--zy-ink); color: #fff; }
.cta button:active { transform: scale(.98); }

.foot {
  margin: 26px 0 40px; text-align: center;
  font-size: 11px; color: var(--zy-mute); letter-spacing: .1em; line-height: 1.9;
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(34, 24, 21, .46);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.mask.on { display: flex; }
.sheet {
  width: 100%; max-width: 460px; background: #fff;
  border-radius: 18px 18px 0 0; padding: 20px 20px 22px;
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.sheet h3 { margin: 0; font-size: 17px; font-weight: 900; }
.sheet .sub { font-size: 12px; color: var(--zy-mute); margin: 2px 0 16px; }
.sheet .x {
  margin-left: auto; border: 0; background: #F3F0EC; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; font-size: 16px; line-height: 1;
  color: var(--zy-ink-2); flex: 0 0 28px;
}
.field { margin-bottom: 11px; }
.field label { display: block; font-size: 11.5px; font-weight: 800; color: var(--zy-ink-2); margin-bottom: 5px; letter-spacing: .04em; }
.field input, .field select {
  width: 100%; font-family: var(--zy-font); font-size: 14px; color: var(--zy-ink);
  background: #FAF8F6; border: 1px solid #E2DED9; border-radius: 9px;
  padding: 10px 12px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--zy-teal); background: #fff; }
.sheet .sbmt {
  width: 100%; border: 0; cursor: pointer; font-family: var(--zy-font);
  background: var(--zy-teal); color: #fff; font-size: 15px; font-weight: 900;
  padding: 13px; border-radius: 10px; margin-top: 4px;
}
.sheet .sbmt:disabled { opacity: .6; }
.sheet .tip { font-size: 11px; color: var(--zy-mute); margin-top: 8px; text-align: center; line-height: 1.6; }

.toast {
  position: fixed; left: 50%; top: 74px; transform: translateX(-50%) translateY(-10px);
  background: rgba(34, 24, 21, .92); color: #fff;
  font-size: 13px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .22s; z-index: 120;
}
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------------- 响应 ---------------- */
@media (min-width: 641px) {
  .mask { align-items: center; padding: 20px; }
  .sheet { border-radius: 18px; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .brand .s { display: none; }
  .hero { padding: 20px 0 8px; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 12.5px; }
  .stats .it { padding-right: 15px; margin-right: 15px; }
  .stats .v { font-size: 20px; }
  .tabs { top: 55px; }
  .grid { grid-template-columns: 1fr; gap: 11px; }
  .card { padding: 14px 14px 11px; }
  .card p { min-height: 0; }
  .brand .n { font-size: 14.5px; }
  .brand .dot { width: 30px; height: 30px; flex: 0 0 30px; font-size: 16px; }
  .brand .dot--word { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; }
  .brand .dot--word span { font-size: 9.5px; letter-spacing: .4px; }
  .brand .dot--word i { font-size: 15px; margin-top: 1px; }
  .toast { top: 66px; font-size: 12.5px; }
  .sec .zy-sec-note { margin-left: 54px; }
  .cta { padding: 20px 18px; }
  .cta h3 { font-size: 18px; }
}

/* ==========================================================
   账号与积分
   ========================================================== */

/* 卡片上的消耗标记：跟在分类后面，不和右上状态徽标抢位置 */
.card .cost {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  font-size: 10px; font-weight: 800; letter-spacing: .02em;
  padding: 1px 6px; border-radius: 4px;
  background: #F3F0EC; color: var(--zy-ink-3);
}
.card .cost.free { background: var(--zy-teal-tint); color: var(--zy-teal-deep); }
.card .cost.paid { background: #FFF6F5; color: var(--zy-red); }

