/* 门户网站访客公共壳（页头 / 主区 / 页脚） */
:root {
    --www-color-bg: #070b10;
    --www-color-surface: #121a24;
    --www-color-elevated: #1a2433;
    --www-color-text: #eef3f9;
    --www-color-muted: #8fa3b8;
    --www-color-accent: #4f8cff;
    --www-color-accent-2: #7c5cff;
    --www-color-accent-hover: #8ab8ff;
    --www-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", sans-serif;
    --www-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --www-header-h: 3.75rem;
    --www-radius-lg: 1rem;
    --www-shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.www-public {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--www-font);
    background: radial-gradient(1200px 600px at 15% -10%, color-mix(in srgb, var(--www-color-accent) 14%, transparent), transparent 55%),
        radial-gradient(900px 500px at 95% 0%, color-mix(in srgb, var(--www-color-accent-2) 12%, transparent), transparent 50%),
        var(--www-color-bg);
    color: var(--www-color-text);
    line-height: 1.55;
}

.www-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--www-color-bg) 88%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid color-mix(in srgb, var(--www-color-text) 12%, transparent);
}

.www-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: var(--www-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.www-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--www-color-text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.www-brand:hover {
    color: var(--www-color-accent-hover);
}

/* LOGO 容器：无圆角/边框/阴影，仅对齐；具体尺寸由内联 img 高度控制 */
.www-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.www-brand__mark img {
    height: 2.25rem;
    width: auto;
    max-height: 2.25rem;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    object-fit: contain;
}

.www-brand__mark--text {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--www-color-text);
}

.www-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

.www-nav a {
    color: var(--www-color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.www-nav a:hover {
    color: var(--www-color-text);
}

.www-nav a.is-active {
    color: var(--www-color-accent-hover);
    border-bottom-color: var(--www-color-accent);
}

.www-header__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.www-locale-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
}

.www-locale-switch__inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
}

.www-locale-switch__more {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: center;
}

.www-locale-switch__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.3rem 0.45rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--www-color-muted);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.www-locale-switch__more-btn:hover,
.www-locale-switch__more-btn:focus-visible {
    color: var(--www-color-text);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.www-locale-switch__more-icon {
    font-size: 0.65rem;
    opacity: 0.85;
}

.www-locale-switch__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 10.5rem;
    padding: 0.4rem;
    border-radius: 0.65rem;
    background: rgba(22, 24, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.2rem);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.www-locale-switch__panel::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 0.45rem;
}

.www-locale-switch__more:hover .www-locale-switch__panel,
.www-locale-switch__more:focus-within .www-locale-switch__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.www-locale {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: var(--www-color-muted);
    text-decoration: none;
}

.www-locale:hover {
    color: var(--www-color-text);
    background: rgba(255, 255, 255, 0.06);
}

.www-locale.is-active {
    color: #fff;
    background: linear-gradient(120deg, color-mix(in srgb, var(--www-color-accent) 45%, transparent), color-mix(in srgb, var(--www-color-accent-2) 40%, transparent));
    cursor: default;
}

.www-locale--panel {
    display: block;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    border-radius: 0.45rem;
    text-transform: none;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.www-locale--panel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.www-locale--panel.is-active {
    cursor: default;
}

/* 访客顶栏窄屏布局见 adaptive-style-js/css/www-adaptive-public-header.css（汉堡 + 折叠面板，≤1023px） */

.www-header__auth {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.88rem;
}

.www-header__auth-combined {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
}

.www-header__auth-sep {
    color: var(--www-color-muted);
    font-weight: 400;
    user-select: none;
    pointer-events: none;
}

.www-header__account {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.www-header__avatar-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    line-height: 0;
    font: inherit;
    color: inherit;
}

.www-header__avatar-trigger:focus-visible {
    outline: 2px solid var(--www-color-accent-hover);
    outline-offset: 2px;
}

.www-header__avatar-ring {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--www-color-text) 16%, transparent);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--www-color-surface) 80%, transparent);
}

.www-header__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.www-header__avatar-initial {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--www-color-text);
}

.www-header__account-menu {
    display: none;
    position: absolute;
    /* 与头像紧贴（top: 100%），避免头像与层之间的空隙导致鼠标移入时下拉消失，看起来像必须点击 */
    top: 100%;
    right: 0;
    min-width: 12rem;
    z-index: 50;
    border-radius: 0.55rem;
    border: 1px solid color-mix(in srgb, var(--www-color-text) 10%, transparent);
    background: var(--www-color-elevated);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
    padding: 0.77rem 0.75rem 0.65rem 0.75rem;
}

.www-header__account:hover .www-header__account-menu,
.www-header__account:focus-within .www-header__account-menu {
    display: block;
}

.www-header__account-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.www-header__account-menu-avatar-link {
    align-self: center;
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 50%;
    outline-offset: 3px;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.www-header__account-menu-avatar-link:hover {
    filter: brightness(1.06);
}

.www-header__account-menu-avatar-link:focus {
    outline: none;
}

.www-header__account-menu-avatar-link:focus-visible {
    outline: 2px solid var(--www-color-accent-hover);
}

.www-header__account-menu-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid color-mix(in srgb, var(--www-color-text) 12%, transparent);
}

.www-header__account-menu-avatar--fallback {
    display: inline-flex;
    align-self: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--www-color-text) 8%, transparent);
}

.www-header__user--menu {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

.www-header__account-menu-inner .www-header__auth-link {
    text-align: center;
    padding: 0.4rem 0.25rem;
}

.www-header__logout-form--menu {
    display: block;
    margin: 0;
}

.www-header__logout-form--menu .www-btn {
    width: 100%;
    justify-content: center;
}

.www-header__user {
    color: var(--www-color-muted);
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.www-header__logout-form {
    margin: 0;
    display: inline;
}

.www-header__auth-link {
    color: var(--www-color-muted);
    text-decoration: none;
}

.www-header__auth-link:hover {
    color: var(--www-color-text);
}

.www-header__auth-link--primary {
    color: var(--www-color-accent-hover);
    font-weight: 600;
}

.www-btn--sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
}

button.www-btn {
    cursor: pointer;
    font-family: inherit;
}

.www-auth {
    max-width: 26rem;
}

.www-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 登录 / 注册 / 找回密码：邮箱 ⇄ 手机 标签切换（替代 fieldset + radio） */
.www-auth-channel-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0.2rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.www-auth-channel-tab {
    flex: 1 1 50%;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--www-color-muted);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
    position: relative;
}

.www-auth-channel-tab.is-active {
    background: rgba(79, 140, 255, 0.2);
    color: var(--www-color-text);
    box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.38);
    padding-right: 1.6rem;
}

.www-auth-channel-tab.is-active::after {
    content: '✓';
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    color: #7bc89a;
}

.www-auth-channel-tab:focus-visible {
    outline: 2px solid var(--www-color-accent);
    outline-offset: 2px;
}

.www-feedback-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.www-feedback-type-tab {
    position: relative;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--www-color-muted);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.35;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.www-feedback-type-tab:hover {
    color: var(--www-color-text);
    border-color: rgba(79, 140, 255, 0.34);
}

