/*
Theme Name: 云上AI站
Theme URI: https://ysai.store
Author: 云上AI站
Description: 科技黑 ChatGPT 礼品卡商城主题
Version: 1.2.0
*/

:root {
  --bg: #050508;
  --panel: #0c0c12;
  --line: rgba(255,255,255,.1);
  --muted: #9797a5;
  --text: #f7f7fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(109,80,255,.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.announcement {
  min-height: 34px; padding: 8px 20px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #eeeef4; color: #26262c; font-size: 11px; letter-spacing: .01em; text-align: center;
}
.announcement span { background: #16161b; color: white; border-radius: 99px; padding: 3px 8px; font-size: 9px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.nav {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); position: relative; z-index: 10;
}
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.03em; }
.brandMark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  font-size: 11px; letter-spacing: -.04em; color: #fff;
  background: linear-gradient(145deg, #785cff, #2a50e6); box-shadow: 0 0 28px rgba(106,82,255,.28);
}
.navLinks { display: flex; gap: 26px; align-items: center; margin-left: auto; margin-right: 28px; }
.navLinks a, .orderLink { color: #a8a8b4; font-size: 14px; text-decoration: none; border: 0; background: none; cursor: pointer; transition: color .2s; }
.navLinks a:hover, .orderLink:hover { color: white; }
.navAccount { display: flex; align-items: center; gap: 9px; }
.navLogin, .navRegister, .logoutLink {
  height: 36px; padding: 0 15px; border-radius: 10px; font-size: 12px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.navLogin { border: 1px solid var(--line); background: transparent; color: #d0d0d8; }
.navRegister { border: 0; background: #6b57ef; color: white; }
.logoutLink { color: #696976; padding-inline: 7px; }
.userChip { display: flex; align-items: center; gap: 9px; color: white; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 6px 7px; background: rgba(255,255,255,.035); }
.userAvatar { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg,#765dff,#3150d4); font-size: 11px; font-weight: 800; }
.userChip > span:last-child { display: grid; gap: 2px; }
.userChip b { font-size: 11px; }
.userChip small { color: #838390; font-size: 9px; white-space: nowrap; }

.hero { min-height: 685px; padding: 132px 0 90px; position: relative; text-align: center; overflow: hidden; }
.heroGlow {
  position: absolute; top: 35px; left: 50%; transform: translateX(-50%); width: 650px; height: 420px;
  background: radial-gradient(ellipse, rgba(94,67,255,.18), transparent 68%); filter: blur(15px); pointer-events: none;
}
.statusPill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line);
  border-radius: 99px; color: #bcbcc8; font-size: 12px; background: rgba(255,255,255,.025);
}
.statusPill i, .availability i { width: 6px; height: 6px; background: #48e6a5; border-radius: 50%; box-shadow: 0 0 10px #48e6a5; }
.hero h1 { font-size: clamp(54px, 7.2vw, 92px); line-height: .99; letter-spacing: -.065em; margin: 32px 0 26px; position: relative; }
.hero h1 span { color: #81818d; }
.heroCopy { color: var(--muted); font-size: 18px; line-height: 1.75; margin: 0; }
.heroActions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.primaryButton, .secondaryButton {
  height: 50px; padding: 0 21px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  gap: 20px; text-decoration: none; font-weight: 650; font-size: 14px; cursor: pointer; transition: transform .2s, border-color .2s;
}
.primaryButton { background: #f5f5f8; color: #09090c; border: 1px solid white; }
.secondaryButton { background: rgba(255,255,255,.03); color: #dddde6; border: 1px solid var(--line); }
.primaryButton:hover, .secondaryButton:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.trustRow { margin-top: 56px; display: flex; justify-content: center; gap: 14px; color: #6f6f79; font-size: 12px; }
.trustRow b { color: #34343d; }

.account { padding: 100px 0; border-top: 1px solid var(--line); }
.accountSummary { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 15px; }
.accountSummary article, .accountPanel {
  border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.018));
}
.accountSummary article { padding: 25px; min-height: 160px; display: grid; align-content: space-between; }
.accountSummary span { color: #747480; font-size: 11px; }
.accountSummary strong { font-size: 36px; letter-spacing: -.05em; }
.accountSummary strong small { color: #7f70f4; font-size: 18px; margin-right: 5px; }
.accountSummary .levelName { font-size: 25px; }
.accountSummary p { color: #777783; font-size: 11px; margin: 0; }
.balanceCard { background: radial-gradient(circle at 100% 0,rgba(105,80,255,.22),transparent 50%),rgba(255,255,255,.025)!important; }
.accountGrid { display: grid; grid-template-columns: .86fr 1.4fr; gap: 15px; }
.accountPanel { padding: 25px; }
.panelTitle { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panelTitle h3 { margin: 6px 0 0; font-size: 20px; }
.panelTitle > span { color: #747480; font-size: 10px; }
.manualTag { border: 1px solid #594a2f; background: #2a2115; color: #d1a85b!important; border-radius: 99px; padding: 5px 9px; }
.stackForm { display: grid; gap: 2px; }
.stackForm label { display: grid; gap: 7px; color: #92929e; font-size: 11px; margin-top: 13px; }
.stackForm input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #08080c; color: white; padding: 0 13px; outline: none;
}
.stackForm input:focus { border-color: #6955ef; }
.rechargePanel .qrWrap { margin-bottom: 8px; }
.qrWrap p { margin: 0; color: #767683; font-size: 11px; line-height: 1.6; }
.dataList { display: grid; max-height: 520px; overflow-y: auto; }
.dataRow { padding: 17px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.dataRow:last-child { border-bottom: 0; }
.dataRow > div:first-child { display: grid; gap: 7px; }
.dataRow b { font-size: 13px; }
.dataRow small { color: #62626e; font-size: 9px; }
.rowRight { display: flex; align-items: center; gap: 12px; }
.rowRight strong { font-size: 12px; }
.orderStatus { border-radius: 99px; padding: 5px 8px; font-size: 9px; background: #22222a; color: #aaaab5; }
.orderStatus.delivered { background: #12291f; color: #69d69e; }
.orderStatus.awaiting_confirmation { background: #2a2115; color: #d1a85b; }
.orderStatus.rejected { background: #2d171b; color: #e27c89; }
.deliveryCode { grid-column: 1/-1; display: flex!important; align-items: center; gap: 10px; padding: 11px; border-radius: 10px; background: #07070a; border: 1px solid var(--line); }
.deliveryCode span { color: #696976; font-size: 9px; }
.deliveryCode code { color: #c7befd; font-size: 11px; overflow-wrap: anywhere; flex: 1; }
.deliveryCode button { border: 0; border-radius: 7px; background: #25252d; color: #c8c8d0; padding: 6px 9px; font-size: 9px; cursor: pointer; }
.emptyState { color: #656571; min-height: 160px; display: grid; place-items: center; font-size: 12px; }
.rechargeHistory { margin-top: 15px; }
.historyGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.historyGrid > div { border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: grid; gap: 7px; }
.historyGrid span, .historyGrid small { color: #676773; font-size: 9px; }
.historyGrid b { font-size: 15px; }

.products { padding: 110px 0; border-top: 1px solid var(--line); }
.sectionHead { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.sectionHead h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.05em; margin: 9px 0 0; }
.sectionHead > p { color: var(--muted); font-size: 14px; }
.kicker { color: #777787; letter-spacing: .18em; font-size: 10px; font-weight: 700; }
.productGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.productCard {
  min-height: 510px; position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.productCard:before { content: ""; position: absolute; inset: 0; opacity: .17; pointer-events: none; }
.productCard.violet:before { background: radial-gradient(circle at 100% 0, #8956ff, transparent 42%); }
.productCard.blue:before { background: radial-gradient(circle at 100% 0, #3768ff, transparent 42%); }
.productCard.cyan:before { background: radial-gradient(circle at 100% 0, #1bbfd7, transparent 42%); }
.productCard:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.24); }
.popular { position: absolute; top: 0; right: 25px; background: #6752ef; padding: 7px 11px; border-radius: 0 0 8px 8px; font-size: 10px; font-weight: 700; }
.cardTop { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { color: #858594; font-size: 12px; }
.availability { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #7eae9a; }
.availability.soldOut { color: #777784; }
.productIcon { margin: 34px 0 22px; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.04); font-weight: 800; }
.productCard h3 { font-size: 25px; margin: 0 0 10px; letter-spacing: -.035em; }
.productCard > p { min-height: 43px; color: var(--muted); line-height: 1.55; font-size: 14px; margin: 0; }
.price { margin: 25px 0 22px; display: flex; align-items: baseline; gap: 5px; }
.price small { color: #777784; font-size: 17px; }
.price strong { font-size: 28px; letter-spacing: -.04em; }
.productCard ul { margin: 0 0 28px; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 11px; color: #b1b1bc; font-size: 12px; }
.productCard li:before { content: "✓"; margin-right: 9px; color: #8c7fff; }
.productCard > button {
  position: absolute; left: 28px; right: 28px; bottom: 28px; height: 46px; border: 1px solid var(--line); border-radius: 11px;
  background: rgba(255,255,255,.055); color: white; display: flex; justify-content: space-between; align-items: center; padding: 0 17px; cursor: pointer;
}
.productCard > button:hover { background: #f3f3f6; color: #0a0a0e; }
.productCard > button:disabled { background: rgba(255,255,255,.025); color: #62626d; cursor: not-allowed; }
.productCard > button:disabled:hover { background: rgba(255,255,255,.025); color: #62626d; }

.process { padding: 100px 0 130px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.steps > div { padding: 34px 30px 10px 0; }
.steps b { color: #555561; font-size: 12px; }
.steps h3 { margin: 44px 0 10px; font-size: 18px; }
.steps p { color: var(--muted); font-size: 13px; }
.notice {
  margin-bottom: 100px; padding: 54px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  display: grid; grid-template-columns: .8fr 1.4fr; gap: 80px;
}
.noticeTitle h2 { font-size: 38px; letter-spacing: -.05em; margin: 10px 0; }
.noticeTitle p { color: var(--muted); font-size: 13px; }
.noticeList { display: grid; }
.noticeList > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.noticeList > div:first-child { padding-top: 0; }
.noticeList > div:last-child { border-bottom: 0; padding-bottom: 0; }
.noticeList b { color: #555562; font-size: 11px; padding-top: 2px; }
.noticeList p { margin: 0; display: grid; gap: 7px; }
.noticeList strong { font-size: 14px; }
.noticeList span { color: var(--muted); font-size: 12px; line-height: 1.6; }
footer { min-height: 150px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: var(--muted); font-size: 12px; }
footer p { text-align: center; } footer small { text-align: right; }
footer small a { color: #666672; text-decoration: none; }
footer small a:hover { color: #aaaab5; }

.modalBackdrop { position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.78); backdrop-filter: blur(13px); display: grid; place-items: center; padding: 20px; }
.modalBackdrop[hidden] { display: none; }
.modal { width: min(480px, 100%); background: #101016; border: 1px solid rgba(255,255,255,.14); border-radius: 23px; padding: 36px; box-shadow: 0 30px 100px #000; position: relative; }
.modal .close { position: absolute; right: 18px; top: 14px; border: 0; background: none; color: #777; font-size: 28px; cursor: pointer; }
.modal h2 { font-size: 28px; margin: 10px 0; letter-spacing: -.04em; }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.modalIntro { margin-top: 0!important; }
.authModal { width: min(440px,100%); max-height: calc(100vh - 30px); overflow-y: auto; }
.websiteField { position: absolute!important; left: -9999px!important; opacity: 0!important; }
.formMeta { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; }
.formMeta label { display: flex; align-items: center; gap: 7px; margin: 0; }
.formMeta input { width: 15px; height: 15px; }
.formMeta a { color: #7b6bed; text-decoration: none; font-size: 11px; }
.switchAuth { text-align: center; margin: 20px 0 0!important; }
.switchAuth button { border: 0; background: none; color: #8172f6; cursor: pointer; }
.checkoutPrice { margin: 18px 0; color: #7d7d89; font-size: 12px; }
.checkoutPrice strong { color: white; font-size: 24px; margin-left: 6px; }
.payOptions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payOptions label { display: grid; grid-template-columns: 18px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin: 0; color: white; cursor: pointer; }
.payOptions input { width: 15px; height: 15px; grid-row: 1/3; padding: 0; }
.payOptions small { color: #71717d; font-size: 9px; margin-top: 4px; }
.alipayCheckout { margin-top: 13px; }
.checkoutNote { margin: 13px 0 0!important; color: #666671!important; font-size: 10px!important; }
.siteToast { position: fixed; z-index: 199; top: 18px; left: 50%; transform: translateX(-50%); background: #f0f0f5; color: #151519; border-radius: 11px; padding: 12px 17px; font-size: 12px; box-shadow: 0 15px 50px rgba(0,0,0,.4); transition: opacity .3s,transform .3s; }
.siteToast.hide { opacity: 0; transform: translate(-50%,-10px); pointer-events: none; }
.checkoutIntro strong { color: white; font-size: 17px; }
.qrWrap { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #08080c; }
.qrWrap img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 58%; border-radius: 9px; }
.qrWrap div { display: grid; gap: 8px; }
.qrWrap b { font-size: 14px; }
.qrWrap span { color: #6fa7ff; font-size: 13px; }
.modal label { display: block; color: #aaaab5; font-size: 12px; margin: 15px 0 7px; }
.modal input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #08080c; color: white; padding: 0 14px; outline: none; }
.modal input:focus { border-color: #6854eb; }
.modalAction { width: 100%; height: 49px; border: 0; border-radius: 10px; background: #6955ef; color: white; margin-top: 22px; cursor: pointer; }
.modalAction:disabled { background: #272731; color: #777; cursor: not-allowed; }
.paymentHint { display: block; margin-top: 12px; color: #73737f; text-align: center; font-size: 10px; line-height: 1.5; }

@media (max-width: 800px) {
  .navLinks { display: none; }
  .navAccount { margin-left: auto; }
  .userChip small, .logoutLink { display: none; }
  .accountSummary, .accountGrid { grid-template-columns: 1fr; }
  .historyGrid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 620px; padding-top: 100px; }
  .hero h1 { font-size: 54px; }
  .desktopBreak { display: none; }
  .productGrid { grid-template-columns: 1fr; }
  .productCard { min-height: 490px; }
  .sectionHead { display: block; }
  .sectionHead > p { margin-top: 12px; }
  .products { padding: 78px 0; }
  .process { padding: 70px 0 90px; }
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .steps h3 { margin-top: 22px; }
  .notice { padding: 30px; grid-template-columns: 1fr; gap: 35px; margin-bottom: 65px; }
  footer { padding: 40px 0; grid-template-columns: 1fr; gap: 18px; text-align: center; }
  footer p, footer small { text-align: center; margin: 0; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 26px, 1180px); }
  .nav { height: 68px; }
  .brand > span:last-child { display: none; }
  .navLogin, .navRegister { height: 34px; padding: 0 12px; }
  .userChip { padding-right: 7px; }
  .account { padding: 70px 0; }
  .accountSummary article { min-height: 135px; }
  .accountPanel { padding: 20px; }
  .historyGrid, .payOptions { grid-template-columns: 1fr; }
  .dataRow { grid-template-columns: 1fr; }
  .rowRight { justify-content: space-between; }
  .qrWrap { align-items: flex-start; }
  .qrWrap img { width: 80px; height: 80px; }
  .heroActions { flex-direction: column; }
  .hero h1 { font-size: 46px; }
  .heroCopy { font-size: 15px; }
  .trustRow { gap: 8px; flex-wrap: wrap; }
  .modal { padding: 30px 22px; }
}

.adminPage { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; background: #07070a; }
.adminSidebar { border-right: 1px solid var(--line); padding: 30px 24px; display: flex; flex-direction: column; }
.adminSidebar nav { display: grid; gap: 7px; margin-top: 60px; }
.adminSidebar nav a, .adminSidebar nav span { padding: 12px 13px; border-radius: 9px; color: #6f6f7b; font-size: 13px; text-decoration: none; }
.adminSidebar nav .active { color: white; background: rgba(255,255,255,.065); }
.adminSidebar > small { color: #4f4f59; font-size: 10px; margin-top: auto; }
.adminMain { padding: 38px 46px 70px; overflow: hidden; }
.adminMain header { display: flex; justify-content: space-between; align-items: center; }
.adminMain h1 { font-size: 35px; letter-spacing: -.05em; margin: 7px 0 0; }
.adminIdentity { border: 1px solid var(--line); border-radius: 99px; padding: 9px 13px; font-size: 11px; color: #a4a4af; display: flex; align-items: center; gap: 8px; }
.adminIdentity i { width: 7px; height: 7px; border-radius: 50%; background: #48e6a5; }
.adminStats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 36px 0 20px; }
.adminStats article { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(255,255,255,.025); display: grid; gap: 9px; }
.adminStats span, .adminStats small { color: #73737f; font-size: 11px; }
.adminStats strong { font-size: 29px; }
.inventoryPanel { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); overflow: hidden; }
.panelHead { padding: 24px; display: flex; justify-content: space-between; align-items: center; }
.panelHead h2 { font-size: 18px; margin: 0 0 7px; }
.panelHead p { color: #72727e; font-size: 11px; margin: 0; }
.panelHead button { border: 0; background: #2c2c34; color: #71717c; height: 37px; padding: 0 14px; border-radius: 9px; }
.inventoryTable { border-top: 1px solid var(--line); }
.tableRow { min-width: 680px; display: grid; grid-template-columns: 1.6fr .8fr .6fr .7fr .7fr; align-items: center; min-height: 58px; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #aaaab4; }
.tableRow strong { color: #e3e3e9; }
.tableRow code { color: #747481; }
.tableRow b { color: white; }
.tableRow em { color: #d99978; font-style: normal; }
.tableHeader { min-height: 38px; color: #555560; font-size: 9px; text-transform: uppercase; }
.adminNote { color: #5e5e6a; font-size: 10px; padding: 4px 24px 18px; }
@media (max-width: 800px) {
  .adminPage { grid-template-columns: 1fr; }
  .adminSidebar { display: none; }
  .adminMain { padding: 28px 18px; }
  .adminStats { grid-template-columns: 1fr; }
  .inventoryPanel { overflow-x: auto; }
}
