/* 前台模板 3 的通用样式，主题变量由 footer.jsp 输出。 */

/* 兼容旧页面的主操作按钮，保留原有尺寸、事件和表单行为。 */
body .button.bg-yellow,
body .button.bg-blue,
body .button.bg-main,
body .button.bg-yellow:hover,
body .button.bg-blue:hover,
body .button.bg-main:hover,
body .button.bg-yellow:focus,
body .button.bg-blue:focus,
body .button.bg-main:focus {
    background-color:var(--theme-primary);
    border-color:var(--theme-primary);
    color:var(--theme-on-primary);
}

body .blue,
body .text-blue,
body .text-main {
    color:var(--theme-primary);
}

body .border-blue,
body .border-main {
    border-color:var(--theme-primary);
}

/* 已有外框的记录卡片与结构图节点只替换边框颜色。 */
body .finance-record,
body .orders-card,
body .messages-card,
body .business-content .message,
body .business-address,
body .business-tree .tree,
body.business-wangluotu .business-diagram table.tablefilter,
body .new-category-li,
body .store-cart .product-box,
body .w-community a {
    border-color:var(--theme-primary);
}

/* 数据表格用内描边保留原有列宽和内部网格线，跳过用来布局的空表格。 */
body :is(.table-container > table, table.table-bordered, table:has(> thead)) {
    outline:1px solid var(--theme-primary);
    outline-offset:-1px;
}