.www-feedback-type-tab.is-active {
    padding-right: 1.7rem;
    color: var(--www-color-text);
    border-color: rgba(79, 140, 255, 0.6);
    background: rgba(79, 140, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.35);
}

.www-feedback-type-tab.is-active::after {
    content: '✓';
    position: absolute;
    right: 0.62rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    color: #7bc89a;
}

.www-feedback-type-tab:focus-visible {
    outline: 2px solid var(--www-color-accent);
    outline-offset: 2px;
}

.www-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* label[hidden] 须覆盖 .www-field 的 display，否则与 HTML hidden 属性冲突导致仍占位显示 */
.www-auth-form .www-field[hidden] {
    display: none !important;
}

/* 注册：姓/名 并排（覆盖 .www-field 的纵向 flex） */
.www-field.www-field--register-name-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
}

.www-field--register-name-row > .www-field--half {
    flex: 1 1 8rem;
    min-width: 0;
    margin: 0;
}

.www-field__label {
    font-size: 0.88rem;
    color: var(--www-color-muted);
}

.www-input {
    padding: 0.55rem 0.75rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--www-color-surface);
    color: var(--www-color-text);
    font-size: 1rem;
    font-family: inherit;
}

.www-input:focus {
    outline: none;
    border-color: var(--www-color-accent);
}

.www-input--textarea {
    width: 100%;
    min-height: 10rem;
    resize: vertical;
    line-height: 1.5;
}

/* 国际区号选择器（登录 / 注册 / 找回密码 / 账户资料等共用；须随 www-public-layout 加载） */
.www-intl-picker {
    position: relative;
    width: 100%;
}

.www-intl-picker__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.www-intl-picker__flag-wrap {
    flex-shrink: 0;
    width: 22px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.www-intl-picker__flag {
    display: block;
    width: 22px;
    height: 16px;
    object-fit: cover;
}

.www-intl-picker__flag--empty {
    display: none;
}

.www-intl-picker__trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.www-intl-picker__chev {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--www-color-muted, #8fa3b8);
    margin-left: auto;
    opacity: 0.85;
}

.www-intl-picker__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.35rem 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.www-intl-picker__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 0.25rem;
}

.www-intl-picker__option:hover,
.www-intl-picker__option:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.www-intl-picker__option .www-intl-picker__flag-wrap {
    background: rgba(255, 255, 255, 0.08);
}

/* 账户资料：区号选择与同页其它 .www-input 一致，随字段占满可用宽度 */
.www-account-profile .www-field .www-intl-picker {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

.www-field__hint {
    font-size: 0.82rem;
    line-height: 1.35;
}

.www-auth-form__actions {
    margin-top: 0.25rem;
}

/* 与 .www-field 内 .www-input 同宽（认证表单单列 stretch） */
.www-auth-form__actions .www-btn {
    width: 100%;
}

.www-auth-switch {
    margin-top: 1.5rem;
}

/* 帮助中心：左侧分类（GET /www/api/help_categories_list → 网关 /api_v3/www/help_categories_list） */
.www-help-center-layout {
    display: grid;
    grid-template-columns: minmax(12rem, 15rem) 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 52rem) {
    .www-help-center-layout {
        grid-template-columns: 1fr;
    }
}

.www-help-center-aside {
    border-radius: var(--www-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.1rem;
}

.www-help-center-aside__title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--www-color-muted);
}

.www-help-center-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.www-help-center-categories li {
    margin: 0;
}

.www-help-center-categories a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 0.35rem;
    color: var(--www-color-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.www-help-center-categories a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.www-help-center-categories a.is-active {
    background: rgba(79, 140, 255, 0.16);
    color: var(--www-color-accent-hover);
    font-weight: 600;
}

.www-help-center-main {
    min-width: 0;
}

.www-main {
    flex: 1;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 3.5rem;
}

/* 首页横幅（数据：网关 GET /api_v3/www/ads_by_slot?code=home_banner，门户经 WwwGatewayClient） */
.www-home-banner {
    margin: 0 0 1.75rem;
    border-radius: var(--www-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--www-color-surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.www-home-banner__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.www-home-banner__track::-webkit-scrollbar {
    height: 6px;
}

.www-home-banner__track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.www-home-banner__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
    position: relative;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.www-home-banner__slide img,
.www-home-banner__img {
    width: 100%;
    height: auto;
    max-height: min(360px, 48vw);
    object-fit: cover;
    display: block;
}

/* 横幅上图标题（无障碍：与 img.alt 一致，此处仅视觉层，避免读屏重复朗读） */
.www-home-banner__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 1rem 0.85rem;
    font-size: clamp(0.8125rem, 2.1vw, 1rem);
    font-weight: 600;
    line-height: 1.35;
    color: #f4f7fc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    pointer-events: none;
}

.www-home-banner__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--www-color-muted);
    background: var(--www-color-elevated);
}

.www-hero {
    position: relative;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--www-color-text) 8%, transparent);
    margin-bottom: 2rem;
}

.www-hero--home {
    padding: 2.5rem 1.5rem 3rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: calc(1.25rem + 1.5rem);
    padding-right: calc(1.25rem + 1.5rem);
    border-radius: var(--www-radius-lg);
    border: 1px solid color-mix(in srgb, var(--www-color-text) 10%, transparent);
    background: linear-gradient(145deg, color-mix(in srgb, var(--www-color-elevated) 92%, transparent), color-mix(in srgb, var(--www-color-surface) 65%, transparent));
    box-shadow: var(--www-shadow-soft);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.www-hero__glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: min(28rem, 70vw);
    height: min(28rem, 70vw);
    background: radial-gradient(circle, color-mix(in srgb, var(--www-color-accent) 22%, transparent), transparent 65%);
    pointer-events: none;
}

.www-hero__content {
    position: relative;
    z-index: 1;
}

.www-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--www-color-accent-hover);
}

.www-hero__title {
    margin: 0 0 0.75rem;
    font-family: var(--www-font-serif);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.www-hero__intro {
    margin: 0 0 1.5rem;
    color: var(--www-color-muted);
    max-width: 38rem;
    font-size: 1.08rem;
}

.www-hero__actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.www-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(120deg, var(--www-color-accent), var(--www-color-accent-2));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.25);
}

.www-btn:hover {
    filter: brightness(1.08);
    color: #fff;
}

.www-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--www-color-text);
}

.www-btn--ghost:hover {
    border-color: var(--www-color-accent);
    color: var(--www-color-accent-hover);
}

.www-section {
    padding: 0.5rem 0;
}

.www-section--soft {
    padding: 1.5rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.www-section__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.www-section__body {
    margin: 0 0 0.75rem;
    color: var(--www-color-muted);
}

.www-section__link a {
    color: var(--www-color-accent);
    text-decoration: none;
}

.www-section__link a:hover {
    text-decoration: underline;
}

/* 首页 M2：公告 + 帮助精选（BFF AJAX） */
.www-home-m2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 52rem) {
    .www-home-m2 {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.www-home-m2__panel {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.www-home-m2__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
}

.www-home-m2__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.www-home-m2__more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--www-color-accent);
    text-decoration: none;
    white-space: nowrap;
}

