/* 前台模板 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;
}

/* 模板 6：自然绿色商城。这里只定义表现，原开关、金额、订单状态和提交方式均保留。 */
html[data-template="6"] {
    --t6-page: #fff4f3;
    --t6-card: #ffffff;
    --t6-ink: #3d2127;
    --t6-muted: #9b8283;
    --t6-line: #f0dfe0;
    --t6-shadow: 0 5px 18px rgba(134, 50, 65, .055);
    --t6-radius: 17px;
    background: #f7eded;
    color-scheme: light;
    scroll-padding-top: 76px;
}
html[data-template="6"] body {
    box-sizing: border-box;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--t6-page) !important;
    color: var(--t6-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="6"] body *,
html[data-template="6"] body *::before,
html[data-template="6"] body *::after { box-sizing: border-box; }
html[data-template="6"] body { --finance-blue: var(--theme-primary); --finance-text: var(--t6-ink); --finance-muted: var(--t6-muted); --finance-soft: #f9f4f2; --finance-line: var(--t6-line); --w-blue: var(--theme-primary); --w-text: var(--t6-ink); --w-muted: var(--t6-muted); --w-soft: #fff4ee; --w-line: var(--t6-line); }
html[data-template="6"] body a { text-decoration: none; }
html[data-template="6"] .finance-shell,
html[data-template="6"] .w-shell { width: 100%; max-width: 520px; padding: 0 12px 14px; margin: 0 auto; }
html[data-template="6"] .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: url("petals.svg") right center / cover no-repeat, linear-gradient(120deg, #f5c9ce, #f9dce0);
    color: #fff;
    box-shadow: none;
    z-index: 20;
}
html[data-template="6"] .finance-header h1 { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.4; }
html[data-template="6"] .finance-header .finance-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; color: #fff; }
html[data-template="6"] .finance-header .finance-icon { width: 23px; height: 23px; }
html[data-template="6"] h2 { color: var(--t6-ink); }
html[data-template="6"] .finance-section-title,
html[data-template="6"] .registration-section-title { margin: 17px 0 12px; padding-top: 0; border: 0; font-size: 17px; }

/* 轻描边、白色圆角卡片；账户结构图使用原有等级/激活状态颜色。 */
html[data-template="6"] .finance-record,
html[data-template="6"] .orders-card,
html[data-template="6"] .messages-card,
html[data-template="6"] .business-address,
html[data-template="6"] .profile-intro,
html[data-template="6"] .password-intro,
html[data-template="6"] .registration-intro,
html[data-template="6"] .finance-info-card,
html[data-template="6"] .finance-empty,
html[data-template="6"] .app-download-card,
html[data-template="6"] .app-install-guide,
html[data-template="6"] .qr-card,
html[data-template="6"] .promotion-link-card,
html[data-template="6"] .product-summary,
html[data-template="6"] .store-cart .product-box,
html[data-template="6"] .new-category-li,
html[data-template="6"] .business-content .message {
    margin-bottom: 12px;
    border: 1px solid var(--t6-line);
    border-radius: var(--t6-radius);
    background: #fff;
    box-shadow: var(--t6-shadow);
}
html[data-template="6"] .finance-record,
html[data-template="6"] .orders-card,
html[data-template="6"] .business-address { padding: 15px; }
html[data-template="6"] .finance-record .row { gap: 10px; padding: 5px 0; }
html[data-template="6"] .finance-empty { padding: 24px 16px; color: var(--t6-muted); }
html[data-template="6"] .finance-account-card { background: #fff; border-radius: var(--t6-radius); }
html[data-template="6"] .finance-balance-card {
    padding: 19px;
    border: 1px solid #efd5d7;
    border-radius: var(--t6-radius);
    background: url("petals.svg") right bottom / 310px auto no-repeat, linear-gradient(120deg, #fff8f0, #f6d8da);
}
html[data-template="6"] .finance-balance-name { color: var(--theme-primary); font-size: 18px; }
html[data-template="6"] .finance-balance-label { color: #996d70; font-size: 12px; }
html[data-template="6"] .finance-balance-card strong { color: #492329; font-size: clamp(25px, 7vw, 34px); }
html[data-template="6"] .withdrawal-balance-row { justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
html[data-template="6"] .finance-form { margin-bottom: 12px; }
html[data-template="6"] .finance-field { margin-bottom: 14px; }
html[data-template="6"] .finance-field > label,
html[data-template="6"] .finance-field > .finance-label { margin-bottom: 7px; color: var(--t6-ink); font-size: 14px; }
html[data-template="6"] input:not([type]),
html[data-template="6"] input[type="text"],
html[data-template="6"] input[type="password"],
html[data-template="6"] input[type="number"],
html[data-template="6"] input[type="search"],
html[data-template="6"] input[type="email"],
html[data-template="6"] input[type="tel"],
html[data-template="6"] input[type="url"],
html[data-template="6"] input[type="date"],
html[data-template="6"] select,
html[data-template="6"] textarea {
    max-width: 100%;
    border: 1px solid #efdddd;
    border-radius: 12px;
    background-color: #fbf7f5;
    color: var(--t6-ink);
    box-shadow: none;
}
html[data-template="6"] .finance-field input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]),
html[data-template="6"] .finance-field select { min-height: 46px; padding-top: 10px; padding-bottom: 10px; font-size: 16px; }
html[data-template="6"] input::placeholder,
html[data-template="6"] textarea::placeholder { color: #ab9697; opacity: 1; }
html[data-template="6"] input[type="checkbox"],
html[data-template="6"] input[type="radio"] { accent-color: var(--theme-primary); }
html[data-template="6"] input:focus,
html[data-template="6"] textarea:focus,
html[data-template="6"] select:focus { border-color: var(--theme-primary); outline-color: var(--theme-primary); }

/* 主操作使用绿色胶囊按钮，危险操作仍保留原来的危险色。 */
html[data-template="6"] .finance-submit,
html[data-template="6"] .business-content .submit-btn,
html[data-template="6"] .business-content .open-btn,
html[data-template="6"] .product-primary,
html[data-template="6"] .registration-agree,
html[data-template="6"] .app-primary-link,
html[data-template="6"] .promotion-copy-submit,
html[data-template="6"] .store-search button[type="submit"],
html[data-template="6"] .store-checkout,
html[data-template="6"] .button.bg-yellow,
html[data-template="6"] .button.bg-blue,
html[data-template="6"] .button.bg-main,
html[data-template="6"] .btnzbz,
html[data-template="6"] .w-logout a {
    min-height: 44px;
    border: 1px solid var(--theme-primary);
    border-radius: 999px;
    background: linear-gradient(115deg, #e69aa6, #a92e45);
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(161, 53, 72, .10);
    text-align: center;
}
html[data-template="6"] .finance-submit-bar,
html[data-template="6"] .product-action-bar {
    max-width: 520px;
    padding: 12px;
    border-color: var(--t6-line);
    background: rgba(255, 255, 255, .98);
}
html[data-template="6"] .finance-link-button,
html[data-template="6"] .finance-code-button,
html[data-template="6"] .front-pagination-button,
html[data-template="6"] .orders-action,
html[data-template="6"] .app-secondary-link { border-color: #e8cdd0; border-radius: 999px; background: #fff; color: var(--theme-primary); }
html[data-template="6"] .finance-pagination,
html[data-template="6"] .orders-pagination { justify-content: center; gap: 7px; }
html[data-template="6"] .finance-pagination-summary { color: var(--t6-muted); text-align: center; font-size: 12px; }
html[data-template="6"] .finance-icon-button,
html[data-template="6"] .business-add { color: var(--theme-primary); }
html[data-template="6"] .finance-header .finance-icon-button { color: #fff; }

/* 首页：绿叶页头、紧凑搜索、圆角广告与商品卡片。配置的广告和商品图片原样使用。 */
html[data-template="6"] .store-shouye .finance-shell { padding-top: 0; }
html[data-template="6"] .t6-home-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -12px;
    padding: 16px 13px 10px;
    background: linear-gradient(115deg, #fbe4e4, #f6d3d7);
    color: white;
}
html[data-template="6"] .t6-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="6"] .t6-store-brand svg { flex: 0 0 25px; width: 25px; height: 28px; }
html[data-template="6"] .t6-home-header .store-search { flex: 1; min-width: 0; margin: 0; }
html[data-template="6"] .t6-home-header .store-search form { gap: 4px; padding: 3px 5px; border-radius: 999px; background: #fff; }
html[data-template="6"] .t6-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="6"] .t6-home-header .store-search .store-language { flex: 0 0 27px; min-height: 34px; }
html[data-template="6"] .t6-home-header .store-search button[type="submit"] { min-height: 32px; padding: 5px 9px; font-size: 12px; }
html[data-template="6"] .store-tabs { gap: 15px; margin: 0 -12px 12px; padding: 7px 15px 13px; background: #fce8e8; }
html[data-template="6"] .store-tabs a { color: #fff !important; font-size: 13px; }
html[data-template="6"] .store-banner { overflow: hidden; margin: 0 0 12px; border-radius: 17px; box-shadow: var(--t6-shadow); }
html[data-template="6"] .store-slides img { width: 100%; height: auto; aspect-ratio: 2.38; object-fit: cover; }
html[data-template="6"] .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(--t6-line); border-radius: 17px; background: #fff; box-shadow: var(--t6-shadow); }
html[data-template="6"] .store-shortcuts .item { min-width: 0; }
html[data-template="6"] .store-shortcuts .picicon > div { width: 41px !important; height: 41px !important; margin: auto; border-radius: 13px !important; background: linear-gradient(145deg, #fff4eb, #f3d6c7); }
html[data-template="6"] .store-shortcuts .store-shortcut-icon { color: #bd4e64; }
html[data-template="6"] .store-shortcuts .item:nth-child(3) .picicon > div { background: #fff1df; }
html[data-template="6"] .store-shortcuts .item:nth-child(3) .store-shortcut-icon { color: #c98d48; }
html[data-template="6"] .store-shortcuts h3 { padding: 0 2px; color: var(--t6-ink); font-size: 12px; line-height: 1.45; }
html[data-template="6"] .store-news { padding: 10px 12px; border: 1px solid var(--t6-line); border-radius: 13px; background: #fff; color: #9a7a7f; }
html[data-template="6"] .store-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; }
html[data-template="6"] .store-products > .item { padding: 9px; border: 1px solid var(--t6-line); border-radius: 15px; background: #fff; }
html[data-template="6"] .store-products .text-cut-2 { margin: 8px 0; font-size: 13px; }
html[data-template="6"] .store-products .text-lg { color: #b43148; font-size: 17px; font-weight: 650; }
html[data-template="6"] .store-products .cu-tag { border-radius: 5px; background: #fce8e8; color: var(--theme-primary); }
html[data-template="6"] .store-product-add { background: var(--theme-primary-soft); color: var(--theme-primary); }
html[data-template="6"] .store-category-list .is-current { background: #f8dcdf; color: #ae3e55; }

/* 我的：绿色身份区，真实账户数据构成的白色摘要卡，四列功能图标。 */
html[data-template="6"] .w-profile {
    min-height: 138px;
    margin: 0 -12px;
    padding: 27px 17px 30px;
    background: url("petals.svg") right bottom / cover no-repeat, linear-gradient(115deg, #f9dfe2, #f1c1c8);
    color: #fff;
}
html[data-template="6"] .w-avatar { width: 57px; height: 57px; border: 2px solid rgba(255, 255, 255, .7); background: #f9e7df; }
html[data-template="6"] .w-name { font-size: 18px; }
html[data-template="6"] .w-profile-meta { color: #fff7ee; }
html[data-template="6"] .w-profile-meta > span:first-of-type { padding: 1px 7px; border-radius: 6px; background: #e9c58a; color: #80582d; }
html[data-template="6"] .w-language { color: #fff; font-size: 12px; }
html[data-template="6"] .w-tabs { position: relative; top: auto; gap: 0; justify-content: space-around; margin: -14px 0 12px; padding: 8px; border: 1px solid var(--t6-line); border-radius: 15px; background: #fff; box-shadow: var(--t6-shadow); }
html[data-template="6"] .w-tab { min-height: 35px; padding: 5px 14px; border-radius: 999px; color: #a18b8c; font-size: 15px; }
html[data-template="6"] .w-tab.is-active { background: #f9dcdf; color: #943348; }
html[data-template="6"] .w-tab::after { display: none; }
html[data-template="6"] .w-overview { padding: 0; margin-bottom: 12px; }
html[data-template="6"] .w-overview-balance-row { display: flex; align-items: stretch; gap: 0; margin: 0 0 12px; padding: 19px 6px; border: 1px solid var(--t6-line); border-radius: 16px; background: #fff; box-shadow: var(--t6-shadow); }
html[data-template="6"] .t6-summary-main,
html[data-template="6"] .t6-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="6"] .t6-summary-main { flex-direction: column-reverse; }
html[data-template="6"] .t6-summary-stat { border-left: 1px solid var(--t6-line); }
html[data-template="6"] .w-overview-balance-row .w-balance-label { max-width: none; justify-content: center; gap: 3px; font-size: 12px; }
html[data-template="6"] .w-overview-balance-row .w-balance-value,
html[data-template="6"] .t6-summary-stat strong { margin: 0; color: #382027; 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="6"] .t6-summary-stat span { font-size: 12px; }
html[data-template="6"] .w-eye { width: 22px; height: 24px; }
html[data-template="6"] .w-eye svg { width: 18px; height: 18px; }
html[data-template="6"] .w-balance-caption { margin: 4px 0 10px; color: #a18184; font-size: 12px; }
html[data-template="6"] .w-quick-actions { gap: 8px; margin: 0 0 12px; padding: 13px 7px; border: 1px solid var(--t6-line); border-radius: 16px; background: white; }
html[data-template="6"] .w-quick-icon { width: 42px; height: 42px; border-radius: 13px; background: #f9e2d7; color: #c04c63; }
html[data-template="6"] .w-quick-icon svg { width: 25px; height: 25px; }
html[data-template="6"] .w-quick-action { font-size: 12px; }
html[data-template="6"] .w-section-heading { margin: 16px 0 10px; }
html[data-template="6"] .w-section-heading h2 { font-size: 17px; }
html[data-template="6"] .w-account-list,
html[data-template="6"] .w-service-grid { border: 1px solid var(--t6-line); border-radius: 16px; background: #fff; box-shadow: var(--t6-shadow); }
html[data-template="6"] .w-account { min-height: 76px; padding: 13px; border-color: var(--t6-line); }
html[data-template="6"] .w-account-icon { background: #fce7e4; color: #b34a5f; }
html[data-template="6"] .w-account-value { color: #47272c; font-size: 20px; }
html[data-template="6"] .w-services { margin-top: 15px; }
html[data-template="6"] .w-services-kicker { color: var(--t6-muted); font-size: 11px; }
html[data-template="6"] .w-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 5px; padding: 16px 5px; }
html[data-template="6"] .w-service { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 2px; border: 0; text-align: center; }
html[data-template="6"] .w-service-icon { width: 39px; height: 39px; border-radius: 13px; background: linear-gradient(145deg, #fff4e9, #f2d2c3); color: #c45368; }
html[data-template="6"] .w-service-icon svg { width: 24px; height: 24px; }
html[data-template="6"] .w-service-text h2 { color: #502e35; font-size: 12px; line-height: 1.45; font-weight: 550; }
html[data-template="6"] .w-service::after { display: none; }
html[data-template="6"] .w-community { gap: 10px; }
html[data-template="6"] .w-community a { border: 1px solid var(--t6-line); border-radius: 14px; background: #fff; }
html[data-template="6"] .w-logout { margin: 17px 0 0; padding: 0; border: 0; }
html[data-template="6"] .w-logout a { display: flex; align-items: center; justify-content: center; min-height: 45px; }

/* 订单保留原有四种状态及各操作，视觉使用绿色选中标签。 */
html[data-template="6"] .orders-tabs { gap: 4px; padding: 7px; border: 0; border-radius: 14px; background: #fff; }
html[data-template="6"] .orders-tab { min-height: 38px; padding: 7px 3px; border-radius: 999px; font-size: 12px; }
html[data-template="6"] .orders-tab.is-active { background: #f7d7dc; color: #943348 !important; }
html[data-template="6"] .orders-tab.is-active::after { bottom: 0; background: var(--theme-primary); }
html[data-template="6"] .orders-card-header { padding-bottom: 10px; border-color: var(--t6-line); }
html[data-template="6"] .orders-state { color: var(--theme-primary); }
html[data-template="6"] .orders-product { gap: 12px; padding: 12px 0; }
html[data-template="6"] .orders-product img { border-radius: 12px; background: #fff2ef; }
html[data-template="6"] .orders-product-name { font-size: 14px; }
html[data-template="6"] .orders-card-actions { gap: 8px; padding-top: 10px; border-color: var(--t6-line); }
html[data-template="6"] .bonus-filter { gap: 8px; padding: 12px; border: 1px solid var(--t6-line); background: #fff; }
html[data-template="6"] .bonus-filter input.Wdate { flex: 1; width: 90px; min-width: 65px; }
html[data-template="6"] .t6-bonus-overview { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 13px; padding: 18px 17px; border: 1px solid #f4dac6; border-radius: 16px; background: url("petals.svg") right bottom / auto 180px no-repeat, linear-gradient(115deg, #fff4df, #f6d9bf); }
html[data-template="6"] .t6-bonus-overview > div { flex: 1; min-width: 110px; }
html[data-template="6"] .t6-bonus-overview span { display: block; font-size: 12px; }
html[data-template="6"] .t6-bonus-overview strong { display: block; margin-top: 5px; font-size: 23px; font-variant-numeric: tabular-nums; }

/* 老列表仍按表格展示；在小屏横向浏览，不挤压列、不改业务结构图。 */
html[data-template="6"] .t6-table-scroll,
html[data-template="6"] .table-container { width: 100%; max-width: 100%; overflow-x: auto; margin: 12px 0; border: 1px solid var(--t6-line); border-radius: 14px; background: #fff; }
html[data-template="6"] .t6-data-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; background: #fff; }
html[data-template="6"] .t6-data-table th,
html[data-template="6"] .t6-data-table td { padding: 11px 12px; border: 1px solid var(--t6-line); text-align: center; vertical-align: middle; }
html[data-template="6"] .t6-data-table th { background: #fbe6e4; color: #7d4952; }
html[data-template="6"] .t6-data-table tbody tr:nth-child(even) { background: #fffbf8; }
html[data-template="6"] .container,
html[data-template="6"] .container2 { max-width: 100%; }
html[data-template="6"] .profile-intro-icon,
html[data-template="6"] .registration-intro-icon,
html[data-template="6"] .password-intro-icon,
html[data-template="6"] .finance-account-row-icon { background: #fae6de; color: var(--theme-primary); }
html[data-template="6"] .finance-account-row { gap: 12px; padding: 16px; }
html[data-template="6"] .front-language-choice { padding: 16px; border-color: var(--t6-line); border-radius: 14px; background: #fff; }
html[data-template="6"] .front-language-choice[aria-pressed="true"] { border-color: var(--theme-primary); background: #fce6e6; color: #a8374e; }
html[data-template="6"] .finance-account-name { font-size: 18px; }
html[data-template="6"] .product-action-bar a { border-radius: 999px; }
html[data-template="6"] .product-price { color: #b43148; }

/* 底部固定导航沿用原功能入口和自动选中逻辑。安全区由原脚本统一测量。 */
html[data-template="6"] #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: #f0dcdd; background: rgba(255,255,255,.98) !important; }
html[data-template="6"] #site-footer .site-footer-item { gap: 3px; color: #a49190 !important; font-size: 11px !important; }
html[data-template="6"] #site-footer .site-footer-item.is-current { color: #b7475b !important; font-weight: 650; }
html[data-template="6"] #site-footer .w-icon { width: 23px !important; height: 23px !important; }
html[data-template="6"] 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="6"] .t6-home-header { gap: 6px; }
    html[data-template="6"] .t6-store-brand { flex-basis: 86px; font-size: 14px; }
    html[data-template="6"] .w-profile { padding: 23px 12px 28px; gap: 9px; }
    html[data-template="6"] .w-avatar { width: 46px; height: 46px; }
    html[data-template="6"] .w-name { font-size: 16px; }
    html[data-template="6"] .w-service-grid { gap: 14px 3px; }
}
@media (prefers-reduced-motion: reduce) {
    html[data-template="6"] *, html[data-template="6"] *::before, html[data-template="6"] *::after { scroll-behavior: auto !important; }
}

/* 输入区域与页面底色拉开层次，密码显隐控件右侧留白仍由原样式控制。 */
html[data-template="6"] .finance-page:not(.store-page) .finance-form {
    padding: 15px;
    border: 1px solid var(--t6-line);
    border-radius: 17px;
    background: #fff;
}
html[data-template="6"] .finance-field input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]),
html[data-template="6"] .finance-field select,
html[data-template="6"] .finance-field textarea {
    border: 1px solid #eedddd;
    background-color: #f9f5f3;
}
html[data-template="6"] #wode-account-list {
    overflow: hidden;
    border: 1px solid var(--t6-line);
    border-radius: 16px;
    background: #fff;
}
html[data-template="6"] .w-account-row { padding: 14px 12px; }
html[data-template="6"] .w-overview-balance-row .w-balance-value { letter-spacing: normal; }
html[data-template="6"] .bonus-page .finance-record .row:not(:first-child) { color: #b43148; font-weight: 600; }
html[data-template="6"] .bonus-page .finance-record .row .label { font-weight: 400; }
html[data-template="6"] #site-footer .site-footer-item { font-size: 12px !important; }

/* 旧版功能页同样采用绿色页头，原定位和标题内容继续沿用。 */
html[data-template="6"] .header.header-color,
html[data-template="6"] .header-background,
html[data-template="6"] body > .header {
    max-width: 520px;
    background: url("petals.svg") right center / cover no-repeat, linear-gradient(115deg, #fbe4e4, #f6d3d7);
    color: #fff;
}
html[data-template="6"] .header-title,
html[data-template="6"] .header.header-color a { color: #fff !important; }
html[data-template="6"] .t6-fixed-header { left: 50% !important; width: 100%; max-width: 520px; transform: translateX(-50%); }
html[data-template="6"] #wode-page .w-balance-panel {
    border: 1px solid #edcbd0;
    background: url("petals.svg") right bottom / cover no-repeat, linear-gradient(115deg, #e39aa7, #b33e55);
    color: #fff;
}
html[data-template="6"] #wode-page .w-balance-panel .w-balance-value,
html[data-template="6"] #wode-page .w-balance-panel .w-balance-label,
html[data-template="6"] #wode-page .w-balance-panel .w-balance-available-value { color: #fff; }
html[data-template="6"] #wode-page .w-balance-panel .w-balance-action { background: #fff; color: var(--theme-primary); }

/* 旧页残留的 360px 最小宽度和 vw 余额卡不能超出模板画布。 */
html[data-template="6"] .container,
html[data-template="6"] .container2 { width: 100%; min-width: 0 !important; }
html[data-template="6"] .red_bg { width: 100% !important; max-width: 100%; }
html[data-template="6"] .recharge_wrap { width: 100%; max-width: 100%; padding: 12px; }
html[data-template="6"] .recharge_wrap .red_top_bg {
    min-height: 62px;
    padding: 16px;
    border-radius: 15px;
    background: url("petals.svg") right center / cover no-repeat, linear-gradient(115deg, #fbe4e4, #f6d3d7);
    color: #fff;
}
html[data-template="6"] .recharge_wrap .big_tit { color: #fff; }
html[data-template="6"] .recharge_wrap .balance {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
    padding: 16px;
    border: 1px solid var(--t6-line);
    border-radius: 15px;
    background: #fff;
    color: var(--t6-ink);
}

/* 旧商城轮播曾写死 331px，窄屏仍沿用其内容并让容器缩到当前画布。 */
html[data-template="6"] .red_bg > uni-view,
html[data-template="6"] .red_bg uni-swiper,
html[data-template="6"] .red_bg .swiper-container {
    width: 100% !important;
    max-width: 100%;
}
/* 兼容旧版商城与个人页中的独立红色页头、购买按钮。 */
html[data-template="6"] .header,
html[data-template="6"] .index_header,
html[data-template="6"] .icon_header,
html[data-template="6"] .red_bg {
    background: url("petals.svg") right center / cover no-repeat, linear-gradient(115deg, #fbe4e4, #f6d3d7);
    color: #fff;
}
html[data-template="6"] .com-button,
html[data-template="6"] .coupon-buy,
html[data-template="6"] .buy-btn-copy,
html[data-template="6"] .getTbk {
    border-color: var(--theme-primary);
    border-radius: 999px;
    background: var(--theme-primary) !important;
    color: #fff;
}
/* 模板 6：柔粉花瓣、玫瑰红与奶油浅金；只覆盖视觉，不改变任何业务开关。 */
html[data-template="6"] {
    --t6-page: #fff4f3;
    --t6-ink: #3e2027;
    --t6-muted: #a08487;
    --t6-line: #f0dfe0;
    --t6-shadow: 0 6px 20px rgba(155, 74, 89, .055);
    background: #f8eeee;
}
html[data-template="6"] body {
    background-image: url("petals.svg"), linear-gradient(180deg, #fff0f1, #fff8f5);
    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="6"] .finance-header {
    min-height: 64px;
    padding: 14px;
    background: url("petals.svg") right top / 520px auto no-repeat, linear-gradient(110deg, #f9dcde, #ffefed 55%, #f6d0d6);
    color: var(--t6-ink);
}
html[data-template="6"] .finance-header h1 { font-size: 19px; color: var(--t6-ink); }
html[data-template="6"] .finance-header .finance-icon-button { color: #69313f; }
html[data-template="6"] .header,
html[data-template="6"] .header.header-color,
html[data-template="6"] .header-background,
html[data-template="6"] .index_header,
html[data-template="6"] .icon_header,
html[data-template="6"] .red_bg {
    background: url("petals.svg") right top / 520px auto no-repeat, linear-gradient(110deg, #f9dcde, #ffefed 55%, #f6d0d6);
    color: var(--t6-ink);
}
html[data-template="6"] .header-title,
html[data-template="6"] .header.header-color a { color: #63313d !important; }

/* 主按钮保留原点击/提交行为，采用参考图的玫瑰光泽渐变。 */
html[data-template="6"] .finance-submit,
html[data-template="6"] .business-content .submit-btn,
html[data-template="6"] .business-content .open-btn,
html[data-template="6"] .product-primary,
html[data-template="6"] .registration-agree,
html[data-template="6"] .app-primary-link,
html[data-template="6"] .promotion-copy-submit,
html[data-template="6"] .store-search button[type="submit"],
html[data-template="6"] .store-checkout,
html[data-template="6"] .button.bg-yellow,
html[data-template="6"] .button.bg-blue,
html[data-template="6"] .button.bg-main,
html[data-template="6"] .btnzbz,
html[data-template="6"] .w-logout a {
    background: linear-gradient(180deg, #eaa2ae 0%, #ce687e 42%, #af354f 100%);
    border-color: #cd7a8b;
    box-shadow: 0 4px 9px rgba(173, 62, 86, .10), inset 0 1px 0 rgba(255,255,255,.35);
    color: #fff !important;
}
html[data-template="6"] .finance-submit-bar,
html[data-template="6"] .product-action-bar { background: rgba(255, 249, 247, .98); border-color: #f1dfe0; }
html[data-template="6"] .finance-field input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]),
html[data-template="6"] .finance-field select,
html[data-template="6"] .finance-field textarea { border-color: #eedbdc; background-color: #faf6f5; }
html[data-template="6"] .finance-record,
html[data-template="6"] .orders-card,
html[data-template="6"] .registration-intro,
html[data-template="6"] .profile-intro,
html[data-template="6"] .password-intro,
html[data-template="6"] .messages-card,
html[data-template="6"] .business-address { background: rgba(255, 253, 250, .97); }

/* 首页品牌居中在搜索框上方；配置的商城名称和广告保持不变。 */
html[data-template="6"] .t6-home-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 19px 14px 11px;
    background: url("petals.svg") center top / 520px auto no-repeat, linear-gradient(115deg, #fce9e6, #fff5f1 54%, #f9d8dc);
    color: #63303a;
}
html[data-template="6"] .t6-store-brand { flex: 0 0 auto; justify-content: center; gap: 9px; font-size: 23px; letter-spacing: 1px; }
html[data-template="6"] .t6-store-brand svg { width: 32px; height: 35px; flex-basis: 32px; }
html[data-template="6"] .t6-home-header .store-search { flex: 0 0 auto; }
html[data-template="6"] .t6-home-header .store-search form { min-height: 44px; gap: 6px; padding: 4px 5px 4px 8px; border: 1px solid #edc7cd; background: rgba(255,255,255,.96); }
html[data-template="6"] .t6-home-header .store-search input[type="text"] { min-height: 34px; font-size: 14px; }
html[data-template="6"] .t6-home-header .store-search .store-language { flex-basis: 27px; }
html[data-template="6"] .store-tabs { margin-bottom: 12px; padding-top: 6px; padding-bottom: 10px; background: rgba(252,232,232,.9); }
html[data-template="6"] .store-tabs a { color: #89525d !important; }
html[data-template="6"] .store-shortcuts { background: rgba(255, 250, 246, .94); border-color: #f2dddd; }
html[data-template="6"] .store-shortcuts .picicon > div { background: linear-gradient(150deg, #fff7ec, #f6e5d8 52%, #f1d0c5); }
html[data-template="6"] .store-shortcuts .store-shortcut-icon { color: #be5268; }
html[data-template="6"] .store-shortcuts .item:nth-child(3) .picicon > div { background: linear-gradient(150deg, #fff4e8, #f4dac0); }
html[data-template="6"] .store-shortcuts .item:nth-child(3) .store-shortcut-icon { color: #c37869; }
html[data-template="6"] .store-news { background: #fff9f6; border-color: #f0dbde; }
html[data-template="6"] .store-products > .item { background: #fffcf9; border-color: #f0dfe0; }
html[data-template="6"] .store-products .examine { background: #fff0ec; }
html[data-template="6"] .store-products .text-lg,
html[data-template="6"] .product-price { color: #b3344c; }

/* 会员页使用柔粉身份区及水晶皇冠装饰。徽章与用户等级仍读取原数据。 */
html[data-template="6"] .w-profile {
    min-height: 143px;
    padding: 26px 17px 31px;
    background: url("rose-crown.svg?v=20261117-three-color-glow") right 16px bottom 5px / 110px 86px no-repeat,
                url("petals.svg") right top / 520px auto no-repeat,
                linear-gradient(110deg, #f7d5da, #fff0e9 57%, #f3c6ce);
    color: #3e2027;
}
html[data-template="6"] .w-avatar { border-color: rgba(255, 251, 243, .8); background: #fff3e9; }
html[data-template="6"] .w-profile-meta { color: #865761; }
html[data-template="6"] .w-profile-meta > span:first-of-type { border: 1px solid #d9b071; border-radius: 999px; padding: 1px 8px; background: linear-gradient(115deg, #edcf93, #dbad60); color: #fffaf2; }
html[data-template="6"] .w-language { color: #7e414f; }
html[data-template="6"] .w-tabs { border-color: #f1dcdd; background: rgba(255,251,247,.97); }
html[data-template="6"] .w-tab.is-active { background: #f7d7dd; color: #a13750; }
html[data-template="6"] .w-overview-balance-row { border-color: #f1dcda; background: linear-gradient(130deg, #fffdf7, #fff1e7); box-shadow: 0 6px 16px rgba(179,102,109,.06); }
html[data-template="6"] .w-overview-balance-row .w-balance-value,
html[data-template="6"] .t6-summary-stat strong { color: #3c2027; }
html[data-template="6"] .t6-summary-stat { border-color: #f0deda; }
html[data-template="6"] .w-quick-actions,
html[data-template="6"] .w-service-grid,
html[data-template="6"] #wode-account-list { border-color: #f0dddd; background: rgba(255,252,248,.97); }
html[data-template="6"] .w-quick-icon,
html[data-template="6"] .w-service-icon { background: linear-gradient(155deg, #fff5eb, #f8e5d9 54%, #efcbbd); color: #c2526c; border-radius: 13px; }
html[data-template="6"] .w-account-symbol { color: #bd546a; background: #fae3e1; }
html[data-template="6"] .w-account-symbol.is-green { color: #c2737e; background: #f7e3df; }
html[data-template="6"] .w-account-symbol.is-gold { color: #c39151; background: #fbefdf; }
html[data-template="6"] .w-account-symbol.is-purple { color: #bd718f; background: #f9e6ed; }
html[data-template="6"] .w-account-row { border-color: #f0dddd; }
html[data-template="6"] .w-account-value { color: #583039; }

/* 提现卡的装饰钱包不参与表单或金额计算。 */
html[data-template="6"][data-template-page="tixian"] .finance-balance-card {
    min-height: 126px;
    padding-right: 115px;
    background: url("rose-wallet.svg") right 12px center / 96px 84px no-repeat,
                linear-gradient(120deg, #fff9f0, #f9e2df 65%, #f4cdd3);
    border-color: #f0d5d6;
}
html[data-template="6"][data-template-page="tixian"] .withdrawal-balance-row { flex-direction: column; align-items: flex-start; gap: 5px; }
html[data-template="6"][data-template-page="tixian"] .finance-balance-name { max-width: 100%; gap: 6px; color: #a65c6a; font-size: 14px; }
html[data-template="6"][data-template-page="tixian"] .finance-balance-card strong { margin-top: 1px; font-size: clamp(28px, 8vw, 35px); color: #4a222c; }
html[data-template="6"] .t6-bonus-overview { border-color: #f0d8c6; background: url("petals.svg") right bottom / 520px auto no-repeat, linear-gradient(115deg, #fff4df, #f7ddc7); }
html[data-template="6"] .t6-bonus-overview strong { color: #4c282d; }
html[data-template="6"] .bonus-page .finance-record .row:not(:first-child) { color: #b62643; }
html[data-template="6"] .orders-tab.is-active { background: #f8d6dc; color: #912f46 !important; }
html[data-template="6"] .orders-state { color: #b52f49; }
html[data-template="6"] .orders-action { border-color: #dbb0b7; background: #fffafa; color: #8e3f50; }
html[data-template="6"] #site-footer.site-footer { border-color: #efd5d8; background: rgba(255,249,247,.98) !important; }
html[data-template="6"] #site-footer .site-footer-item { color: #a18a8b !important; }
html[data-template="6"] #site-footer .site-footer-item.is-current { color: #b13c54 !important; }
@media (max-width: 359px) {
    html[data-template="6"] .t6-store-brand { flex-basis: auto; font-size: 20px; }
    html[data-template="6"] .w-profile { padding-left: 13px; padding-right: 13px; }
    html[data-template="6"][data-template-page="tixian"] .finance-balance-card { padding-right: 97px; background-size: 81px 71px, auto; }
}

/* 语言入口固定到身份栏右上角，避开右下方皇冠。 */
html[data-template="6"] .w-profile { position: relative; }
html[data-template="6"] .w-profile .w-language {
    position: absolute !important;
    top: 8px;
    right: 14px;
    margin: 0;
    padding: 6px 0 6px 8px;
    z-index: 4;
}