/* 模板 12：自然绿色商城。这里只定义表现，原开关、金额、订单状态和提交方式均保留。 */
html[data-template="12"] {
    --t12-page: #fff4f3;
    --t12-card: #ffffff;
    --t12-ink: #3d2127;
    --t12-muted: #9b8283;
    --t12-line: #f0dfe0;
    --t12-shadow: 0 5px 18px rgba(134, 50, 65, .055);
    --t12-radius: 17px;
    background:#fff6f4;
    color-scheme:light;
    scroll-padding-top:76px;
}
html[data-template="12"] body {
    box-sizing:border-box;
    max-width:520px;
    min-height:100vh;
    margin:0 auto;
    background:var(--t12-page) !important;
    color:var(--t12-ink);
    font:14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-wrap:break-word;
}
html[data-template="12"] body *,
html[data-template="12"] body *::before,
html[data-template="12"] body *::after { box-sizing:border-box; }
html[data-template="12"] body { --finance-blue: var(--theme-primary); --finance-text: var(--t12-ink); --finance-muted: var(--t12-muted); --finance-soft: #f9f4f2; --finance-line: var(--t12-line); --w-blue: var(--theme-primary); --w-text: var(--t12-ink); --w-muted: var(--t12-muted); --w-soft: #fff4ee; --w-line: var(--t12-line); }
html[data-template="12"] body a { text-decoration:none; }
html[data-template="12"] .finance-shell,
html[data-template="12"] .w-shell { width:100%; max-width:520px; padding:0 12px 14px; margin:0 auto; }
html[data-template="12"] .finance-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:62px;
    padding:12px 14px;
    margin:0 -12px 14px;
    border:0;
    background:var(--t12-header-decoration) right center / cover no-repeat, linear-gradient(120deg, #ffedea, #ffedea);
    color:#ffffff;
    box-shadow:none;
    z-index:20;
}
html[data-template="12"] .finance-header h1 { margin:0; font-size:19px; font-weight:650; line-height:1.4; }
html[data-template="12"] .finance-header .finance-icon-button { display:inline-flex; align-items:center; justify-content:center; min-width:36px; min-height:36px; color:#ffffff; }
html[data-template="12"] .finance-header .finance-icon { width:23px; height:23px; }
html[data-template="12"] h2 { color:var(--t12-ink); }
html[data-template="12"] .finance-section-title,
html[data-template="12"] .registration-section-title { margin:17px 0 12px; padding-top:0; border:0; font-size:17px; }

/* 轻描边、白色圆角卡片；账户结构图使用原有等级/激活状态颜色。 */
html[data-template="12"] .finance-record,
html[data-template="12"] .orders-card,
html[data-template="12"] .messages-card,
html[data-template="12"] .business-address,
html[data-template="12"] .profile-intro,
html[data-template="12"] .password-intro,
html[data-template="12"] .registration-intro,
html[data-template="12"] .finance-info-card,
html[data-template="12"] .finance-empty,
html[data-template="12"] .app-download-card,
html[data-template="12"] .app-install-guide,
html[data-template="12"] .qr-card,
html[data-template="12"] .promotion-link-card,
html[data-template="12"] .product-summary,
html[data-template="12"] .store-cart .product-box,
html[data-template="12"] .new-category-li,
html[data-template="12"] .business-content .message {
    margin-bottom:12px;
    border:1px solid var(--t12-line);
    border-radius:var(--t12-radius);
    background:#fff6f4;
    box-shadow:var(--t12-shadow);
}
html[data-template="12"] .finance-record,
html[data-template="12"] .orders-card,
html[data-template="12"] .business-address { padding:15px; }
html[data-template="12"] .finance-record .row { gap:10px; padding:5px 0; }
html[data-template="12"] .finance-empty { padding:24px 16px; color:var(--t12-muted); }
html[data-template="12"] .finance-account-card { background:#fff6f4; border-radius:var(--t12-radius); }
html[data-template="12"] .finance-balance-card {
    padding:19px;
    border:1px solid #f7ddd8;
    border-radius:var(--t12-radius);
    background:url("festival-clouds.svg") right bottom / 310px auto no-repeat, linear-gradient(120deg, #fff6f4, #ffedea);
}
html[data-template="12"] .finance-balance-name { color:var(--theme-primary); font-size:18px; }
html[data-template="12"] .finance-balance-label { color:#a47b74; font-size:12px; }
html[data-template="12"] .finance-balance-card strong { color:#4f1d14; font-size:clamp(25px, 7vw, 34px); }
html[data-template="12"] .withdrawal-balance-row { justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
html[data-template="12"] .finance-form { margin-bottom:12px; }
html[data-template="12"] .finance-field { margin-bottom:14px; }
html[data-template="12"] .finance-field > label,
html[data-template="12"] .finance-field > .finance-label { margin-bottom:7px; color:var(--t12-ink); font-size:14px; }
html[data-template="12"] input:not([type]),
html[data-template="12"] input[type="text"],
html[data-template="12"] input[type="password"],
html[data-template="12"] input[type="number"],
html[data-template="12"] input[type="search"],
html[data-template="12"] input[type="email"],
html[data-template="12"] input[type="tel"],
html[data-template="12"] input[type="url"],
html[data-template="12"] input[type="date"],
html[data-template="12"] select,
html[data-template="12"] textarea {
    max-width:100%;
    border:1px solid #f7ddd8;
    border-radius:12px;
    background-color:#fff6f4;
    color:var(--t12-ink);
    box-shadow:none;
}
html[data-template="12"] .finance-field input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]),
html[data-template="12"] .finance-field select { min-height:46px; padding-top:10px; padding-bottom:10px; font-size:16px; }
html[data-template="12"] input::placeholder,
html[data-template="12"] textarea::placeholder { color:#a47b74; opacity:1; }
html[data-template="12"] input[type="checkbox"],
html[data-template="12"] input[type="radio"] { accent-color:var(--theme-primary); }
html[data-template="12"] input:focus,
html[data-template="12"] textarea:focus,
html[data-template="12"] select:focus { border-color:var(--theme-primary); outline-color:var(--theme-primary); }

/* 主操作使用绿色胶囊按钮，危险操作仍保留原来的危险色。 */
html[data-template="12"] .finance-submit,
html[data-template="12"] .business-content .submit-btn,
html[data-template="12"] .business-content .open-btn,
html[data-template="12"] .product-primary,
html[data-template="12"] .registration-agree,
html[data-template="12"] .app-primary-link,
html[data-template="12"] .promotion-copy-submit,
html[data-template="12"] .store-search button[type="submit"],
html[data-template="12"] .store-checkout,
html[data-template="12"] .button.bg-yellow,
html[data-template="12"] .button.bg-blue,
html[data-template="12"] .button.bg-main,
html[data-template="12"] .btnzbz,
html[data-template="12"] .w-logout a {
    min-height:44px;
    border:1px solid var(--theme-primary);
    border-radius:999px;
    background:linear-gradient(115deg, #ffdfd9, #df2707);
    color:#ffffff !important;
    box-shadow:0 3px 8px rgba(161, 53, 72, .10);
    text-align:center;
}
html[data-template="12"] .finance-submit-bar,
html[data-template="12"] .product-action-bar {
    max-width:520px;
    padding:12px;
    border-color:var(--t12-line);
    background:rgba(255, 255, 255, .98);
}
html[data-template="12"] .finance-link-button,
html[data-template="12"] .finance-code-button,
html[data-template="12"] .front-pagination-button,
html[data-template="12"] .orders-action,
html[data-template="12"] .app-secondary-link { border-color:#f7ddd8; border-radius:999px; background:#fff6f4; color:var(--theme-primary); }
html[data-template="12"] .finance-pagination,
html[data-template="12"] .orders-pagination { justify-content:center; gap:7px; }
html[data-template="12"] .finance-pagination-summary { color:var(--t12-muted); text-align:center; font-size:12px; }
html[data-template="12"] .finance-icon-button,
html[data-template="12"] .business-add { color:var(--theme-primary); }
html[data-template="12"] .finance-header .finance-icon-button { color:#ffffff; }

/* 首页：绿叶页头、紧凑搜索、圆角广告与商品卡片。配置的广告和商品图片原样使用。 */
html[data-template="12"] .store-shouye .finance-shell { padding-top:0; }
html[data-template="12"] .t12-home-header {
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 -12px;
    padding:16px 13px 10px;
    background:linear-gradient(115deg, #ffedea, #ffedea);
    color:white;
}
html[data-template="12"] .t12-store-brand { display:flex; flex:0 1 145px; align-items:center; gap:7px; min-width:0; font-size:17px; font-weight:700; line-height:1.35; }
html[data-template="12"] .t12-store-brand svg { flex:0 0 25px; width:25px; height:28px; }
html[data-template="12"] .t12-home-header .store-search { flex:1; min-width:0; margin:0; }
html[data-template="12"] .t12-home-header .store-search form { gap:4px; padding:3px 5px; border-radius:999px; background:#fff6f4; }
html[data-template="12"] .t12-home-header .store-search input[type="text"] { width:0; min-height:34px; padding:6px 4px; border:0; border-radius:0; background:transparent; font-size:12px; }
html[data-template="12"] .t12-home-header .store-search .store-language { flex:0 0 27px; min-height:34px; }
html[data-template="12"] .t12-home-header .store-search button[type="submit"] { min-height:32px; padding:5px 9px; font-size:12px; }
html[data-template="12"] .store-tabs { gap:15px; margin:0 -12px 12px; padding:7px 15px 13px; background:#fff6f4; }
html[data-template="12"] .store-tabs a { color:#ffffff !important; font-size:13px; }
html[data-template="12"] .store-banner { overflow:hidden; margin:0 0 12px; border-radius:17px; box-shadow:var(--t12-shadow); }
html[data-template="12"] .store-slides img { width:100%; height:auto; aspect-ratio:2.38; object-fit:cover; }
html[data-template="12"] .store-shortcuts { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:5px; padding:13px 8px 10px; margin:0 0 12px; border:1px solid var(--t12-line); border-radius:17px; background:#fff6f4; box-shadow:var(--t12-shadow); }
html[data-template="12"] .store-shortcuts .item { min-width:0; }
html[data-template="12"] .store-shortcuts .picicon > div { width:41px !important; height:41px !important; margin:auto; border-radius:13px !important; background:linear-gradient(145deg, #fff6f4, #ffedea); }
html[data-template="12"] .store-shortcuts .store-shortcut-icon { color:#4f1d14; }
html[data-template="12"] .store-shortcuts .item:nth-child(3) .picicon > div { background:#fff6f4; }
html[data-template="12"] .store-shortcuts .item:nth-child(3) .store-shortcut-icon { color:#a47b74; }
html[data-template="12"] .store-shortcuts h3 { padding:0 2px; color:var(--t12-ink); font-size:12px; line-height:1.45; }
html[data-template="12"] .store-news { padding:10px 12px; border:1px solid var(--t12-line); border-radius:13px; background:#fff6f4; color:#a47b74; }
html[data-template="12"] .store-products { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; padding:0; }
html[data-template="12"] .store-products > .item { padding:9px; border:1px solid var(--t12-line); border-radius:15px; background:#fff6f4; }
html[data-template="12"] .store-products .text-cut-2 { margin:8px 0; font-size:13px; }
html[data-template="12"] .store-products .text-lg { color:#4f1d14; font-size:17px; font-weight:650; }
html[data-template="12"] .store-products .cu-tag { border-radius:5px; background:#fff6f4; color:var(--theme-primary); }
html[data-template="12"] .store-product-add { background:var(--theme-primary-soft); color:var(--theme-primary); }
html[data-template="12"] .store-category-list .is-current { background:#ffedea; color:#4f1d14; }

/* 我的：绿色身份区，真实账户数据构成的白色摘要卡，四列功能图标。 */
html[data-template="12"] .w-profile {
    min-height:138px;
    margin:0 -12px;
    padding:27px 17px 30px;
    background:var(--t12-header-decoration) right bottom / cover no-repeat, linear-gradient(115deg, #ffedea, #ffedea);
    color:#ffffff;
}
html[data-template="12"] .w-avatar { width:57px; height:57px; border:2px solid rgba(255, 255, 255, .7); background:#ffedea; }
html[data-template="12"] .w-name { font-size:18px; }
html[data-template="12"] .w-profile-meta { color:#ffffff; }
html[data-template="12"] .w-profile-meta > span:first-of-type { padding:1px 7px; border-radius:6px; background:#ffedea; color:#4f1d14; }
html[data-template="12"] .w-language { color:#ffffff; font-size:12px; }
html[data-template="12"] .w-tabs { position:relative; top:auto; gap:0; justify-content:space-around; margin:-14px 0 12px; padding:8px; border:1px solid var(--t12-line); border-radius:15px; background:#fff6f4; box-shadow:var(--t12-shadow); }
html[data-template="12"] .w-tab { min-height:35px; padding:5px 14px; border-radius:999px; color:#a47b74; font-size:15px; }
html[data-template="12"] .w-tab.is-active { background:#ffedea; color:#4f1d14; }
html[data-template="12"] .w-tab::after { display:none; }
html[data-template="12"] .w-overview { padding:0; margin-bottom:12px; }
html[data-template="12"] .w-overview-balance-row { display:flex; align-items:stretch; gap:0; margin:0 0 12px; padding:19px 6px; border:1px solid var(--t12-line); border-radius:16px; background:#fff6f4; box-shadow:var(--t12-shadow); }
html[data-template="12"] .t12-summary-main,
html[data-template="12"] .t12-summary-stat { display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:0 6px; text-align:center; }
html[data-template="12"] .t12-summary-main { flex-direction:column-reverse; }
html[data-template="12"] .t12-summary-stat { border-left:1px solid var(--t12-line); }
html[data-template="12"] .w-overview-balance-row .w-balance-label { max-width:none; justify-content:center; gap:3px; font-size:12px; }
html[data-template="12"] .w-overview-balance-row .w-balance-value,
html[data-template="12"] .t12-summary-stat strong { margin:0; color:#4f1d14; font-size:clamp(17px, 4.5vw, 23px); font-weight:700; font-variant-numeric:tabular-nums; line-height:1.3; overflow-wrap:anywhere; }
html[data-template="12"] .t12-summary-stat span { font-size:12px; }
html[data-template="12"] .w-eye { width:22px; height:24px; }
html[data-template="12"] .w-eye svg { width:18px; height:18px; }
html[data-template="12"] .w-balance-caption { margin:4px 0 10px; color:#a47b74; font-size:12px; }
html[data-template="12"] .w-quick-actions { gap:8px; margin:0 0 12px; padding:13px 7px; border:1px solid var(--t12-line); border-radius:16px; background:white; }
html[data-template="12"] .w-quick-icon { width:42px; height:42px; border-radius:13px; background:#ffedea; color:#4f1d14; }
html[data-template="12"] .w-quick-icon svg { width:25px; height:25px; }
html[data-template="12"] .w-quick-action { font-size:12px; }
html[data-template="12"] .w-section-heading { margin:16px 0 10px; }
html[data-template="12"] .w-section-heading h2 { font-size:17px; }
html[data-template="12"] .w-account-list,
html[data-template="12"] .w-service-grid { border:1px solid var(--t12-line); border-radius:16px; background:#fff6f4; box-shadow:var(--t12-shadow); }
html[data-template="12"] .w-account { min-height:76px; padding:13px; border-color:var(--t12-line); }
html[data-template="12"] .w-account-icon { background:#fff6f4; color:#4f1d14; }
html[data-template="12"] .w-account-value { color:#4f1d14; font-size:20px; }
html[data-template="12"] .w-services { margin-top:15px; }
html[data-template="12"] .w-services-kicker { color:var(--t12-muted); font-size:11px; }
html[data-template="12"] .w-service-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px 5px; padding:16px 5px; }
html[data-template="12"] .w-service { display:flex; flex-direction:column; align-items:center; gap:7px; padding:0 2px; border:0; text-align:center; }
html[data-template="12"] .w-service-icon { width:39px; height:39px; border-radius:13px; background:linear-gradient(145deg, #fff6f4, #ffedea); color:#4f1d14; }
html[data-template="12"] .w-service-icon svg { width:24px; height:24px; }
html[data-template="12"] .w-service-text h2 { color:#4f1d14; font-size:12px; line-height:1.45; font-weight:550; }
html[data-template="12"] .w-service::after { display:none; }
html[data-template="12"] .w-community { gap:10px; }
html[data-template="12"] .w-community a { border:1px solid var(--t12-line); border-radius:14px; background:#fff6f4; }
html[data-template="12"] .w-logout { margin:17px 0 0; padding:0; border:0; }
html[data-template="12"] .w-logout a { display:flex; align-items:center; justify-content:center; min-height:45px; }

/* 订单保留原有四种状态及各操作，视觉使用绿色选中标签。 */
html[data-template="12"] .orders-tabs { gap:4px; padding:7px; border:0; border-radius:14px; background:#fff6f4; }
html[data-template="12"] .orders-tab { min-height:38px; padding:7px 3px; border-radius:999px; font-size:12px; }
html[data-template="12"] .orders-tab.is-active { background:#ffedea; color:#4f1d14 !important; }
html[data-template="12"] .orders-tab.is-active::after { bottom:0; background:var(--theme-primary); }
html[data-template="12"] .orders-card-header { padding-bottom:10px; border-color:var(--t12-line); }
html[data-template="12"] .orders-state { color:var(--theme-primary); }
html[data-template="12"] .orders-product { gap:12px; padding:12px 0; }
html[data-template="12"] .orders-product img { border-radius:12px; background:#fff6f4; }
html[data-template="12"] .orders-product-name { font-size:14px; }
html[data-template="12"] .orders-card-actions { gap:8px; padding-top:10px; border-color:var(--t12-line); }
html[data-template="12"] .bonus-filter { gap:8px; padding:12px; border:1px solid var(--t12-line); background:#fff6f4; }
html[data-template="12"] .bonus-filter input.Wdate { flex:1; width:90px; min-width:65px; }
html[data-template="12"] .t12-bonus-overview { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:13px; padding:18px 17px; border:1px solid #f7ddd8; border-radius:16px; background:url("festival-clouds.svg") right bottom / auto 180px no-repeat, linear-gradient(115deg, #fff6f4, #ffedea); }
html[data-template="12"] .t12-bonus-overview > div { flex:1; min-width:110px; }
html[data-template="12"] .t12-bonus-overview span { display:block; font-size:12px; }
html[data-template="12"] .t12-bonus-overview strong { display:block; margin-top:5px; font-size:23px; font-variant-numeric:tabular-nums; }

/* 老列表仍按表格展示；在小屏横向浏览，不挤压列、不改业务结构图。 */
html[data-template="12"] .t12-table-scroll,
html[data-template="12"] .table-container { width:100%; max-width:100%; overflow-x:auto; margin:12px 0; border:1px solid var(--t12-line); border-radius:14px; background:#fff6f4; }
html[data-template="12"] .t12-data-table { width:100%; margin:0; border-collapse:collapse; font-size:13px; background:#fff6f4; }
html[data-template="12"] .t12-data-table th,
html[data-template="12"] .t12-data-table td { padding:11px 12px; border:1px solid var(--t12-line); text-align:center; vertical-align:middle; }
html[data-template="12"] .t12-data-table th { background:#ffedea; color:#4f1d14; }
html[data-template="12"] .t12-data-table tbody tr:nth-child(even) { background:#fff6f4; }
html[data-template="12"] .container,
html[data-template="12"] .container2 { max-width:100%; }
html[data-template="12"] .profile-intro-icon,
html[data-template="12"] .registration-intro-icon,
html[data-template="12"] .password-intro-icon,
html[data-template="12"] .finance-account-row-icon { background:#ffedea; color:var(--theme-primary); }
html[data-template="12"] .finance-account-row { gap:12px; padding:16px; }
html[data-template="12"] .front-language-choice { padding:16px; border-color:var(--t12-line); border-radius:14px; background:#fff6f4; }
html[data-template="12"] .front-language-choice[aria-pressed="true"] { border-color:var(--theme-primary); background:#ffedea; color:#4f1d14; }
html[data-template="12"] .finance-account-name { font-size:18px; }
html[data-template="12"] .product-action-bar a { border-radius:999px; }
html[data-template="12"] .product-price { color:#4f1d14; }

/* 底部固定导航沿用原功能入口和自动选中逻辑。安全区由原脚本统一测量。 */
html[data-template="12"] #site-footer.site-footer { max-width:520px; min-height:calc(64px + env(safe-area-inset-bottom)); padding:8px 6px calc(8px + env(safe-area-inset-bottom)); border-color:#f7ddd8; background:rgba(255,255,255,.98) !important; }
html[data-template="12"] #site-footer .site-footer-item { gap:3px; color:#a47b74 !important; font-size:11px !important; }
html[data-template="12"] #site-footer .site-footer-item.is-current { color:#4f1d14 !important; font-weight:650; }
html[data-template="12"] #site-footer .w-icon { width:23px !important; height:23px !important; }
html[data-template="12"] body.has-site-footer { --site-footer-offset: var(--site-footer-height, calc(64px + env(safe-area-inset-bottom))); }
@media (max-width: 359px) {
    html[data-template="12"] .t12-home-header { gap:6px; }
    html[data-template="12"] .t12-store-brand { flex-basis:86px; font-size:14px; }
    html[data-template="12"] .w-profile { padding:23px 12px 28px; gap:9px; }
    html[data-template="12"] .w-avatar { width:46px; height:46px; }
    html[data-template="12"] .w-name { font-size:16px; }
    html[data-template="12"] .w-service-grid { gap:14px 3px; }
}
@media (prefers-reduced-motion: reduce) {
    html[data-template="12"] *, html[data-template="12"] *::before, html[data-template="12"] *::after { scroll-behavior:auto !important; }
}

/* 输入区域与页面底色拉开层次，密码显隐控件右侧留白仍由原样式控制。 */
html[data-template="12"] .finance-page:not(.store-page) .finance-form {
    padding:15px;
    border:1px solid var(--t12-line);
    border-radius:17px;
    background:#fff6f4;
}
html[data-template="12"] .finance-field input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]),
html[data-template="12"] .finance-field select,
html[data-template="12"] .finance-field textarea {
    border:1px solid #f7ddd8;
    background-color:#fff6f4;
}
html[data-template="12"] #wode-account-list {
    overflow:hidden;
    border:1px solid var(--t12-line);
    border-radius:16px;
    background:#fff6f4;
}
html[data-template="12"] .w-account-row { padding:14px 12px; }
html[data-template="12"] .w-overview-balance-row .w-balance-value { letter-spacing:normal; }
html[data-template="12"] .bonus-page .finance-record .row:not(:first-child) { color:#4f1d14; font-weight:600; }
html[data-template="12"] .bonus-page .finance-record .row .label { font-weight:400; }
html[data-template="12"] #site-footer .site-footer-item { font-size:12px !important; }

/* 旧版功能页同样采用绿色页头，原定位和标题内容继续沿用。 */
html[data-template="12"] .header.header-color,
html[data-template="12"] .header-background,
html[data-template="12"] body > .header {
    max-width:520px;
    background:var(--t12-header-decoration) right center / cover no-repeat, linear-gradient(115deg, #ffedea, #ffedea);
    color:#ffffff;
}
html[data-template="12"] .header-title,
html[data-template="12"] .header.header-color a { color:#ffffff !important; }
html[data-template="12"] .t12-fixed-header { left:50% !important; width:100%; max-width:520px; transform:translateX(-50%); }
html[data-template="12"] #wode-page .w-balance-panel {
    border:1px solid #f7ddd8;
    background:url("festival-clouds.svg") right bottom / cover no-repeat, linear-gradient(115deg, #ffdfd9, #df2707);
    color:#ffffff;
}
html[data-template="12"] #wode-page .w-balance-panel .w-balance-value,
html[data-template="12"] #wode-page .w-balance-panel .w-balance-label,
html[data-template="12"] #wode-page .w-balance-panel .w-balance-available-value { color:#ffffff; }
html[data-template="12"] #wode-page .w-balance-panel .w-balance-action { background:#fff6f4; color:var(--theme-primary); }

/* 旧页残留的 360px 最小宽度和 vw 余额卡不能超出模板画布。 */
html[data-template="12"] .container,
html[data-template="12"] .container2 { width:100%; min-width:0 !important; }
html[data-template="12"] .red_bg { width:100% !important; max-width:100%; }
html[data-template="12"] .recharge_wrap { width:100%; max-width:100%; padding:12px; }
html[data-template="12"] .recharge_wrap .red_top_bg {
    min-height:62px;
    padding:16px;
    border-radius:15px;
    background:url("festival-clouds.svg") right center / cover no-repeat, linear-gradient(115deg, #ffedea, #ffedea);
    color:#ffffff;
}
html[data-template="12"] .recharge_wrap .big_tit { color:#ffffff; }
html[data-template="12"] .recharge_wrap .balance {
    position:relative;
    top:auto;
    left:auto;
    width:100%;
    max-width:100%;
    margin:12px 0;
    padding:16px;
    border:1px solid var(--t12-line);
    border-radius:15px;
    background:#fff6f4;
    color:var(--t12-ink);
}

/* 旧商城轮播曾写死 331px，窄屏仍沿用其内容并让容器缩到当前画布。 */
html[data-template="12"] .red_bg > uni-view,
html[data-template="12"] .red_bg uni-swiper,
html[data-template="12"] .red_bg .swiper-container {
    width:100% !important;
    max-width:100%;
}
/* 兼容旧版商城与个人页中的独立红色页头、购买按钮。 */
html[data-template="12"] .header,
html[data-template="12"] .index_header,
html[data-template="12"] .icon_header,
html[data-template="12"] .red_bg {
    background:var(--t12-header-decoration) right center / cover no-repeat, linear-gradient(115deg, #ffedea, #ffedea);
    color:#ffffff;
}
html[data-template="12"] .com-button,
html[data-template="12"] .coupon-buy,
html[data-template="12"] .buy-btn-copy,
html[data-template="12"] .getTbk {
    border-color:var(--theme-primary);
    border-radius:999px;
    background:var(--theme-primary) !important;
    color:#ffffff;
}
/* 模板 12：柔粉花瓣、玫瑰红与奶油浅金；只覆盖视觉，不改变任何业务开关。 */
html[data-template="12"] {
    --t12-page: #fff4f3;
    --t12-ink: #3e2027;
    --t12-muted: #a08487;
    --t12-line: #f0dfe0;
    --t12-shadow: 0 6px 20px rgba(155, 74, 89, .055);
    background:#fff6f4;
}
html[data-template="12"] body {
    background-image:url("festival-clouds.svg"), linear-gradient(180deg, #fff6f4, #fff6f4);
    background-position:center top;
    background-size:520px auto, 100% 100%;
    background-repeat:repeat-y, no-repeat;
    box-shadow:0 0 0 1px rgba(182, 90, 108, .06);
}
/* 花瓣页头使用深色文字，避免浅粉底上的白字难以辨认。 */
html[data-template="12"] .finance-header {
    min-height:64px;
    padding:14px;
    background:var(--t12-header-decoration) right top / 520px auto no-repeat, linear-gradient(110deg, #ffedea, #fff6f4 55%, #ffedea);
    color:var(--t12-ink);
}
html[data-template="12"] .finance-header h1 { font-size:19px; color:var(--t12-ink); }
html[data-template="12"] .finance-header .finance-icon-button { color:#4f1d14; }
html[data-template="12"] .header,
html[data-template="12"] .header.header-color,
html[data-template="12"] .header-background,
html[data-template="12"] .index_header,
html[data-template="12"] .icon_header,
html[data-template="12"] .red_bg {
    background:var(--t12-header-decoration) right top / 520px auto no-repeat, linear-gradient(110deg, #ffedea, #fff6f4 55%, #ffedea);
    color:var(--t12-ink);
}
html[data-template="12"] .header-title,
html[data-template="12"] .header.header-color a { color:#4f1d14 !important; }

/* 主按钮保留原点击/提交行为，采用参考图的玫瑰光泽渐变。 */
html[data-template="12"] .finance-submit,
html[data-template="12"] .business-content .submit-btn,
html[data-template="12"] .business-content .open-btn,
html[data-template="12"] .product-primary,
html[data-template="12"] .registration-agree,
html[data-template="12"] .app-primary-link,
html[data-template="12"] .promotion-copy-submit,
html[data-template="12"] .store-search button[type="submit"],
html[data-template="12"] .store-checkout,
html[data-template="12"] .button.bg-yellow,
html[data-template="12"] .button.bg-blue,
html[data-template="12"] .button.bg-main,
html[data-template="12"] .btnzbz,
html[data-template="12"] .w-logout a {
    background:linear-gradient(180deg, #ffdfd9 0%, #df2707 42%, #df2707 100%);
    border-color:#f7ddd8;
    box-shadow:0 4px 9px rgba(173, 62, 86, .10), inset 0 1px 0 rgba(255,255,255,.35);
    color:#ffffff !important;
}
html[data-template="12"] .finance-submit-bar,
html[data-template="12"] .product-action-bar { background:rgba(255, 249, 247, .98); border-color:#f7ddd8; }
html[data-template="12"] .finance-field input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]),
html[data-template="12"] .finance-field select,
html[data-template="12"] .finance-field textarea { border-color:#f7ddd8; background-color:#fff6f4; }
html[data-template="12"] .finance-record,
html[data-template="12"] .orders-card,
html[data-template="12"] .registration-intro,
html[data-template="12"] .profile-intro,
html[data-template="12"] .password-intro,
html[data-template="12"] .messages-card,
html[data-template="12"] .business-address { background:rgba(255, 253, 250, .97); }

/* 首页品牌居中在搜索框上方；配置的商城名称和广告保持不变。 */
html[data-template="12"] .t12-home-header {
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:19px 14px 11px;
    background:var(--t12-header-decoration) center top / 520px auto no-repeat, linear-gradient(115deg, #fff6f4, #fff6f4 54%, #ffedea);
    color:#4f1d14;
}
html[data-template="12"] .t12-store-brand { flex:0 0 auto; justify-content:center; gap:9px; font-size:23px; letter-spacing:1px; }
html[data-template="12"] .t12-store-brand svg { width:32px; height:35px; flex-basis:32px; }
html[data-template="12"] .t12-home-header .store-search { flex:0 0 auto; }
html[data-template="12"] .t12-home-header .store-search form { min-height:44px; gap:6px; padding:4px 5px 4px 8px; border:1px solid #f7ddd8; background:rgba(255,255,255,.96); }
html[data-template="12"] .t12-home-header .store-search input[type="text"] { min-height:34px; font-size:14px; }
html[data-template="12"] .t12-home-header .store-search .store-language { flex-basis:27px; }
html[data-template="12"] .store-tabs { margin-bottom:12px; padding-top:6px; padding-bottom:10px; background:rgba(252,232,232,.9); }
html[data-template="12"] .store-tabs a { color:#4f1d14 !important; }
html[data-template="12"] .store-shortcuts { background:rgba(255, 250, 246, .94); border-color:#f7ddd8; }
html[data-template="12"] .store-shortcuts .picicon > div { background:linear-gradient(150deg, #fff6f4, #ffedea 52%, #ffedea); }
html[data-template="12"] .store-shortcuts .store-shortcut-icon { color:#4f1d14; }
html[data-template="12"] .store-shortcuts .item:nth-child(3) .picicon > div { background:linear-gradient(150deg, #fff6f4, #ffedea); }
html[data-template="12"] .store-shortcuts .item:nth-child(3) .store-shortcut-icon { color:#a47b74; }
html[data-template="12"] .store-news { background:#fff6f4; border-color:#f7ddd8; }
html[data-template="12"] .store-products > .item { background:#fff6f4; border-color:#f7ddd8; }
html[data-template="12"] .store-products .examine { background:#fff6f4; }
html[data-template="12"] .store-products .text-lg,
html[data-template="12"] .product-price { color:#4f1d14; }

/* 会员页使用柔粉身份区及水晶皇冠装饰。徽章与用户等级仍读取原数据。 */
html[data-template="12"] .w-profile {
    min-height:143px;
    padding:26px 17px 31px;
    background:var(--t12-header-decoration) right 16px bottom 5px / 110px 86px no-repeat,
                var(--t12-header-decoration) right top / 520px auto no-repeat,
                linear-gradient(110deg, #ffedea, #fff6f4 57%, #ffedea);
    color:#4f1d14;
}
html[data-template="12"] .w-avatar { border-color:rgba(255, 251, 243, .8); background:#fff6f4; }
html[data-template="12"] .w-profile-meta { color:#4f1d14; }
html[data-template="12"] .w-profile-meta > span:first-of-type { border:1px solid #f7ddd8; border-radius:999px; padding:1px 8px; background:linear-gradient(115deg, #ffedea, #ffdfd9); color:#ffffff; }
html[data-template="12"] .w-language { color:#4f1d14; }
html[data-template="12"] .w-tabs { border-color:#f7ddd8; background:rgba(255,251,247,.97); }
html[data-template="12"] .w-tab.is-active { background:#ffedea; color:#4f1d14; }
html[data-template="12"] .w-overview-balance-row { border-color:#f7ddd8; background:linear-gradient(130deg, #fff6f4, #fff6f4); box-shadow:0 6px 16px rgba(179,102,109,.06); }
html[data-template="12"] .w-overview-balance-row .w-balance-value,
html[data-template="12"] .t12-summary-stat strong { color:#4f1d14; }
html[data-template="12"] .t12-summary-stat { border-color:#f7ddd8; }
html[data-template="12"] .w-quick-actions,
html[data-template="12"] .w-service-grid,
html[data-template="12"] #wode-account-list { border-color:#f7ddd8; background:rgba(255,252,248,.97); }
html[data-template="12"] .w-quick-icon,
html[data-template="12"] .w-service-icon { background:linear-gradient(155deg, #fff6f4, #ffedea 54%, #ffedea); color:#4f1d14; border-radius:13px; }
html[data-template="12"] .w-account-symbol { color:#4f1d14; background:#ffedea; }
html[data-template="12"] .w-account-symbol.is-green { color:#a47b74; background:#ffedea; }
html[data-template="12"] .w-account-symbol.is-gold { color:#a47b74; background:#fff6f4; }
html[data-template="12"] .w-account-symbol.is-purple { color:#a47b74; background:#ffedea; }
html[data-template="12"] .w-account-row { border-color:#f7ddd8; }
html[data-template="12"] .w-account-value { color:#4f1d14; }

/* 提现卡的装饰钱包不参与表单或金额计算。 */
html[data-template="12"][data-template-page="tixian"] .finance-balance-card {
    min-height:126px;
    padding-right:115px;
    background:url("festival-wallet.svg") right 12px center / 96px 84px no-repeat,
                linear-gradient(120deg, #fff6f4, #ffedea 65%, #ffedea);
    border-color:#f7ddd8;
}
html[data-template="12"][data-template-page="tixian"] .withdrawal-balance-row { flex-direction:column; align-items:flex-start; gap:5px; }
html[data-template="12"][data-template-page="tixian"] .finance-balance-name { max-width:100%; gap:6px; color:#4f1d14; font-size:14px; }
html[data-template="12"][data-template-page="tixian"] .finance-balance-card strong { margin-top:1px; font-size:clamp(28px, 8vw, 35px); color:#4f1d14; }
html[data-template="12"] .t12-bonus-overview { border-color:#f7ddd8; background:url("festival-clouds.svg") right bottom / 520px auto no-repeat, linear-gradient(115deg, #fff6f4, #ffedea); }
html[data-template="12"] .t12-bonus-overview strong { color:#4f1d14; }
html[data-template="12"] .bonus-page .finance-record .row:not(:first-child) { color:#4f1d14; }
html[data-template="12"] .orders-tab.is-active { background:#ffedea; color:#4f1d14 !important; }
html[data-template="12"] .orders-state { color:#4f1d14; }
html[data-template="12"] .orders-action { border-color:#f7ddd8; background:#fff6f4; color:#4f1d14; }
html[data-template="12"] #site-footer.site-footer { border-color:#f7ddd8; background:rgba(255,249,247,.98) !important; }
html[data-template="12"] #site-footer .site-footer-item { color:#a47b74 !important; }
html[data-template="12"] #site-footer .site-footer-item.is-current { color:#4f1d14 !important; }
@media (max-width: 359px) {
    html[data-template="12"] .t12-store-brand { flex-basis:auto; font-size:20px; }
    html[data-template="12"] .w-profile { padding-left:13px; padding-right:13px; }
    html[data-template="12"][data-template-page="tixian"] .finance-balance-card { padding-right:97px; background-size:81px 71px, auto; }
}


/* 模板 12：商务深蓝商城。公共主题只改变展示，不改变页面业务开关和提交逻辑。 */
html[data-template="12"] {
    --t12-page: #fff3f1;
    --t12-card: #ffffff;
    --t12-ink: #521c13;
    --t12-muted: #a27d76;
    --t12-line: #f7e0dc;
    --t12-radius: 14px;
    --t12-shadow: 0 5px 18px rgba(31, 81, 148, .055);
    --t12-button: linear-gradient(120deg, #ed3717, #d42607);
    background: #200703;
    color-scheme: light;
}
html[data-template="12"] body {
    background: linear-gradient(180deg, #ffe7e3, #fff7f6 480px) !important;
    color: var(--t12-ink);
    box-shadow: 0 0 0 1px rgba(27,133,255,.45), 0 0 25px rgba(0,129,241,.13);
    --finance-blue: var(--theme-primary);
    --finance-text: var(--t12-ink);
    --finance-muted: var(--t12-muted);
    --finance-line: var(--t12-line);
    --finance-soft: #fdf4f2;
    --w-blue: var(--theme-primary);
    --w-text: var(--t12-ink);
    --w-muted: var(--t12-muted);
    --w-line: var(--t12-line);
    --w-soft: #fff0ed;
}
html[data-template="12"] h1,
html[data-template="12"] h2,
html[data-template="12"] h3 { color: var(--t12-ink); }
html[data-template="12"] a { color: inherit; }
/* 页头的蓝色波纹使用本地 SVG，内容区仍采用浅色卡片。 */
html[data-template="12"] .finance-header,
html[data-template="12"] .header,
html[data-template="12"] .header.header-color,
html[data-template="12"] .header-background,
html[data-template="12"] .index_header,
html[data-template="12"] .icon_header,
html[data-template="12"] .red_bg {
    background: var(--t12-header-decoration) right bottom / 520px auto no-repeat, linear-gradient(115deg, #460e04, #981a04);
    color: #fff;
    border-bottom: 1px solid rgba(88,175,255,.18);
}
html[data-template="12"] .finance-header h1,
html[data-template="12"] .finance-header .finance-icon-button,
html[data-template="12"] .header-title,
html[data-template="12"] .header.header-color a { color: #fff !important; }
html[data-template="12"] .finance-header { min-height: 62px; }
html[data-template="12"] .finance-record,
html[data-template="12"] .orders-card,
html[data-template="12"] .messages-card,
html[data-template="12"] .business-address,
html[data-template="12"] .profile-intro,
html[data-template="12"] .password-intro,
html[data-template="12"] .registration-intro,
html[data-template="12"] .finance-empty,
html[data-template="12"] .finance-account-card,
html[data-template="12"] .finance-info-card,
html[data-template="12"] .app-download-card,
html[data-template="12"] .app-install-guide,
html[data-template="12"] .qr-card,
html[data-template="12"] .promotion-link-card,
html[data-template="12"] .product-summary,
html[data-template="12"] .business-content .message,
html[data-template="12"] .new-category-li,
html[data-template="12"] .store-cart .product-box,
html[data-template="12"] .finance-page:not(.store-page) .finance-form {
    border: 1px solid #f8e3df;
    background: rgba(255,255,255,.98);
    box-shadow: var(--t12-shadow);
}
html[data-template="12"] .finance-record .row,
html[data-template="12"] .orders-card-header,
html[data-template="12"] .orders-card-actions { border-color: #f8e9e6; }
html[data-template="12"] input:not([type]),
html[data-template="12"] input[type="text"],
html[data-template="12"] input[type="password"],
html[data-template="12"] input[type="number"],
html[data-template="12"] input[type="search"],
html[data-template="12"] input[type="email"],
html[data-template="12"] input[type="tel"],
html[data-template="12"] input[type="date"],
html[data-template="12"] input[type="datetime-local"],
html[data-template="12"] select,
html[data-template="12"] textarea,
html[data-template="12"] .finance-field input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]) {
    background-color: #fdf4f3;
    border-color: #f5deda;
    color: #592218;
}
html[data-template="12"] input::placeholder,
html[data-template="12"] textarea::placeholder { color: #ad8a84; opacity: 1; }
html[data-template="12"] .finance-field > label,
html[data-template="12"] .finance-field > .finance-label { color: #5d2920; }
html[data-template="12"] input:focus,
html[data-template="12"] textarea:focus,
html[data-template="12"] select:focus { border-color: var(--theme-primary); outline-color: var(--theme-primary); box-shadow: 0 0 0 3px rgba(7,88,223,.08); }
html[data-template="12"] input[type="checkbox"],
html[data-template="12"] input[type="radio"] { accent-color: var(--theme-primary); }
html[data-template="12"] .finance-submit,
html[data-template="12"] .business-content .submit-btn,
html[data-template="12"] .business-content .open-btn,
html[data-template="12"] .product-primary,
html[data-template="12"] .registration-agree,
html[data-template="12"] .app-primary-link,
html[data-template="12"] .promotion-copy-submit,
html[data-template="12"] .store-search button[type="submit"],
html[data-template="12"] .store-checkout,
html[data-template="12"] .button.bg-yellow,
html[data-template="12"] .button.bg-blue,
html[data-template="12"] .button.bg-main,
html[data-template="12"] .btnzbz,
html[data-template="12"] .w-logout a {
    border: 1px solid #e34023;
    background: var(--t12-button);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 9px rgba(11,81,196,.12);
    color: #fff !important;
}
html[data-template="12"] .finance-submit-bar,
html[data-template="12"] .product-action-bar { background: rgba(255,255,255,.98); border-color: #fae3df; }
html[data-template="12"] .finance-secondary-link,
html[data-template="12"] .app-secondary-link,
html[data-template="12"] .orders-action,
html[data-template="12"] .product-secondary { background: #fff0ed; border-color: #facfc7; color: #9a2b17; }
html[data-template="12"] .finance-account-row-icon,
html[data-template="12"] .profile-intro-icon,
html[data-template="12"] .registration-intro-icon,
html[data-template="12"] .password-intro-icon { background: #ffece9; color: #d93417; }
html[data-template="12"] .finance-pagination-summary { color: #a47c75; }
html[data-template="12"] .finance-balance-card { border-color: #f8cdc5; background: linear-gradient(120deg, #ffebe8, #ffded8); }
html[data-template="12"] .finance-balance-label { color: #aa7a72; }
html[data-template="12"] .finance-balance-name { color: #aa2d17; }
html[data-template="12"] .finance-balance-card strong { color: #671d10; }

/* 首页保留原商城名称、搜索、语言切换和可配置分类入口。 */
html[data-template="12"] .store-shouye .finance-shell { padding-top: 0; }
html[data-template="12"] .t12-home-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 19px 13px 11px;
    background: linear-gradient(115deg, #561105, #9c1d06);
    color: #fff;
}
html[data-template="12"] .t12-store-brand { flex: 0 1 146px; justify-content: flex-start; gap: 6px; font-size: 17px; letter-spacing: 0; }
html[data-template="12"] .t12-store-brand svg { width: 25px; height: 28px; flex-basis: 25px; filter: drop-shadow(0 0 4px rgba(113,222,255,.6)); }
html[data-template="12"] .t12-home-header .store-search { flex: 1; }
html[data-template="12"] .t12-home-header .store-search form { min-height: 38px; margin: 0; padding: 3px 5px; border: 1px solid #ffb4a7; background: #fff0ed; box-shadow: inset 0 1px 3px rgba(13,66,134,.08); }
html[data-template="12"] .t12-home-header .store-search input[type="text"] { min-height: 30px; padding: 5px 3px; font-size: 12px; background: transparent; color: #6d3127; }
html[data-template="12"] .t12-home-header .store-search .store-language { flex: 0 0 23px; min-height: 30px; color: #9f3d2c; }
html[data-template="12"] .t12-home-header .store-search button { padding: 4px 8px; min-height: 28px; font-size: 11px; }
html[data-template="12"] .store-tabs { margin-bottom: 10px; padding: 6px 13px 10px; background: #831a07; }
html[data-template="12"] .store-tabs a { color: #fac3b9 !important; }
html[data-template="12"] .store-tabs .action a { color: #fff !important; }
html[data-template="12"] .store-banner { margin-bottom: 12px; border: 1px solid #fa9583; border-radius: 14px; background: #ae1f06; box-shadow: 0 5px 12px rgba(10,75,161,.1); }
html[data-template="12"] .store-slide-controls button { background: rgba(239,248,255,.95); color: #c52f14; }
/* 蓝色立体圆形图标与白色快捷卡片，对齐参考图的明亮内容区。 */
html[data-template="12"] .store-shortcuts { background: #fff; border: 1px solid #fcdcd6; border-radius: 15px; padding: 12px 6px 10px; box-shadow: 0 4px 14px rgba(12,72,148,.05); }
html[data-template="12"] .store-shortcuts .picicon > div,
html[data-template="12"] .store-shortcuts .item:nth-child(3) .picicon > div { width: 39px !important; height: 39px !important; border: 1px solid #ff755d; border-radius: 50% !important; background: radial-gradient(circle at 30% 15%, #ff8d79, #fa4424 49%, #dd2707 90%); box-shadow: inset 0 1px 2px rgba(255,255,255,.8), 0 3px 6px rgba(10,90,219,.14); }
html[data-template="12"] .store-shortcuts .store-shortcut-icon,
html[data-template="12"] .store-shortcuts .item:nth-child(3) .store-shortcut-icon { color: #fff; }
html[data-template="12"] .store-shortcuts .store-shortcut-icon svg { width: 23px; height: 23px; }
html[data-template="12"] .store-shortcuts h3,
html[data-template="12"] .store-shortcuts span { color: #692114 !important; font-size: 11px; }
html[data-template="12"] .store-news { border: 1px solid #fae4e0; background: #fff; color: #a4766e; }
html[data-template="12"] .store-news span { color: #a4766e !important; }
html[data-template="12"] .store-products { gap: 10px; }
html[data-template="12"] .store-products > .item { padding: 8px; border-color: #fae4e0; background: #fff; box-shadow: 0 3px 10px rgba(30,73,140,.035); }
html[data-template="12"] .store-products .examine { border-radius: 12px; background: #fff1ee; }
html[data-template="12"] .store-products .text-cut-2 > span { color: #5e2318 !important; }
html[data-template="12"] .store-products .text-lg,
html[data-template="12"] .product-price { color: #a01e07; }
html[data-template="12"] .store-products .cu-tag { background: #fff0ed; color: #bc3a23; }
html[data-template="12"] .store-category-list li,
html[data-template="12"] .new-category2-lst { background: #fdefed; }
html[data-template="12"] .store-category-list .is-current { background: #ffded8; color: #cb2407; }
html[data-template="12"] .store-cart .product-name { color: #551f15 !important; }

/* 会员头部深蓝、汇总卡浅白，所有余额与人数继续读取原字段。 */
html[data-template="12"] .w-profile { min-height: 143px; background: var(--t12-header-decoration) right bottom / 520px auto no-repeat, linear-gradient(115deg, #591205, #b12006); color: #fff; }
html[data-template="12"] .w-avatar { border-color: #ffcdc4; background: #ffece9; box-shadow: 0 3px 12px rgba(0,18,70,.2); }
html[data-template="12"] .w-profile-meta,
html[data-template="12"] .w-language { color: #ffddd7; }
html[data-template="12"] .w-profile-meta > span:first-of-type { border: 1px solid #e9cc8f; background: linear-gradient(115deg, #fff1c7, #f5d487); color: #775015; }
html[data-template="12"] .w-tabs { background: #fff; border-color: #fae1dc; box-shadow: 0 3px 12px rgba(26,80,155,.04); }
html[data-template="12"] .w-tab { color: #a78984; }
html[data-template="12"] .w-tab.is-active { background: #ffe8e4; color: #c8280c; }
html[data-template="12"] .w-overview-balance-row { border-color: #fcdad4; background: linear-gradient(130deg, #fff, #fff5f3); box-shadow: 0 5px 14px rgba(33,88,163,.05); }
html[data-template="12"] .w-overview-balance-row .w-balance-value,
html[data-template="12"] .t12-summary-stat strong { color: #611c10; }
html[data-template="12"] .w-balance-label,
html[data-template="12"] .t12-summary-stat span { color: #a2756d; }
html[data-template="12"] .t12-summary-stat { border-color: #f8e4e1; }
html[data-template="12"] .w-quick-actions,
html[data-template="12"] .w-service-grid,
html[data-template="12"] #wode-account-list { background: #fff; border-color: #f8e0dc; }
html[data-template="12"] .w-quick-icon,
html[data-template="12"] .w-service-icon { border: 1px solid #fa7b64; border-radius: 12px; background: radial-gradient(circle at 30% 15%, #ff8873, #fa4728 55%, #cf280b); color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 3px 6px rgba(10,85,203,.1); }
html[data-template="12"] .w-service-text h2 { color: #612419; }
html[data-template="12"] .w-account-symbol,
html[data-template="12"] .w-account-symbol.is-green,
html[data-template="12"] .w-account-symbol.is-purple { color: #d43317; background: #ffece9; }
html[data-template="12"] .w-account-symbol.is-gold { color: #b0822d; background: #fff4dc; }
html[data-template="12"] .w-account-value { color: #601f13; }
html[data-template="12"] .w-account-row { border-color: #f7e5e2; }
html[data-template="12"] .w-community a { background: #fff; border-color: #f7ddd8; }
html[data-template="12"] #wode-page .w-balance-panel { border-color: #f69f90; background: url("festival-clouds.svg") right bottom / cover no-repeat, linear-gradient(110deg, #a51f07, #e03517); color: #fff; }
html[data-template="12"] #wode-page .w-balance-panel .w-balance-action { background: #fff; color: #df2707; }

/* 提现卡和奖金汇总使用商务蓝装饰，不添加或计算额外业务金额。 */
html[data-template="12"][data-template-page="tixian"] .finance-balance-card { min-height: 124px; padding-right: 112px; border-color: #f7c0b6; background: url("festival-wallet.svg") right 9px center / 100px 86px no-repeat, linear-gradient(120deg, #ffefec, #ffd2ca); }
html[data-template="12"][data-template-page="tixian"] .finance-balance-name { color: #ac6053; }
html[data-template="12"][data-template-page="tixian"] .finance-balance-card strong { color: #941c07; }
html[data-template="12"] .t12-bonus-overview { border-color: #f9c5bc; background: url("festival-clouds.svg") right bottom / 520px auto no-repeat, linear-gradient(115deg, #cd2507, #e5381a); color: #ffddd7; }
html[data-template="12"] .t12-bonus-overview strong { color: #fff; }
html[data-template="12"] .bonus-page .finance-record .row:not(:first-child) { color: #bb250a; }
html[data-template="12"] .orders-tabs { background: #fff; }
html[data-template="12"] .orders-tab.is-active { background: #ffe6e1; color: #ca280b !important; }
html[data-template="12"] .orders-state { color: #d72d0f; }
html[data-template="12"] .orders-product img { background: #fff1ee; }
html[data-template="12"] .front-language-choice { background: #fff; border-color: #f7e0dc; }
html[data-template="12"] .front-language-choice[aria-pressed="true"] { background: #ffebe8; border-color: #ed5439; color: #cf2507; }
html[data-template="12"] .front-language-choice strong { color: inherit; }
html[data-template="12"] .t12-table-scroll,
html[data-template="12"] .table-container,
html[data-template="12"] .t12-data-table { background: #fff; }
html[data-template="12"] .t12-data-table th { background: #ffebe8; color: #912c1a; }
html[data-template="12"] .t12-data-table tbody tr:nth-child(even) { background: #fff7f5; }
html[data-template="12"] .qr-code,
html[data-template="12"] .qr-code-box,
html[data-template="12"] .qr-image { background: #fff; }
html[data-template="12"] #site-footer.site-footer { background: rgba(255,255,255,.98) !important; border-top: 1px solid #fae1dc; box-shadow: 0 -3px 13px rgba(21,77,151,.035); }
html[data-template="12"] #site-footer .site-footer-item { color: #bd9790 !important; }
html[data-template="12"] #site-footer .site-footer-item.is-current { color: #df2707 !important; }
html[data-template="12"] .finance-pagination a,
html[data-template="12"] .finance-pagination input[type="button"],
html[data-template="12"] .orders-pagination a,
html[data-template="12"] .front-pagination-button.front-pagination-button { background: #df2707; color: #fff; }
@media (max-width: 359px) {
    html[data-template="12"] .t12-store-brand { flex-basis: 111px; font-size: 14px; }
    html[data-template="12"] .t12-home-header { gap: 7px; padding-left: 10px; padding-right: 10px; }
    html[data-template="12"] .t12-store-brand svg { width: 21px; flex-basis: 21px; }
    html[data-template="12"] .t12-home-header .store-search input[type="text"] { font-size: 11px; }
    html[data-template="12"] .t12-home-header .store-search button { padding: 3px 5px; }
    html[data-template="12"][data-template-page="tixian"] .finance-balance-card { padding-right: 94px; background-size: 82px 73px, auto; }
}


/* 模板 12：红色节庆风。保留原页面结构和业务判断，只统一配色、装饰与展示。 */
html[data-template="12"] {
    --t12-page: #fff3e9;
    --t12-ink: #67261c;
    --t12-muted: #ae8270;
    --t12-line: #f5decc;
    --t12-shadow: 0 5px 18px rgba(175,64,26,.045);
    --t12-button: linear-gradient(120deg, #df3a23, #bf201a);
    background: #260a0c;
    color-scheme: light;
}
html[data-template="12"] body {
    background: linear-gradient(180deg, #ffe0c7, #fff8f1 510px) !important;
    color: var(--t12-ink);
    box-shadow: 0 0 0 1px rgba(255,165,106,.6), 0 0 24px rgba(229,56,29,.12);
    --finance-text: var(--t12-ink);
    --finance-muted: var(--t12-muted);
    --finance-line: var(--t12-line);
    --finance-soft: #fff5ec;
    --w-text: var(--t12-ink);
    --w-muted: var(--t12-muted);
    --w-line: var(--t12-line);
    --w-soft: #fff1e5;
}
html[data-template="12"] h1,
html[data-template="12"] h2,
html[data-template="12"] h3 { color: #7c241a; }
html[data-template="12"] .finance-header,
html[data-template="12"] .header,
html[data-template="12"] .header.header-color,
html[data-template="12"] .header-background,
html[data-template="12"] .index_header,
html[data-template="12"] .icon_header,
html[data-template="12"] .red_bg { background: var(--t12-header-decoration) right bottom / 520px auto no-repeat, linear-gradient(110deg, #b61710, #ed3e19); color: #fff8de; border-color: #ec7a45; }
html[data-template="12"] .finance-header h1,
html[data-template="12"] .finance-header .finance-icon-button,
html[data-template="12"] .header-title,
html[data-template="12"] .header.header-color a { color: #fff8de !important; }
html[data-template="12"] .t12-home-header { background: linear-gradient(110deg, #b8170e, #e73316); color: #fff7da; }
html[data-template="12"] .t12-store-brand svg { filter: drop-shadow(0 0 3px rgba(255,217,118,.3)); }
html[data-template="12"] .t12-home-header .store-search form { border-color: #f8c1a7; background: #fff2e4; }
html[data-template="12"] .t12-home-header .store-search input[type="text"] { color: #874838; }
html[data-template="12"] .t12-home-header .store-search .store-language { color: #b85839; }
html[data-template="12"] .store-tabs { background: #e64b29; }
html[data-template="12"] .store-tabs a { color: #ffcfaa !important; }
html[data-template="12"] .store-tabs .action a { color: #fff9de !important; }
html[data-template="12"] .store-banner { border-color: #f4965b; background: #dc3212; }
html[data-template="12"] .store-shortcuts,
html[data-template="12"] .w-quick-actions,
html[data-template="12"] .w-service-grid,
html[data-template="12"] #wode-account-list { border-color: #f7dcc5; background: #fffaf3; }
html[data-template="12"] .store-shortcuts .picicon > div,
html[data-template="12"] .store-shortcuts .item:nth-child(3) .picicon > div,
html[data-template="12"] .w-quick-icon,
html[data-template="12"] .w-service-icon { border-color: #ffb27a; background: radial-gradient(circle at 30% 15%, #ffb47d, #ff724a 52%, #ec4327); color: #fff9e9; box-shadow: inset 0 1px 2px rgba(255,249,208,.7), 0 3px 6px rgba(217,77,25,.1); }
html[data-template="12"] .store-shortcuts h3,
html[data-template="12"] .store-shortcuts span { color: #a3261b !important; }
html[data-template="12"] .store-news { border-color: #f6dec8; background: #fffaf3; }
html[data-template="12"] .store-news span { color: #ac6e50 !important; }
html[data-template="12"] .store-products > .item { border-color: #f5dfce; background: #fffaf5; }
html[data-template="12"] .store-products .text-cut-2 > span { color: #783829 !important; }
html[data-template="12"] .store-products .text-lg,
html[data-template="12"] .product-price { color: #b31f18; }
html[data-template="12"] .store-products .examine { background: #fff0e5; }
html[data-template="12"] .w-profile { background: var(--t12-header-decoration) right bottom / 520px auto no-repeat, linear-gradient(110deg, #bd1d10, #f05222); color: #fff6de; }
html[data-template="12"] .w-profile-meta,
html[data-template="12"] .w-language { color: #ffe5b9; }
html[data-template="12"] .w-avatar { border-color: #ffe9b5; background: #fff3d7; }
html[data-template="12"] .w-profile-meta > span:first-of-type { border-color: #e8b768; background: linear-gradient(115deg, #ffe9b3, #f0bd67); color: #8a4716; }
html[data-template="12"] .w-overview-balance-row { border-color: #f1d6ac; background: linear-gradient(130deg, #fffaf0, #fff0dc); }
html[data-template="12"] .w-overview-balance-row .w-balance-value,
html[data-template="12"] .t12-summary-stat strong { color: #962b17; }
html[data-template="12"] .w-tab.is-active { background: #ffe5d2; color: #b72c19; }
html[data-template="12"] .finance-balance-card { border-color: #efceaa; background: linear-gradient(120deg, #fff4e3, #ffe1c5); }
html[data-template="12"][data-template-page="tixian"] .finance-balance-card { border-color: #eec79b; background: url("festival-wallet.svg") right 9px center / 100px 86px no-repeat, linear-gradient(120deg, #fff4df, #ffdbb7); }
html[data-template="12"][data-template-page="tixian"] .finance-balance-card strong { color: #ad321a; }
html[data-template="12"] .t12-bonus-overview { border-color: #e8b776; background: url("festival-clouds.svg") right bottom / 520px auto no-repeat, linear-gradient(115deg, #c62a13, #eb6326); color: #ffe2b0; }
html[data-template="12"] .t12-bonus-overview strong { color: #fff5d4; }
html[data-template="12"] .orders-tab.is-active { background: #ffe7d2; color: #b52c17 !important; }
html[data-template="12"] .front-language-choice[aria-pressed="true"] { border-color: #e8996d; background: #fff0e0; color: #ad2f18; }
html[data-template="12"] .finance-submit-bar,
html[data-template="12"] .product-action-bar { border-color: #f1ddc7; background: rgba(255,251,244,.98); }
html[data-template="12"] #site-footer.site-footer { border-color: #f1d4b5; background: rgba(255,249,238,.98) !important; }
html[data-template="12"] #site-footer .site-footer-item { color: #ca9275 !important; }
html[data-template="12"] #site-footer .site-footer-item.is-current { color: #cc261a !important; }
html[data-template="12"] .finance-pagination a,
html[data-template="12"] .finance-pagination input[type="button"],
html[data-template="12"] .orders-pagination a,
html[data-template="12"] .front-pagination-button.front-pagination-button { background: var(--theme-primary); color: #fff; }
/* 二维码保留白底，市场结构图继续使用业务配置的等级/激活色。 */
html[data-template="12"] .qr-code,
html[data-template="12"] .qr-code-box,
html[data-template="12"] .qr-image { background: #fff; }

/* 顶部星光、卷云与波浪循环动画，背景仅在栏目范围内显示。 */
:root { --t12-header-decoration: url("festival-clouds-animated.svg?v=20261116"); }
@media (prefers-reduced-motion: reduce) { :root { --t12-header-decoration: url("festival-clouds.svg"); } }