.www-home-m2__more:hover {
    text-decoration: underline;
    color: var(--www-color-accent-hover);
}

.www-home-m2__slot {
    flex: 1;
    min-height: 2.5rem;
}

.www-home-m2__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.www-home-m2__item {
    padding: 0.65rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--www-color-text) 8%, transparent);
}

.www-home-m2__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.www-home-m2__link {
    display: inline;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--www-color-text);
    text-decoration: none;
}

.www-home-m2__link:hover {
    color: var(--www-color-accent-hover);
    text-decoration: underline;
}

.www-home-m2__meta {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--www-color-muted);
    line-height: 1.4;
}

.www-home-m2__empty,
.www-home-m2__loading {
    margin: 0;
    font-size: 0.92rem;
}

.www-home-m2__error {
    margin: 0;
    font-size: 0.9rem;
}

/* 首页「最新应用」与「最新工具」之间留白（与 .www-home-m2 下边距一致） */
.www-home-latest-apps {
    margin-bottom: 2rem;
}

/* 首页「最新应用」：复用应用中心卡片，略收紧描述行数 */
.www-home-latest-apps__slot {
    margin-top: 0.5rem;
}

.www-home-latest-apps__grid {
    margin-top: 0.35rem;
}

.www-home-latest-apps__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.www-page--placeholder {
    padding: 1rem 0;
}

.www-page__title {
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
}

.www-page__lead {
    margin: 0;
    color: var(--www-color-muted);
    font-size: 1.05rem;
    max-width: 42rem;
}

.www-footer {
    margin-top: auto;
    border-top: 1px solid color-mix(in srgb, var(--www-color-text) 12%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--www-color-surface) 98%, transparent), var(--www-color-bg));
}

.www-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.25rem;
}

.www-footer__brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.75rem;
}

.www-footer__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

/* 站点名（与初始化 site_name 同步）与公司名同一视觉规格 */
.www-footer__site-name,
.www-footer__company {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--www-color-muted);
}

/* 版权与备案号同一行组：备案在版权右侧 */
.www-footer__legal-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

/* 版权行 */
.www-footer__legal {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--www-color-muted);
}

/* 与品牌行同一行展示版权：中间点分隔（仅两者皆有时） */
.www-footer__identity + .www-footer__legal-badges > .www-footer__legal::before {
    content: '·';
    margin-right: 0.65rem;
    color: var(--www-color-muted);
    font-weight: 400;
}

.www-footer__copy {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--www-color-muted);
}

.www-footer__contact {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--www-color-muted);
    line-height: 1.6;
    max-width: 48rem;
}

.www-footer__web {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
}

/* 官网标签+链接：排在主题/语言左侧，换行时成组 */
.www-footer__web-site {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
}

.www-footer__web-label {
    color: var(--www-color-muted);
}

.www-footer__web-link {
    color: var(--www-color-accent-hover);
    text-decoration: none;
    font-weight: 600;
}

.www-footer__web-link:hover {
    text-decoration: underline;
}

.www-footer__badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.www-footer__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 0;
}

.www-footer__badge {
    font-size: 0.8rem;
    color: var(--www-color-muted);
}

.www-footer__badge-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.www-footer__badge-link:hover {
    color: var(--www-color-accent, #2563eb);
}

/* 主题 + 语言：整组靠右；语言在主题选择框右侧 */
.www-footer__prefs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 1rem;
    margin-left: auto;
}

/* 与官网同行：主题+语言在「官网」标签左侧 */
.www-footer__prefs--web-line {
    margin-left: 0;
    justify-content: flex-start;
}

/* 语言行右侧：清除缓存按钮与语言下拉同一行 */
.www-footer__locale-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.www-footer__clear-storage-btn {
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--www-color-accent, #2563eb) 45%, transparent);
    color: #fff;
    cursor: pointer;
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--www-color-accent) 38%, transparent),
        color-mix(in srgb, var(--www-color-accent-2, var(--www-color-accent)) 32%, transparent)
    );
    white-space: nowrap;
    max-width: min(10rem, 40vw);
}

.www-footer__clear-storage-btn:hover {
    filter: brightness(1.08);
}

.www-footer__clear-storage-btn:focus {
    outline: none;
}

.www-footer__clear-storage-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--www-color-accent) 55%, transparent);
    outline-offset: 2px;
}

/* 页脚主题条与语言条：同一外壳（圆角条 + 浅底边框） */
.www-footer__theme,
.www-footer__locales {
    --www-footer-prefs-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75l3.5-3.5' stroke='%23ffffff' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-left: 0;
}

/* 与主题下拉同壳：渐变胶囊 + 白字；原生 select */
.www-footer__theme-select {
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin: 0;
    padding: 0.35rem 1.55rem 0.35rem 0.55rem;
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    max-width: min(12rem, 70vw);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: var(--www-footer-prefs-chevron), linear-gradient(120deg, color-mix(in srgb, var(--www-color-accent) 45%, transparent), color-mix(in srgb, var(--www-color-accent-2) 40%, transparent));
    background-repeat: no-repeat, no-repeat;
    background-position: right 0.42rem center, 0 0;
    background-size: 0.65rem, 100% 100%;
}

.www-footer__theme-select:hover {
    filter: brightness(1.06);
}

.www-footer__theme-select:focus {
    outline: none;
}

.www-footer__theme-select:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--www-color-accent) 55%, transparent);
    outline-offset: 2px;
}

/* 应用中心（卡片 + 独立 BFF JS） / 工具中心 / 详情 */
.www-app-center .www-page__lead,
.www-tools .www-page__lead,
.www-app-detail .www-back {
    margin-bottom: 1.25rem;
}

.www-app-center__toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.www-app-center__toolbar--tags,
.www-app-center__toolbar--industry {
    margin-top: -0.35rem;
}

.www-app-center__filter-label {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--www-color-text, #e8e8e8) 88%, transparent);
}

.www-app-center__category-tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.www-app-center__category-tags::-webkit-scrollbar {
    height: 4px;
}

.www-app-center__category-tags::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--www-color-muted, #888) 35%, transparent);
    border-radius: 999px;
}

.www-app-center__category-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.3;
    color: color-mix(in srgb, var(--www-color-text, #e8e8e8) 92%, transparent);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.www-app-center__category-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.www-app-center__category-tag:focus {
    outline: 2px solid color-mix(in srgb, var(--www-color-accent) 55%, transparent);
    outline-offset: 2px;
}

.www-app-center__category-tag:focus:not(:focus-visible) {
    outline: none;
}

.www-app-center__category-tag.is-active {
    color: var(--www-color-text, #f5f5f5);
    background: color-mix(in srgb, var(--www-color-accent) 28%, rgba(255, 255, 255, 0.06));
    border-color: color-mix(in srgb, var(--www-color-accent) 55%, rgba(255, 255, 255, 0.2));
}

.www-app-center__bff-root {
    min-height: 4rem;
}

.www-app-center__state {
    margin-top: 0.5rem;
}

.www-app-center__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1.15rem 1.25rem;
    margin-top: 1.35rem;
}

@media (min-width: 72rem) {
    .www-app-center__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.www-app-card {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(15, 23, 42, 0.35) 48%,
        rgba(15, 23, 42, 0.55) 100%
    );
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.www-app-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.www-app-card__head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.www-app-card__avatar {
    flex-shrink: 0;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e0f2fe;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.45), rgba(99, 102, 241, 0.35));
    border: 1px solid rgba(125, 211, 252, 0.25);
    overflow: hidden;
}

