:root { --ink: #173c36; --ink-deep: #102d29; --vermilion: #b84732; --gold: #8b642c; --gold-soft: #ead5ae; --paper: #f5f1e7; --surface: #fffdf9; --line: #e9e1d4; --muted: #666d67; --dark: #222b29; }
* { box-sizing: border-box; }
body { margin: 0; background: #dce3dd; color: var(--dark); font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(184, 71, 50, .34); outline-offset: 3px; }
.phone-shell { width: min(100%, 430px); min-height: 100vh; margin: 0 auto; position: relative; overflow: hidden; background: var(--paper); box-shadow: 0 0 32px rgba(16, 45, 41, .16); }
.app-top { height: 14px; display: flex; gap: 4px; align-items: center; justify-content: center; background: var(--surface); }
.app-top span { width: 3px; height: 3px; background: var(--ink); border-radius: 50%; opacity: .55; }
.page { display: none; min-height: calc(100vh - 76px); padding-bottom: 86px; }
.page.active { display: block; animation: page-in .26s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.home-header { height: 82px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); }
.brand-lockup { display: grid; grid-template-columns: 34px auto; align-items: center; column-gap: 9px; }.brand-mark { grid-row: span 2; color: var(--gold); font-family: "Noto Serif SC"; font-size: 12px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; }
.brand-lockup h1, .page-header h1 { margin: 0; color: var(--ink-deep); font: 600 21px "Noto Serif SC", serif; letter-spacing: 0; }.brand-subtitle { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: transparent; color: var(--ink); border: 1px solid var(--line); }.icon-button.light { background: #f7f4ed; }.icon-button svg { width: 18px; }
.search-field { margin: 0 16px 16px; width: calc(100% - 32px); height: 44px; padding: 0 13px; border-radius: 4px; background: #eeeae1; color: #6d756d; display: flex; gap: 9px; align-items: center; text-align: left; font-size: 13px; }.search-field svg { width: 17px; }.search-field kbd { margin-left: auto; color: var(--gold); border: 1px solid #d8c9af; border-radius: 3px; padding: 1px 5px; font-size: 10px; }
.hero { height: 400px; position: relative; overflow: hidden; background: var(--ink-deep); color: white; }.hero-art { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 43, 38, .86), rgba(8, 43, 38, .24)), linear-gradient(0deg, rgba(13, 44, 40, .24), transparent 42%), url("assets/temple-reference.png") 50% 87% / cover; filter: saturate(.62) contrast(1.08); transform: scale(1.05); }.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(135deg, transparent 49.7%, rgba(235, 213, 174, .16) 50%, transparent 50.3%); background-size: 18px 18px; opacity: .28; pointer-events: none; }.hero-copy { position: relative; z-index: 1; padding: 46px 27px; }.hero-copy p { margin: 0 0 13px; color: var(--gold-soft); letter-spacing: .12em; font-size: 10px; }.hero-copy h2 { margin: 0; font: 600 33px/1.37 "Noto Serif SC", serif; letter-spacing: 0; text-shadow: 0 2px 14px rgba(0,0,0,.18); }.text-action { margin-top: 24px; color: #fff8e9; border-bottom: 1px solid rgba(234,213,174,.65); padding: 0 0 6px; background: transparent; font-size: 13px; }.text-action svg, .plain-link svg { width: 14px; vertical-align: -2px; }.hero-seal { position: absolute; z-index: 1; right: 23px; bottom: 22px; width: 43px; height: 53px; padding-top: 7px; border: 1px solid rgba(234, 213, 174, .7); color: var(--gold-soft); writing-mode: vertical-rl; text-align: center; font: 600 17px "Noto Serif SC"; }
.home-content { padding: 27px 18px 22px; background: var(--paper); }.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 17px; }.section-title p { margin: 0 0 3px; font-size: 10px; color: var(--gold); letter-spacing: .13em; }.section-title h2 { margin: 0; color: var(--ink-deep); font: 600 21px "Noto Serif SC", serif; }.plain-link { padding: 4px 0; background: transparent; color: var(--muted); font-size: 12px; }.ritual-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }.ritual-item { padding: 0; color: var(--ink); background: transparent; display: grid; justify-items: center; gap: 5px; }.ritual-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold); border-radius: 50%; background: #ece2d0; }.ritual-icon svg { width: 21px; }.ritual-item b { font-size: 12px; font-weight: 600; }.ritual-item small { font-size: 9px; color: var(--muted); }.featured-product { min-height: 137px; padding: 10px; display: grid; grid-template-columns: 104px 1fr 32px; gap: 13px; align-items: center; background: var(--surface); border: 1px solid var(--line); }.product-art { width: 104px; height: 116px; background-image: linear-gradient(rgba(255,255,255,.02), rgba(255,255,255,.02)), url("assets/catalog-reference.png"); background-size: 390px auto; background-repeat: no-repeat; }.hand-beads { background-position: 44% 91%; }.featured-copy { min-width: 0; }.featured-copy p { margin: 0 0 5px; color: var(--gold); font-size: 10px; letter-spacing: .1em; }.featured-copy h3 { margin: 0; color: var(--ink-deep); font: 600 15px/1.45 "Noto Serif SC"; }.featured-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }.featured-copy strong { display: block; color: var(--vermilion); margin-top: 10px; font-size: 15px; }.round-add { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--vermilion); }.round-add svg { width: 16px; }
.page-header { padding: 27px 19px 17px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); }.page-header p { margin: 0 0 4px; color: var(--gold); font-size: 9px; letter-spacing: .14em; }.page-header.compact { padding-bottom: 20px; border-bottom: 1px solid var(--line); }.page-header.compact span { color: var(--muted); font-size: 12px; }.catalog-search { display: flex; align-items: center; gap: 8px; height: 42px; margin: 16px 18px; padding: 0 13px; background: #ebe9e2; border-radius: 3px; color: var(--muted); }.catalog-search svg { width: 17px; }.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--dark); font-size: 14px; }.catalog-search input::placeholder { color: #8c8a82; }.category-tabs { display: flex; overflow-x: auto; padding: 0 18px 14px; gap: 18px; border-bottom: 1px solid var(--line); scrollbar-width: none; }.category-tabs::-webkit-scrollbar { display: none; }.category-tabs button { flex: 0 0 auto; padding: 5px 0 8px; background: transparent; color: var(--muted); font-size: 13px; position: relative; }.category-tabs button.active { color: var(--vermilion); font-weight: 700; }.category-tabs button.active::after { content: ""; position: absolute; height: 2px; background: var(--vermilion); left: 1px; right: 1px; bottom: 0; }.catalog-summary { padding: 15px 18px 6px; color: var(--muted); font-size: 11px; }.product-list { padding: 0 18px 18px; }.product-row { display: grid; grid-template-columns: 88px 1fr 32px; gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }.product-thumb { height: 99px; background-image: url("assets/catalog-reference.png"); background-size: 365px auto; background-repeat: no-repeat; background-color: #eee1c9; }.thumb-1 { background-position: 33% 28%; }.thumb-2 { background-position: 39% 49%; }.thumb-3 { background-position: 45% 89%; }.thumb-4 { background-position: 76% 22%; }.product-info { align-self: stretch; display: flex; flex-direction: column; min-width: 0; }.product-info .tag { color: var(--gold); font-size: 10px; letter-spacing: .08em; }.product-info h3 { margin: 3px 0 0; color: var(--ink-deep); font: 600 15px/1.45 "Noto Serif SC"; }.product-price { margin-top: auto; padding-top: 6px; color: var(--vermilion); font-weight: 600; font-size: 15px; }.product-price del { margin-left: 4px; font-weight: 400; color: #94938e; font-size: 11px; }.product-row .round-add { align-self: end; margin-bottom: 3px; }
.cart-content { padding: 20px 18px 154px; min-height: calc(100vh - 160px); }.cart-empty { min-height: 440px; display: grid; align-content: center; justify-items: center; text-align: center; color: var(--muted); }.empty-art { width: 95px; height: 95px; color: #b9bcb4; border: 2px solid #c9cbc4; transform: rotate(-3deg); display: grid; place-items: center; margin-bottom: 21px; position: relative; }.empty-art::before { content: ""; position: absolute; width: 60px; height: 44px; border: 2px solid #c9cbc4; border-radius: 3px; }.empty-art svg { z-index: 1; width: 35px; }.cart-empty h2 { margin: 0; font: 600 22px "Noto Serif SC"; color: var(--ink-deep); }.cart-empty p { font-size: 13px; margin: 8px 0 20px; }.primary-button { min-width: 150px; padding: 12px 18px; color: white; background: var(--ink); border-radius: 3px; font-weight: 600; }.cart-list { display: grid; gap: 12px; }.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.cart-item .product-thumb { width: 76px; height: 86px; }.cart-item h3 { margin: 2px 0 8px; font: 600 14px/1.45 "Noto Serif SC"; }.cart-item strong { color: var(--vermilion); font-size: 14px; }.quantity-control { display: flex; align-self: end; border: 1px solid var(--line); }.quantity-control button { width: 30px; height: 30px; background: var(--surface); color: var(--ink); }.quantity-control span { width: 28px; display: grid; place-items: center; font-size: 12px; }.cart-footer { position: fixed; z-index: 3; bottom: 76px; left: 50%; width: min(100%, 430px); padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,249,.97); border-top: 1px solid var(--line); transform: translateX(-50%); }.cart-footer b { color: var(--vermilion); font-size: 20px; }.cart-footer button { min-width: 110px; background: var(--vermilion); }
.profile-hero { height: 218px; position: relative; overflow: hidden; background: #e8ddc6; }.profile-pattern { position: absolute; inset: 0; opacity: .55; background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(187, 139, 69, .22) 8px 9px), linear-gradient(135deg, transparent 39%, rgba(187,139,69,.3) 39.3% 39.6%, transparent 40%); background-size: auto, 115px 115px; }.profile-content { position: relative; height: 100%; padding: 56px 24px; display: flex; align-items: center; gap: 16px; }.avatar { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(255,253,249,.78); border: 1px solid rgba(187,139,69,.35); }.avatar svg { width: 31px; }.profile-content p { margin: 0 0 2px; color: var(--gold); font-size: 11px; letter-spacing: .1em; }.profile-content h1 { margin: 0; font: 600 25px "Noto Serif SC"; color: var(--ink-deep); }.profile-content button { margin-top: 6px; padding: 0; color: var(--ink); background: transparent; font-size: 12px; }.profile-content button svg { width: 13px; vertical-align: -2px; }.member-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-bottom: 1px solid var(--line); }.member-strip button { height: 78px; display: grid; place-content: center; gap: 4px; background: transparent; color: var(--ink); border-right: 1px solid var(--line); }.member-strip button:last-child { border-right: 0; }.member-strip b { font: 600 15px "Noto Serif SC"; }.member-strip span { font-size: 10px; color: var(--muted); }.member-strip svg { width: 19px; margin: auto; color: var(--gold); }.profile-section { margin: 14px 14px 0; padding: 17px 14px; background: var(--surface); border: 1px solid var(--line); }.section-title.mini { margin-bottom: 14px; align-items: center; }.section-title.mini h2 { font-size: 17px; }.order-actions, .service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }.order-actions button, .service-grid button { padding: 6px 0; background: transparent; color: var(--ink); display: grid; justify-items: center; gap: 8px; font-size: 10px; }.order-actions svg, .service-grid svg { width: 22px; color: var(--gold); stroke-width: 1.7; }.service-grid { row-gap: 16px; }
.bottom-nav { position: fixed; z-index: 4; bottom: 0; left: 50%; width: min(100%, 430px); height: 76px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,253,249,.97); border-top: 1px solid var(--line); transform: translateX(-50%); }.nav-item { position: relative; display: grid; place-content: center; gap: 4px; background: transparent; color: #78807b; font-size: 10px; }.nav-item svg { width: 21px; height: 21px; stroke-width: 1.8; margin: auto; }.nav-item.active { color: var(--vermilion); font-weight: 700; }.cart-nav-icon { position: relative; }.cart-nav-icon em { display: none; position: absolute; top: -7px; right: -12px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--vermilion); color: white; font-size: 9px; font-style: normal; line-height: 15px; }.cart-nav-icon em.has-items { display: block; }.toast { position: fixed; left: 50%; bottom: 93px; z-index: 10; transform: translate(-50%, 14px); width: max-content; max-width: calc(100% - 36px); padding: 10px 13px; border-radius: 3px; background: var(--ink-deep); color: white; opacity: 0; pointer-events: none; font-size: 12px; transition: .22s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.login-dialog { width: min(360px, calc(100% - 36px)); border: 0; padding: 28px; background: var(--surface); color: var(--dark); box-shadow: 0 18px 55px rgba(0,0,0,.28); }.login-dialog::backdrop { background: rgba(11, 39, 35, .5); }.login-dialog p { margin: 0; color: var(--gold); font-size: 10px; letter-spacing: .14em; }.login-dialog h2 { margin: 6px 0; font: 600 24px "Noto Serif SC"; color: var(--ink-deep); }.login-dialog > span { color: var(--muted); font-size: 12px; }.login-dialog label { display: grid; gap: 7px; margin: 22px 0 14px; color: var(--ink); font-size: 12px; }.login-dialog input { height: 43px; padding: 0 11px; border: 1px solid var(--line); border-radius: 2px; }.login-dialog .primary-button { width: 100%; }.dialog-close { float: right; padding: 3px; background: transparent; color: var(--muted); }.dialog-close svg { width: 18px; }
@media (min-width: 700px) { body { padding: 18px; }.phone-shell { min-height: calc(100vh - 36px); border-radius: 12px; }.page { min-height: calc(100vh - 112px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.product-thumb { background-size: 385px auto; }
.thumb-1 { background-position: -99px -119px; }
.thumb-2 { background-position: -100px -240px; }
.thumb-3 { background-position: -100px -360px; }
.thumb-4 { background-position: -100px -480px; }
.form-error { display: block; min-height: 18px; color: var(--vermilion); font-size: 11px; }
.sheet-dialog { width: min(360px, calc(100% - 36px)); border: 0; padding: 28px; background: var(--surface); color: var(--dark); box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.sheet-dialog::backdrop { background: rgba(11, 39, 35, .5); }
.sheet-dialog p { margin: 0; color: var(--gold); font-size: 10px; letter-spacing: .14em; }
.sheet-dialog h2 { margin: 6px 0 8px; font: 600 24px "Noto Serif SC"; color: var(--ink-deep); }
.sheet-dialog > span { display: block; color: var(--muted); font-size: 13px; line-height: 1.7; }
.sheet-dialog .primary-button { width: 100%; margin-top: 22px; }
.sort-options { display: grid; gap: 10px; margin-top: 20px; }
.sort-options label { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.sort-options input { accent-color: var(--vermilion); }
@media (max-width: 340px) { .hero-copy h2 { font-size: 30px; }.featured-product { grid-template-columns: 88px 1fr 30px; gap: 10px; }.product-art { width: 88px; }.home-content { padding-left: 14px; padding-right: 14px; }.profile-section { margin-left: 10px; margin-right: 10px; } }
.hand-beads { background-position: -100px -486px; }
@media (min-width: 700px) { .bottom-nav { bottom: 18px; }.cart-footer { bottom: 94px; } }