.www-app-card__avatar:not(.www-app-card__avatar--thumb) {
    align-self: flex-start;
    width: 2.65rem;
    height: 2.65rem;
}

.www-app-card__avatar--thumb {
    display: block;
    line-height: 0;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.5);
    border-color: color-mix(in srgb, var(--www-color-text, #eef3f9) 15%, transparent);
}

.www-app-card__thumb-img {
    width: 100%;
    height: auto;
    display: block;
}

.www-app-detail__thumb-wrap {
    margin: 0 0 1rem;
}

.www-app-detail__thumb {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--www-radius-lg, 1rem);
    border: 1px solid color-mix(in srgb, var(--www-color-text, #eef3f9) 12%, transparent);
    box-shadow: var(--www-shadow-soft, 0 20px 50px rgba(0, 0, 0, 0.45));
}

.www-app-detail__actions {
    margin-top: 1.5rem;
}

.www-app-detail__action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.www-app-detail__action-hint {
    margin-top: 0.75rem;
}

.www-application-payment__methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.www-app-card__title-block {
    min-width: 0;
    width: 100%;
}

.www-app-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.www-app-card__title a {
    color: var(--www-color-text, #eef3f9);
    text-decoration: none;
}

.www-app-card__title a:hover {
    color: var(--www-color-accent-hover);
}

.www-app-card__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.45rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--www-color-muted);
}

.www-app-card__meta-label {
    font-weight: 500;
}

.www-app-card__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.28);
    color: #cbd5e1;
}

.www-app-card__badges {
    margin-top: 0.65rem;
}

.www-app-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #bae6fd;
}

.www-app-card__tags {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
}

.www-app-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 88%, transparent);
    white-space: nowrap;
}

.www-app-card__prices {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.www-app-card__price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.www-app-card__price-line--deal strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--www-color-accent, #38bdf8);
}

.www-app-card__price-line--market {
    color: var(--www-color-muted);
    font-size: 0.78rem;
}

.www-app-card__price-label {
    color: var(--www-color-muted);
    font-weight: 500;
}

.www-app-card__gallery {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.www-app-card__gallery img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--www-color-text, #eef3f9) 10%, transparent);
}

.www-app-detail__prices {
    margin: 0 0 0.75rem;
}

.www-app-detail__gallery {
    margin: 1.25rem 0 0;
}

.www-app-detail__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 0.5rem;
}

.www-app-detail__gallery-item {
    display: block;
    border-radius: var(--www-radius-lg, 1rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--www-color-text, #eef3f9) 12%, transparent);
    line-height: 0;
}

.www-app-detail__gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.www-app-card__desc {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--www-color-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.www-app-card__foot {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.www-app-card__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
}

.www-app-center__pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.www-app-center__items-total {
    margin: 0;
    font-size: 0.88rem;
}

.www-app-center__pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.35rem;
}

.www-app-center__page-nav {
    font-size: 0.86rem;
    padding: 0.35rem 0.75rem;
}

.www-app-center__page-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.www-app-center__page-num {
    min-width: 2.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: var(--www-color-text, #eef3f9);
    font-size: 0.86rem;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.www-app-center__page-num:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.1);
}

.www-app-center__page-num.is-active {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.18);
    font-weight: 600;
    cursor: default;
}

.www-app-center__page-ellipsis {
    padding: 0 0.2rem;
    color: var(--www-color-muted);
    font-size: 0.9rem;
    user-select: none;
}

.www-app-center__page-info {
    align-self: flex-start;
}

.www-back {
    margin-top: 0;
}

.www-muted {
    color: var(--www-color-muted);
}

.www-feedback__alerts {
    margin-bottom: 1rem;
    min-height: 0;
}

.www-feedback__alerts:empty {
    margin-bottom: 0;
}

.www-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.www-alert--error {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.35);
    color: #fecaca;
}

.www-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.www-account-profile__section {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.www-account-profile__section:first-of-type {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

.www-account-profile__tabs-wrap {
    margin-top: 1.15rem;
}

.www-account-profile__tabs-wrap + .www-account-profile__section {
    margin-top: 0.85rem;
}

.www-account-profile__tabs {
    margin: 0;
}

.www-account-profile__tabs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.www-account-profile__tabs-item {
    margin: 0;
}

.www-account-profile__tabs-link {
    display: inline-block;
    padding: 0.45rem 0.85rem 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--www-color-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0.35rem 0.35rem 0 0;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.www-account-profile__tabs-link:hover {
    color: var(--www-color-text);
    background: rgba(255, 255, 255, 0.04);
}

.www-account-profile__tabs-link.is-active {
    color: var(--www-color-text);
    border-bottom-color: var(--www-color-accent);
    cursor: default;
}

.www-account-profile__tabs-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--www-color-accent) 55%, transparent);
    outline-offset: 2px;
}

.www-account-profile__sr-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.www-account-profile__h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--www-color-text, #eef3f9);
}

.www-account-profile__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
}

.www-account-profile__readonly-text {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--www-color-text, #eef3f9);
    word-break: break-word;
}

/* 租户中心账户表单：辅助文本链（个人资料 → 修改密码；修改密码页 → 返回个人资料） */
.www-account-reset-password__back-row {
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.www-account-reset-password__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    max-width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--www-color-muted) 92%, var(--www-color-text));
    text-decoration: none;
    padding: 0.4rem 0.15rem 0.4rem 0;
    border-radius: 0.35rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.www-account-reset-password__back-icon {
    flex-shrink: 0;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1;
    opacity: 0.72;
    color: var(--www-color-accent);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.www-account-reset-password__back-link:hover {
    color: var(--www-color-accent-hover);
}

.www-account-reset-password__back-link:hover .www-account-reset-password__back-icon {
    opacity: 1;
    transform: translateX(-0.12em);
}

.www-account-reset-password__back-link--forward:hover .www-account-reset-password__back-icon {
    transform: translateX(0.12em);
}

.www-account-reset-password__back-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--www-color-accent) 50%, transparent);
    outline-offset: 3px;
}

/* 租户中心 — 订阅应用（saas_tenants_subscriptions，卡片 + 分页） */
.www-account-subscriptions__root {
    margin-top: 1rem;
    min-height: 2.5rem;
}

/* 订阅状态 / 订阅阶段筛选（字典 BFF tenant_subscriptions_statuses、tenant_subscription_stages） */
.www-account-subscriptions__filters--stages {
    margin-top: 0.25rem;
}

.www-account-subscriptions__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin-bottom: 0.85rem;
}

.www-account-subscriptions__filter-label {
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--www-color-muted, #94a3b8);
    margin-right: 0.15rem;
}

.www-account-subscriptions__filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 88%, transparent);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.www-account-subscriptions__filter-chip:hover {
    background: rgba(255, 255, 255, 0.09);
}

.www-account-subscriptions__filter-chip.is-active {
    border-color: color-mix(in srgb, var(--www-color-accent, #7dd3fc) 55%, transparent);
    background: rgba(125, 211, 252, 0.12);
    color: var(--www-color-text, #eef3f9);
}

.www-account-subscriptions__filter-chip--trial {
    border-color: rgba(251, 191, 36, 0.35);
}

.www-account-subscriptions__filter-chip--trial.is-active {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
}

.www-account-subscriptions__filter-chip--active {
    border-color: rgba(52, 211, 153, 0.35);
}

.www-account-subscriptions__filter-chip--active.is-active {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.14);
    color: #a7f3d0;
}

.www-account-subscriptions__filter-chip--expired {
    border-color: rgba(148, 163, 184, 0.3);
}

.www-account-subscriptions__filter-chip--expired.is-active {
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(148, 163, 184, 0.14);
    color: color-mix(in srgb, var(--www-color-muted) 90%, var(--www-color-text));
}

.www-account-subscriptions__filter-chip--cancelled {
    border-color: rgba(248, 113, 113, 0.32);
}

.www-account-subscriptions__filter-chip--cancelled.is-active {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

/* 订阅阶段 code=RENEWAL */
.www-account-subscriptions__filter-chip--stage-renewal {
    border-color: rgba(96, 165, 250, 0.38);
}

.www-account-subscriptions__filter-chip--stage-renewal.is-active {
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(96, 165, 250, 0.14);
    color: #bfdbfe;
}

.www-account-subscriptions__layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.www-account-subscriptions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.www-account-subscriptions__card {
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: color-mix(in srgb, var(--www-color-surface, #121a24) 94%, transparent);
    padding: 1rem 1.1rem 1.05rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.www-account-subscriptions__card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.www-account-subscriptions__card-title {
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 94%, transparent);
}

.www-account-subscriptions__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.www-account-subscriptions__card-row {
    display: grid;
    grid-template-columns: 5.2rem 1fr;
    gap: 0.35rem 0.65rem;
    align-items: start;
    font-size: 0.88rem;
    line-height: 1.4;
}

.www-account-subscriptions__card-dt {
    color: var(--www-color-muted, #8fa3b8);
    font-weight: 500;
}

.www-account-subscriptions__card-dd {
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

.www-account-subscriptions__card-dd--domain-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
}

/* 行内文案触发分配临时域名（非按钮、默认与正文一致） */
.www-account-subscriptions__ensure-domain-text {
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.www-account-subscriptions__ensure-domain-text:hover {
    color: var(--www-color-accent, #7dd3fc);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.www-account-subscriptions__ensure-domain-text.is-busy {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}

.www-account-subscriptions__card-host {
    display: inline-block;
    max-width: 100%;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    font-size: 0.82em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
    word-break: break-all;
}

.www-account-subscriptions__pager {
    margin-top: 1.35rem;
}

.www-account-subscriptions__pager .www-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.www-account-subscriptions__card-footer {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.www-account-subscriptions__config-link,
.www-account-subscriptions__domain-link {
    text-decoration: none;
}

.www-account-subscriptions__purchase-link {
    text-decoration: none;
}

.www-account-subscriptions__renewal-link {
    text-decoration: none;
}

/* 租户中心 — 订阅应用配置（saas_tenants_applications_configs） */
.www-account-subscription-app-config__root {
    margin-top: 1rem;
    min-height: 2.5rem;
}

.www-account-subscription-app-config__panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.www-account-subscription-app-config__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.www-account-subscription-app-config__status {
    min-height: 0;
}

.www-account-subscription-app-config__domain {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.06);
}

.www-account-subscription-app-config__domain-heading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.www-account-subscription-app-config__domain-row {
    margin: 0 0 0.85rem;
    word-break: break-all;
}

.www-account-subscription-app-config__domain-host {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.www-account-subscription-app-config__domain-empty {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.www-account-subscription-app-config__dns-title {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.www-account-subscription-app-config__dns-body {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: inherit;
    opacity: 0.9;
}

.www-account-subscription-app-config__dns-body p {
    margin: 0 0 0.45rem;
}

.www-account-subscription-app-config__dns-body p:last-child {
    margin-bottom: 0;
}

.www-account-subscription-app-config__dns-caption {
    margin: 0.35rem 0 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1;
}

.www-account-subscription-app-config__dns-example {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    margin: 0 0 0.65rem;
    line-height: 1.4;
}

.www-account-subscription-app-config__dns-example th,
.www-account-subscription-app-config__dns-example td {
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 0.42rem 0.55rem;
    vertical-align: top;
    text-align: left;
}

.www-account-subscription-app-config__dns-example th {
    font-weight: 600;
    background: rgba(148, 163, 184, 0.08);
}

.www-account-subscription-app-config__dns-example-host {
    display: inline-block;
    max-width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    word-break: break-all;
}

.www-account-subscription-app-config__bound {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.www-account-subscription-app-config__bound-heading {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.www-account-subscription-app-config__bound-hint {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    line-height: 1.5;
}

.www-account-subscription-app-config__bound-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.www-account-subscription-app-config__bound-input {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.25);
    color: inherit;
    font-size: 0.9rem;
}

.www-account-subscription-app-config__bound-input:focus {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    outline-offset: 1px;
}

.www-account-subscription-app-config__bound-status {
    flex: 1 0 100%;
    min-height: 0;
    margin-top: 0.35rem;
}

.www-account-subscription-app-config__bound-status .www-alert {
    margin: 0;
    font-size: 0.86rem;
}

.www-account-subscription-app-config__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.www-account-subscription-app-config__table th,
.www-account-subscription-app-config__table td {
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.5rem 0.65rem;
    vertical-align: top;
    text-align: left;
}

.www-account-subscription-app-config__table th {
    font-weight: 600;
    background: rgba(148, 163, 184, 0.08);
}

.www-account-subscription-app-config__input,
.www-account-subscription-app-config__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font: inherit;
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.www-account-subscription-app-config__input:read-only {
    opacity: 0.9;
}

.www-account-subscription-app-config__updated {
    white-space: nowrap;
    font-size: 0.85rem;
}

/* 租户中心 — 订单（saas_orders） */
.www-account-orders__root {
    margin-top: 1rem;
    min-height: 2.5rem;
}

.www-account-orders__toolbar-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.www-account-orders__toolbar-stack .www-account-orders__toolbar {
    margin-bottom: 0;
}

.www-account-orders__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.45rem 0.85rem;
    margin-bottom: 0.85rem;
}

.www-account-orders__filter-label {
    flex-shrink: 0;
    padding-top: 0.28rem;
    font-size: 0.88rem;
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 85%, transparent);
}

.www-account-orders__filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    flex: 1;
    min-width: 0;
}

.www-account-orders__filter-tag {
    margin: 0;
    padding: 0.28rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.35;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 88%, transparent);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.www-account-orders__filter-tag:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    color: var(--www-color-text, #eef3f9);
}

.www-account-orders__filter-tag.is-active {
    border-color: color-mix(in srgb, var(--www-color-accent) 55%, rgba(255, 255, 255, 0.12));
    background: color-mix(in srgb, var(--www-color-accent) 18%, rgba(0, 0, 0, 0.15));
    color: var(--www-color-text, #eef3f9);
}

.www-account-orders__filter-tag:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--www-color-accent) 55%, transparent);
    outline-offset: 2px;
}

.www-account-orders__filter-empty {
    margin: 0.25rem 0 0;
}

.www-account-orders__status-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.www-account-orders__status-text {
    min-width: 0;
}

.www-account-orders__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

/* 租户中心 — 支付详情页（saas_payments） */
.www-account-payments-detail__root {
    margin-top: 0.5rem;
    min-height: 2.5rem;
}

.www-account-payments-detail__back {
    margin: 0 0 0.75rem;
}

/* 竖向：每条支付记录一块 + 与全站 .www-dl 一致的 dt/dd 行 */
.www-account-payments-detail__records {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 40rem;
}

.www-account-payments-detail__record {
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1rem 0.35rem;
    background: rgba(255, 255, 255, 0.02);
}

.www-account-payments-detail__record-heading {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 90%, transparent);
}

.www-account-payments-detail__record .www-dl,
.www-account-payments-detail__dl {
    margin-top: 0;
    max-width: none;
}

.www-account-orders__table-wrap {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.www-account-orders__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.www-account-orders__table th,
.www-account-orders__table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.www-account-orders__table th {
    font-weight: 600;
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 88%, transparent);
    background: rgba(255, 255, 255, 0.04);
}

.www-account-orders__table tbody tr:last-child td {
    border-bottom: none;
}

.www-account-order-detail__status-dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.www-account-order-detail__status-text {
    min-width: 0;
}

.www-account-order-detail__pay-btn {
    flex-shrink: 0;
}

.www-account-order-detail__back {
    margin: 0 0 0.75rem;
}

.www-account-order-detail__lines-title {
    margin: 1.5rem 0 0.65rem;
    font-size: 1rem;
    font-weight: 600;
}

.www-account-order-detail__table-wrap {
    overflow-x: auto;
    max-width: 48rem;
}

.www-account-order-detail__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.www-account-order-detail__table th,
.www-account-order-detail__table td {
    padding: 0.5rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.www-account-order-detail__table th {
    color: var(--www-color-muted);
    font-weight: 500;
}

.www-account-orders__table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* 租户中心 — 工单（saas_feedback_tickets） */
.www-account-tickets__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0 0.35rem;
}

.www-account-tickets__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.5rem;
    align-items: center;
    margin: 0 0 1rem;
}

.www-account-tickets__filter-label {
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--www-color-muted, #94a3b8);
    margin-right: 0.15rem;
}

.www-account-tickets__filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 88%, transparent);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.www-account-tickets__filter-chip:hover {
    background: rgba(255, 255, 255, 0.09);
}

.www-account-tickets__filter-chip.is-active {
    border-color: color-mix(in srgb, var(--www-color-accent, #7dd3fc) 55%, transparent);
    background: rgba(125, 211, 252, 0.12);
    color: var(--www-color-text, #eef3f9);
}

.www-account-tickets__filter-chip--pending {
    border-color: rgba(251, 191, 36, 0.35);
}

.www-account-tickets__filter-chip--pending.is-active {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
}

.www-account-tickets__filter-chip--processing {
    border-color: rgba(56, 189, 248, 0.35);
}

.www-account-tickets__filter-chip--processing.is-active {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.14);
    color: #bae6fd;
}

.www-account-tickets__filter-chip--adopted {
    border-color: rgba(52, 211, 153, 0.35);
}

.www-account-tickets__filter-chip--adopted.is-active {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.14);
    color: #a7f3d0;
}

.www-account-tickets__filter-chip--rejected {
    border-color: rgba(248, 113, 113, 0.32);
}

.www-account-tickets__filter-chip--rejected.is-active {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.www-account-tickets__filter-chip--closed {
    border-color: rgba(148, 163, 184, 0.3);
}

.www-account-tickets__filter-chip--closed.is-active {
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(148, 163, 184, 0.14);
    color: color-mix(in srgb, var(--www-color-muted) 90%, var(--www-color-text));
}

/* 工单类型筛选（字典 saas_feedback_types，BFF tenant_feedback_tickets_types） */
.www-account-tickets__filters--types {
    margin-top: 0.25rem;
}

.www-account-tickets__filter-chip--type-item {
    border-color: rgba(167, 139, 250, 0.35);
}

.www-account-tickets__filter-chip--type-item.is-active {
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(167, 139, 250, 0.12);
    color: #ddd6fe;
}

/* 新建工单：类型单选（与列表筛选条同款 chip，非下拉） */
.www-account-tickets__filters--new-type {
    margin-bottom: 0.95rem;
}

/* 新建工单类型 chip：略增行高，与下方表单区一致 */
.www-account-tickets__filters--new-type .www-account-tickets__filter-chip {
    line-height: 1.45;
}

/* 新建工单：与「标题（选填）」「详细描述」等 label 行对齐 */
.www-account-tickets__form-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 92%, transparent);
}

.www-account-tickets__form-label-title,
.www-account-tickets__form-label-hint {
    font-weight: inherit;
}

.www-account-tickets__form-label-hint {
    color: color-mix(in srgb, var(--www-color-muted) 88%, var(--www-color-text, #eef3f9));
}

/* 新建工单：选中类型（含打勾，与列表筛选区分） */
.www-account-tickets__filters--new-type .www-account-tickets__filter-chip--new-type-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.www-account-tickets__filters--new-type .www-account-tickets__filter-chip--new-type-choice.is-active {
    border-width: 2px;
    border-color: rgba(196, 181, 253, 0.95);
    background: linear-gradient(
        145deg,
        rgba(167, 139, 250, 0.35) 0%,
        rgba(139, 92, 246, 0.22) 100%
    );
    color: #f5f3ff;
    font-weight: 700;
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.45),
        0 6px 18px rgba(0, 0, 0, 0.22);
}

.www-account-tickets__filters--new-type .www-account-tickets__filter-chip--new-type-choice.is-active::before {
    content: '✓';
    flex-shrink: 0;
    font-weight: 900;
    font-size: 0.88rem;
    line-height: 1;
    color: #e9d5ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.www-account-tickets__root {
    margin-top: 0.5rem;
    min-height: 2.5rem;
}

.www-account-tickets__table-wrap {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.www-account-tickets__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.www-account-tickets__table th,
.www-account-tickets__table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.www-account-tickets__table th {
    font-weight: 600;
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 88%, transparent);
    background: rgba(255, 255, 255, 0.04);
}

.www-account-tickets__table tbody tr:last-child td {
    border-bottom: none;
}

.www-account-tickets__table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.www-account-tickets__link {
    cursor: pointer;
    color: var(--www-color-accent, #7dd3fc);
    text-decoration: underline;
    background: none;
    border: none;
    font: inherit;
    padding: 0;
}

/* 工单状态：与 saas_feedback_tickets_status 常见 id / 文案对应 */
.www-account-tickets__status-tag {
    display: inline-block;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: color-mix(in srgb, var(--www-color-text, #eef3f9) 92%, transparent);
}

.www-account-tickets__status-tag--pending {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

.www-account-tickets__status-tag--processing {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
}

.www-account-tickets__status-tag--adopted {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.12);
    color: #a7f3d0;
}

.www-account-tickets__status-tag--rejected {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
}

.www-account-tickets__status-tag--closed {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.1);
    color: color-mix(in srgb, var(--www-color-muted) 95%, var(--www-color-text));
}

.www-account-tickets__status-tag--default {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.www-account-tickets__table td:nth-child(4) {
    vertical-align: middle;
}

.www-account-tickets__detail-meta .www-account-tickets__status-tag {
    vertical-align: baseline;
}

.www-account-tickets__pager {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.www-account-tickets__detail {
    margin-top: 1rem;
    padding: 1.2rem 1.15rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.www-account-tickets__detail-meta {
    font-size: 0.88rem;
    color: var(--www-color-muted);
    margin-bottom: 0.75rem;
}

.www-account-tickets__detail-body {
    white-space: pre-wrap;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.www-account-tickets__timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.www-account-tickets__timeline li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.www-account-tickets__timeline li:last-child {
    border-bottom: none;
}

.www-account-tickets__timeline time {
    font-size: 0.82rem;
    color: var(--www-color-muted);
}

.www-account-tickets__form {
    margin-top: 1.35rem;
}

.www-account-tickets__form input[type='text'],
.www-account-tickets__form textarea {
    width: 100%;
    line-height: 1.55;
}

.www-account-tickets__form textarea {
    min-height: 5rem;
    padding: 0.75rem 0.8rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    font: inherit;
    box-sizing: border-box;
}

/* 新建/详情工单块内按钮（含「上传附件」「提交」）略增行高 */
.www-account-tickets__detail .www-btn {
    line-height: 1.45;
}

/* 新建工单：主「提交」在 detail 下，与上一区块拉开间距 */
.www-account-tickets__detail > .www-btn {
    margin-top: 1rem;
}

.www-account-tickets__form .www-btn {
    margin-top: 0.75rem;
}

.www-account-tickets__stars {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.www-account-tickets__stars button {
    min-width: 2.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
}

.www-account-tickets__stars button.is-active {
    border-color: rgba(250, 204, 21, 0.55);
    background: rgba(250, 204, 21, 0.12);
}

/* 门户经 BFF → 网关 multipart 上传（头像等可复用） */
.www-gateway-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem 1rem;
}

.www-gateway-upload__preview-wrap {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.www-gateway-upload__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.www-gateway-upload__preview[hidden] {
    display: none !important;
}

.www-gateway-upload__preview-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.15), rgba(124, 92, 255, 0.12));
}

.www-gateway-upload__preview-placeholder[hidden] {
    display: none;
}

.www-gateway-upload__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.www-gateway-upload__file {
    position: absolute;
    width: 0.01px;
    height: 0.01px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.www-gateway-upload__status {
    font-size: 0.82rem;
    min-height: 1.2em;
}

.www-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.www-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.www-table th,
.www-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.www-table thead th {
    font-weight: 600;
    color: var(--www-color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.www-table tbody tr:last-child td {
    border-bottom: none;
}

.www-table__link {
    color: var(--www-color-accent);
    text-decoration: none;
    font-weight: 600;
}

.www-table__link:hover {
    text-decoration: underline;
    color: var(--www-color-accent-hover);
}

.www-table__desc {
    max-width: 28rem;
    color: var(--www-color-muted);
}

.www-table__cover-cell {
    width: 4.5rem;
    vertical-align: middle;
    color: var(--www-color-muted);
    font-size: 0.9rem;
}

.www-table__cover-img {
    display: block;
    width: 3.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.www-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

.www-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1.5rem;
}

.www-pagination__info {
    color: var(--www-color-muted);
    font-size: 0.9rem;
}

.www-pagination .www-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.www-dl {
    margin: 1.25rem 0 0;
    max-width: 40rem;
}

.www-dl__row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.www-dl__row:last-child {
    border-bottom: none;
}

.www-dl dt {
    margin: 0;
    color: var(--www-color-muted);
    font-size: 0.9rem;
}

.www-dl dd {
    margin: 0;
}

/* 支付页：优惠券冲抵占位（无券或金额为 0 时仍展示一行，样式略弱） */
.www-dl__dd--coupon-placeholder {
    color: var(--www-color-muted);
}

.www-table__meta {
    white-space: nowrap;
    color: var(--www-color-muted);
    font-size: 0.88rem;
}

.www-article-body__heading {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.1rem;
}

.www-article-body {
    max-width: 48rem;
    line-height: 1.65;
    color: var(--www-color-text);
    word-break: break-word;
}

/* 公告正文：strip_tags 保留的少量块级标签 */
.www-article-body--html p {
    margin: 0 0 0.75em;
}

.www-article-body--html ul,
.www-article-body--html ol {
    margin: 0 0 0.75em;
    padding-left: 1.25rem;
}

.www-article-body--html h2,
.www-article-body--html h3,
.www-article-body--html h4 {
    margin: 1em 0 0.5em;
    font-size: 1.05rem;
}

/* 文章 / 帮助：Markdown 渲染（marked + 净化） */
.www-article-body--markdown {
    font-size: 0.98rem;
}

.www-article-body--markdown p {
    margin: 0 0 0.75em;
}

.www-article-body--markdown h1,
.www-article-body--markdown h2,
.www-article-body--markdown h3,
.www-article-body--markdown h4,
.www-article-body--markdown h5,
.www-article-body--markdown h6 {
    margin: 1.1em 0 0.45em;
    line-height: 1.25;
    font-weight: 650;
}

.www-article-body--markdown ul,
.www-article-body--markdown ol {
    margin: 0 0 0.75em;
    padding-left: 1.35rem;
}

.www-article-body--markdown pre {
    overflow: auto;
    max-width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--www-color-surface) 92%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    line-height: 1.45;
}

.www-article-body--markdown code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.88em;
}

.www-article-body--markdown pre code {
    font-size: inherit;
}

.www-article-body--markdown blockquote {
    margin: 0.75em 0;
    padding: 0.35rem 0 0.35rem 1rem;
    border-left: 3px solid color-mix(in srgb, var(--www-color-accent) 55%, transparent);
    color: var(--www-color-muted);
}

.www-article-body--markdown table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0.75em 0;
}

.www-article-body--markdown th,
.www-article-body--markdown td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.55rem;
}

.www-article-body--markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 0.35rem;
}

.www-article-body--markdown a {
    color: var(--www-color-accent-hover);
}

/* 租户账户概要：外框 + 统一小卡片网格（资料与待办同款） */
.www-account__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.65rem 0.85rem;
    align-items: stretch;
    margin-top: 1.5rem;
    max-width: 72rem;
    padding: 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: color-mix(in srgb, var(--www-color-surface) 55%, transparent);
    box-sizing: border-box;
}

.www-account__grid-span {
    grid-column: 1 / -1;
}

.www-account__todos-error {
    margin: 0;
    font-size: 0.88rem;
}

/* 待办卡片容器：子项参与外层网格，便于与资料卡同一排布 */
.www-account__todos-body {
    display: contents;
}

.www-account__profile-dl {
    margin: 0;
    max-height: 11rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.www-account__todos-card--profile .www-account__row {
    grid-template-columns: minmax(3.75rem, auto) 1fr;
    gap: 0.35rem 0.5rem;
    padding: 0.28rem 0;
}

.www-account__todos-card--profile .www-account__row dt {
    font-size: 0.72rem;
}

.www-account__todos-card--profile .www-account__row dd {
    font-size: 0.78rem;
}

.www-account__todos-card {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--www-color-surface) 92%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.www-account__todos-card .www-account__todos-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.www-account__todos-section-title {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--www-color-muted);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.www-account__todos-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    line-height: 1.4;
    max-height: 11rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.www-account__todos-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.www-account__todos-list li:last-child {
    border-bottom: none;
}

.www-account__todos-list .www-account__todos-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--www-color-muted);
    margin-top: 0.12rem;
}

.www-account__row {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.www-account__row:last-child {
    border-bottom: none;
}

.www-account__row dt {
    margin: 0;
    color: var(--www-color-muted);
    font-size: 0.9rem;
}

.www-account__row dd {
    margin: 0;
    font-size: 0.95rem;
    word-break: break-word;
}

/* -------------------------------------------------------------------------- */
/* 右下角浮动咨询（与意见反馈 BFF 同源） */
/* -------------------------------------------------------------------------- */

body.www-float-consult--open {
    overflow: hidden;
}

.www-float-consult {
    position: fixed;
    z-index: 10050;
    right: max(1rem, env(safe-area-inset-right, 0));
    bottom: max(1rem, env(safe-area-inset-bottom, 0));
    left: auto;
    top: auto;
    width: 0;
    height: 0;
    pointer-events: none;
}

.www-float-consult__launcher {
    pointer-events: auto;
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0));
    bottom: max(1rem, env(safe-area-inset-bottom, 0));
    width: 3.35rem;
    height: 3.35rem;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--www-color-accent, #4f8cff), var(--www-color-accent-2, #7c5cff));
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.www-float-consult__launcher:hover,
.www-float-consult__launcher:focus-visible {
    filter: brightness(1.08);
    transform: scale(1.04);
    outline: 2px solid color-mix(in srgb, var(--www-color-accent) 55%, transparent);
    outline-offset: 2px;
}

.www-float-consult__launcher-icon {
    display: flex;
    line-height: 0;
}

.www-float-consult__backdrop {
    pointer-events: auto;
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(7, 11, 16, 0.55);
    backdrop-filter: blur(4px);
}

.www-float-consult__panel {
    pointer-events: auto;
    position: fixed;
    z-index: 10045;
    right: max(1rem, env(safe-area-inset-right, 0));
    bottom: max(5.25rem, calc(1rem + env(safe-area-inset-bottom, 0) + 3.35rem + 0.5rem));
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(32rem, 70vh);
    overflow: auto;
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: color-mix(in srgb, var(--www-color-surface, #121a24) 96%, transparent);
    box-shadow: var(--www-shadow-soft, 0 20px 50px rgba(0, 0, 0, 0.45));
}

.www-float-consult__close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--www-color-muted, #8fa3b8);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.www-float-consult__close:hover,
.www-float-consult__close:focus-visible {
    color: var(--www-color-text, #eef3f9);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.www-float-consult__title {
    margin: 0 1.75rem 0.35rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--www-color-text, #eef3f9);
}

.www-float-consult__unsure {
    margin: 0 0 0.65rem;
    font-size: 0.86rem;
    color: var(--www-color-muted, #8fa3b8);
}

.www-float-consult__chips {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.www-float-consult__chip {
    text-align: left;
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--www-color-text, #eef3f9);
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.www-float-consult__chip:hover,
.www-float-consult__chip:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.www-float-consult__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.www-float-consult__textarea {
    width: 100%;
    min-height: 5.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--www-color-bg, #070b10);
    color: var(--www-color-text, #eef3f9);
    font: inherit;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
}

.www-float-consult__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.www-float-consult__label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--www-color-muted, #8fa3b8);
}

.www-float-consult__input {
    padding: 0.45rem 0.55rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--www-color-bg, #070b10);
    color: var(--www-color-text, #eef3f9);
    font: inherit;
    font-size: 0.9rem;
}

.www-float-consult__hint {
    font-size: 0.78rem;
    color: var(--www-color-muted, #8fa3b8);
    line-height: 1.35;
}

.www-float-consult__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.www-float-consult__submit {
    flex: 0 0 auto;
}

.www-float-consult__full-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--www-color-accent-hover, #8ab8ff);
    text-decoration: none;
}

.www-float-consult__full-link:hover {
    text-decoration: underline;
}

.www-float-consult__alert {
    margin-top: 0.25rem;
    min-height: 0;
}

.www-float-consult__alert .www-muted {
    margin: 0;
    font-size: 0.82rem;
}

/* 意见反馈 / 工单附件（先上传再提交 JSON） */
.www-feedback-attachments {
    margin-top: 0.25rem;
}

.www-feedback-attachments__list {
    list-style: none;
    margin: 0.35rem 0 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.www-feedback-attachments__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.www-feedback-attachments__item a {
    color: var(--www-color-accent-hover, #8ab8ff);
    word-break: break-all;
}

.www-feedback-attachments__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.www-feedback-attachments__file {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.www-feedback-attachments__status {
    font-size: 0.82rem;
}

/* 图形验证码 + Turnstile 占位（默认单行：输入 → 图 → 换一张；输入略窄为图+按钮留位） */
.www-captcha-widget__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0.5rem;
    min-width: 0;
}

/* 输入框、验证码图、「换一张」统一高度（与 .www-input 约 40px 一致） */
.www-captcha-widget__row .www-input,
.www-captcha-widget__img,
.www-captcha-widget__refresh {
    box-sizing: border-box;
}

.www-captcha-widget__row .www-input {
    flex: 1 1 0;
    min-width: 6.25rem;
    width: auto;
    max-width: 11rem;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.55rem;
}

.www-captcha-widget__img {
    display: block;
    flex: 0 0 auto;
    height: 2.5rem;
    width: auto;
    max-width: 7.5rem;
    object-fit: contain;
    border-radius: 0.45rem;
    border: 1px solid color-mix(in srgb, var(--www-color-text) 12%, transparent);
    background: color-mix(in srgb, var(--www-color-surface) 88%, #fff);
    cursor: pointer;
}

.www-captcha-widget__refresh {
    flex: 0 0 auto;
    height: 2.5rem;
    min-height: 2.5rem;
    width: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
    font-size: 1rem;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.www-captcha-widget__refresh-icon {
    width: 1rem;
    height: 1rem;
    display: block;
}

/* 极窄视口仍保持一行；若实在放不下，横向滚动整行（避免按钮单独换行） */
@media (max-width: 20rem) {
    .www-captcha-widget__row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }
}

.www-captcha-widget__turnstile {
    margin-top: 0.5rem;
}

.www-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
