/* =====================================================================
   mobile-v2.css — 手机端第二轮修正（仅样式层，仅 html.is-mobile 生效）
   ===================================================================== */

/* ---------- 2. 顶部改回白底，按钮恢复 antd primary ---------- */
html.is-mobile .my-m-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
html.is-mobile .my-m-logo img {
    background: none;
    border-radius: 0;
    padding: 0;
}
html.is-mobile .my-m-header-right .ant-btn-primary {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}
html.is-mobile .my-m-header-right .ant-btn-default {
    background: #fff;
    color: #333;
    border-color: #d9d9d9;
}
html.is-mobile .my-m-header-right .ant-avatar {
    background: #1677ff !important;
    color: #fff !important;
}
/* 5. 登录后顶部的购物车按钮在手机端隐藏（底栏已有购物车） */
html.is-mobile .my-m-header-right .flex > .flex-none[style*="margin"] {
    display: none !important;
}

/* ---------- 3. 搜索框：small 尺寸，固定为 flex 布局避免错位 ---------- */
html.is-mobile .my-m-header-search {
    margin-top: 6px;
}
html.is-mobile .my-m-header-search .my-search-bar {
    display: block;
    width: 100% !important;
    margin: 0 !important;
}
html.is-mobile .my-m-header-search .ant-input-group {
    display: flex !important;
    width: 100%;
}
html.is-mobile .my-m-header-search .ant-input-group > .ant-input-affix-wrapper,
html.is-mobile .my-m-header-search .ant-input-group > .ant-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 30px;
    font-size: 13px;
    border-radius: 15px 0 0 15px !important;
    padding-left: 12px;
}
html.is-mobile .my-m-header-search .ant-input-group > .ant-input-group-addon {
    flex: none;
    width: auto;
    display: block;
}
html.is-mobile .my-m-header-search .ant-input-search-button {
    height: 30px !important;
    min-height: 30px;
    font-size: 13px;
    padding: 0 12px;
    border-radius: 0 15px 15px 0 !important;
    white-space: nowrap;
}

/* ---------- 4. 返回顶部按钮移到左侧 ---------- */
html.is-mobile .ant-float-btn {
    left: 12px !important;
    right: auto !important;
    bottom: 72px !important;
}

/* ---------- 6. 骨架屏：占满整个卡片/区域 ---------- */
html.is-mobile .ant-skeleton-element {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
}
html.is-mobile .ant-skeleton-element .ant-skeleton-image,
html.is-mobile .ant-skeleton-element .ant-skeleton-input,
html.is-mobile .ant-skeleton-element .ant-skeleton-node {
    width: 100% !important;
    max-width: 100%;
}
html.is-mobile .my-home-card-slot .ant-skeleton-element .ant-skeleton-image {
    height: 150px !important;
}
html.is-mobile .my-home-card-slot .ant-skeleton {
    padding: 8px;
}
html.is-mobile .my-layout-body .flex > .flex-none:has(> .ant-skeleton-element) {
    flex: 1 1 100%;
}
html.is-mobile .my-layout-body .flex > .flex-none:has(> .ant-skeleton-element) .ant-skeleton-image {
    height: 180px !important;
}
html.is-mobile .my-layout-body .flex:has(> .flex-none > .ant-skeleton-element) {
    flex-wrap: wrap;
    padding: 8px;
}
html.is-mobile .my-layout-body .flex:has(> .flex-none > .ant-skeleton-element) > .grow {
    margin: 8px 0 0 0 !important;
}
html.is-mobile .ant-skeleton-element .ant-skeleton-node {
    height: 120px !important;
}

/* ---------- 7. 热门推荐：文字与标签对齐，默认两行，可展开 ---------- */
html.is-mobile .my-m-hot {
    align-items: flex-start;
    position: relative;
}
html.is-mobile .my-m-hot-title {
    line-height: 26px;
    padding-top: 0;
}
html.is-mobile .my-m-hot-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    white-space: normal;
    overflow: hidden;
    max-height: 58px;
    padding: 0 0 0 0;
    margin-right: 26px;
}
html.is-mobile .my-m-hot.expanded .my-m-hot-scroll {
    max-height: none;
}
html.is-mobile .my-m-hot-chip {
    margin: 0;
    line-height: 20px;
    padding: 3px 10px;
}
html.is-mobile .my-m-hot-toggle {
    position: absolute;
    right: 0;
    top: 8px;
    width: 26px;
    height: 26px;
    border: 0;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    font-size: 16px;
    line-height: 26px;
    padding: 0;
}

/* ---------- 8. 线路列表筛选：标题固定，出发时间行同字体，日期框缩小 ---------- */
html.is-mobile .my-tours-filter .content {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}
html.is-mobile .my-tours-filter .content > span.mx-3,
html.is-mobile .my-tours-filter > div.py-1 > span.mx-3 {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    flex: none;
    margin: 0 4px 0 0 !important;
    padding: 0 4px 0 10px;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #333 !important;
    line-height: 26px;
}
html.is-mobile .my-tours-filter .content > .ant-tag-checkable {
    flex: none;
}
html.is-mobile .my-tours-filter > div.py-1:not(:has(.content)) {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    gap: 4px;
    scrollbar-width: none;
}
html.is-mobile .my-tours-filter > div.py-1:not(:has(.content))::-webkit-scrollbar {
    display: none;
}
html.is-mobile .my-tours-filter > div.py-1:not(:has(.content)) > .ant-tag-checkable {
    flex: none;
}
html.is-mobile .my-tours-filter .ant-picker-range {
    flex: none;
    width: 200px;
    max-width: 200px;
    margin-left: 4px;
    height: 26px;
    padding: 0 6px;
}
html.is-mobile .my-tours-filter .ant-picker-range .ant-picker-input > input {
    font-size: 12px;
}
html.is-mobile .my-tours-filter .ant-picker-range .ant-picker-range-separator {
    padding: 0 4px;
}

/* ---------- 9. 线路详情页 ---------- */
/* 途经景点与标题左对齐 */
html.is-mobile .my-tour-des-right > div.no-print[style*="height: 35px"] {
    padding-left: 0 !important;
}
/* 线路标签：边框贴合文字，左对齐 */
html.is-mobile .my-tour-des-right > div.no-print[style*="nowrap"] {
    white-space: normal !important;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 4px !important;
}
html.is-mobile .my-tour-des-right > div.no-print[style*="nowrap"] > div[style*="rgb(37, 119, 227)"] {
    float: none !important;
    height: auto !important;
    line-height: 16px !important;
    font-size: 11px !important;
    padding: 1px 5px !important;
    margin: 0 !important;
    border-radius: 3px;
}
/* 预订面板顶部：日期字号与文字一致，剩余席位居左 */
html.is-mobile .my-order-topbar {
    font-size: 13px !important;
    padding: 8px 10px 4px 10px !important;
}
html.is-mobile .my-order-topbar > div.flex {
    flex-basis: 100%;
    align-items: center;
    margin: 3px 0 !important;
}
html.is-mobile .my-order-topbar > div.flex > div[style*="margin"] {
    margin: 0 6px 0 0 !important;
}
html.is-mobile .my-order-topbar .ant-input {
    width: 96px !important;
    height: 26px;
    font-size: 13px;
    padding: 2px 6px;
}
html.is-mobile .my-order-topbar .ant-radio-button-wrapper {
    height: 26px;
    line-height: 24px;
    font-size: 12px;
}
/* 酒店房间价格：每项一行、字号缩小 */
html.is-mobile .my-order-left > div:first-child .flex.flex-wrap > div {
    flex: 0 0 100%;
    margin-left: 0 !important;
    font-size: 13px !important;
    line-height: 1.7;
}
html.is-mobile .my-order-left > div:first-child .flex.flex-wrap > div:first-child {
    font-weight: bold;
    color: #333;
}
html.is-mobile .my-order-left .ant-btn-dangerous[style*="margin-top: -10px"] {
    margin-top: 0 !important;
    font-size: 12px;
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
}
/* 房间选择行：一行显示 */
html.is-mobile .my-order-left div[style*="border: 1px solid rgb(215, 215, 215)"] > div:has(> .ant-select) {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    font-size: 12px;
    scrollbar-width: none;
    margin-bottom: 4px;
}
html.is-mobile .my-order-left div[style*="border: 1px solid rgb(215, 215, 215)"] > div:has(> .ant-select)::-webkit-scrollbar {
    display: none;
}
html.is-mobile .my-order-left .ant-select {
    font-size: 12px;
    margin: 0 4px !important;
    flex: none;
}
html.is-mobile .my-order-left .ant-select[style*="width: 110px"] {
    width: 80px !important;
}
html.is-mobile .my-order-left .ant-select[style*="width: 60px"] {
    width: 50px !important;
}
html.is-mobile .my-order-left .ant-select[style*="width: 50px"] {
    width: 46px !important;
}
html.is-mobile .my-order-left .ant-select-single .ant-select-selector {
    padding: 0 22px 0 6px !important;
    height: 26px !important;
}
html.is-mobile .my-order-left .ant-select-single .ant-select-selection-item,
html.is-mobile .my-order-left .ant-select-single .ant-select-selection-search-input {
    line-height: 24px !important;
    height: 24px !important;
}
html.is-mobile .my-order-left .ant-btn-sm {
    font-size: 12px;
    padding: 0 6px;
    margin: 0 0 0 4px !important;
    flex: none;
}
html.is-mobile .my-order-left div[style*="border: 1px solid rgb(215, 215, 215)"] {
    padding: 6px !important;
}
/* 必付项目 / 增值服务：文字缩小，价格另起一行 */
html.is-mobile .my-order-left > div[style*="margin-top: 10px"],
html.is-mobile .my-order-left > div.flex[style*="margin-top: 10px"] > div:first-child {
    font-size: 13px !important;
    font-weight: bold;
}
html.is-mobile .my-order-left div[style*="overflow: hidden"] .flex {
    flex-wrap: wrap;
}
html.is-mobile .my-order-left div[style*="overflow: hidden"] .flex > .grow {
    flex: 1 1 100%;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}
html.is-mobile .my-clamp3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}
html.is-mobile .my-clamp3.expanded {
    -webkit-line-clamp: unset;
    display: block;
}
html.is-mobile .my-order-left div[style*="overflow: hidden"] .flex > .flex-none {
    flex: 1 1 100%;
    font-size: 12px;
    text-align: right;
    margin-top: 2px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
}
html.is-mobile .my-order-left .ant-checkbox-wrapper[style*="font-size: 17px"] {
    font-size: 13px !important;
    align-items: flex-start;
}
html.is-mobile .my-order-left .ant-checkbox-wrapper[style*="font-size: 17px"] > span:last-child {
    line-height: 1.5;
    padding-inline-start: 6px;
}
html.is-mobile .my-order-left .ant-checkbox-wrapper[style*="font-size: 17px"] span[style*="rgb(251, 95, 16)"] {
    display: block;
    font-size: 12px;
}
html.is-mobile .my-order-left .ant-btn-link.ant-btn-sm {
    font-size: 12px;
    margin-left: 0 !important;
}
/* 锚点导航：均分居中 */
html.is-mobile .my-tour-anchor ul {
    width: 100%;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 13px !important;
}
html.is-mobile .my-tour-anchor li {
    padding: 0 2px;
}

/* ---------- 10. 用户设置页（/profile）：参照登录页风格 ---------- */
html.is-mobile .my-layout-body > .py-2 {
    background: #f4f6f9;
    padding: 12px !important;
}
html.is-mobile .my-layout-body > .py-2 > .max-w-7xl {
    padding: 0 !important;
}
html.is-mobile .my-layout-body > .py-2 .bg-white.shadow {
    border: 1px solid #dde3ec;
    border-radius: 4px;
    box-shadow: none;
    padding: 16px 14px !important;
    margin-bottom: 12px;
}
html.is-mobile .my-layout-body > .py-2 .bg-white.shadow h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3d63;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef1f5;
}
html.is-mobile .my-layout-body > .py-2 .bg-white.shadow p {
    font-size: 12px;
}
html.is-mobile .my-layout-body > .py-2 form {
    margin-top: 12px !important;
}
html.is-mobile .my-layout-body > .py-2 form > div {
    margin-top: 12px !important;
}
html.is-mobile .my-layout-body > .py-2 form label {
    font-size: 13px !important;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}
html.is-mobile .my-layout-body > .py-2 form input:not([type="checkbox"]) {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 13.5px;
    color: #333;
    border: 1px solid #c8d0dc;
    border-radius: 3px;
    box-shadow: none;
    margin-top: 0 !important;
}
html.is-mobile .my-layout-body > .py-2 form input:focus {
    border-color: #1a8fe3;
    box-shadow: 0 0 0 2px rgba(26, 143, 227, 0.15);
}
html.is-mobile .my-layout-body > .py-2 form button[type="submit"] {
    width: 100%;
    height: 42px;
    justify-content: center;
    background: linear-gradient(to bottom, #2a9df0, #1079cf);
    border: 0;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(26, 143, 227, 0.35);
}
html.is-mobile .my-layout-body > .py-2 form .flex.items-center.gap-4 {
    display: block;
}

/* ---------- 11. 订单列表页：小号按钮/字体 ---------- */
html.is-mobile .my-orders-page {
    font-size: 12px;
}
html.is-mobile .my-orders-page .ant-btn:not(.ant-btn-link) {
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 24px;
    border-radius: 4px;
}
html.is-mobile .my-orders-page .ant-btn .anticon {
    font-size: 12px;
}
html.is-mobile .my-orders-page div[style*="font-size: 18px"],
html.is-mobile .my-orders-page div[style*="font-size: 15px"],
html.is-mobile .my-orders-page div[style*="font-size: 16px"] {
    font-size: 12px !important;
}
html.is-mobile .my-orders-page .ant-radio-wrapper,
html.is-mobile .my-orders-page .ant-radio-button-wrapper,
html.is-mobile .my-orders-page .ant-select,
html.is-mobile .my-orders-page .ant-input,
html.is-mobile .my-orders-page .ant-checkbox-wrapper {
    font-size: 12px;
}
html.is-mobile .my-orders-page .ant-radio-button-wrapper {
    height: 26px;
    line-height: 24px;
    padding: 0 8px;
}
html.is-mobile .my-orders-page .ant-picker {
    height: 26px;
    padding: 0 6px;
    font-size: 12px;
    max-width: 210px;
}
html.is-mobile .my-orders-page .ant-picker-input > input {
    font-size: 12px;
}
html.is-mobile .my-orders-page .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
    height: 26px;
    font-size: 12px;
}
html.is-mobile .my-orders-page .ant-select-single .ant-select-selection-item,
html.is-mobile .my-orders-page .ant-select-single .ant-select-selection-placeholder {
    line-height: 24px;
}
/* 搜索：标签 + 搜索框占一行 */
html.is-mobile .my-orders-page .flex.flex-wrap.mb-2 > div.flex {
    flex: 1 1 100%;
    align-items: center;
    margin: 4px 8px !important;
}
html.is-mobile .my-orders-page .flex.flex-wrap.mb-2 > div.flex > div:first-child {
    flex: none;
    margin-right: 6px;
}
html.is-mobile .my-orders-page .flex.flex-wrap.mb-2 > div.flex .ant-input-search {
    flex: 1 1 auto;
    width: auto !important;
}
html.is-mobile .my-orders-page .ant-input-search .ant-input,
html.is-mobile .my-orders-page .ant-input-search .ant-input-affix-wrapper {
    height: 26px;
    font-size: 12px;
}
html.is-mobile .my-orders-page .ant-input-search .ant-input-search-button {
    height: 26px !important;
    min-height: 26px;
}
html.is-mobile .my-orders-page .flex.flex-wrap.mb-2 > div {
    margin: 4px 8px !important;
}
html.is-mobile .my-orders-page .ant-divider {
    margin: 8px 0 !important;
}
html.is-mobile .my-orders-page .my-orders-table .ant-table-tbody > tr > td {
    font-size: 12px;
}

/* ---------- 9b. 预订面板修正 ---------- */
html.is-mobile .my-order-left .ant-select[style*="width: 110px"] {
    width: 96px !important;
}
html.is-mobile .my-order-left .ant-select[style*="width: 60px"] {
    width: 58px !important;
}
html.is-mobile .my-order-left .ant-select-single .ant-select-selector {
    padding: 0 18px 0 6px !important;
}
html.is-mobile .my-order-left .ant-select .ant-select-arrow {
    right: 5px;
    inset-inline-end: 5px;
}
/* “添加一间房间”按钮在手机上只显示图标，保证房间行不换行 */
html.is-mobile .my-order-left div[style*="rgb(215, 215, 215)"] > div:has(> .ant-select) > .ant-btn-sm > span:not(.anticon) {
    display: none;
}
html.is-mobile .my-order-left div[style*="rgb(215, 215, 215)"] > div:has(> .ant-select) > .ant-btn-sm {
    width: 28px;
    padding: 0;
    justify-content: center;
}
/* 必付项目：文字缩小并折叠 3 行，价格另起一行靠右 */
html.is-mobile .my-order-left div[style*="rgb(215, 215, 215)"] .flex:has(> .my-clamp3) {
    flex-wrap: wrap;
    margin-bottom: 4px;
}
html.is-mobile .my-order-left div[style*="rgb(215, 215, 215)"] .flex:has(> .my-clamp3) > .grow {
    flex: 1 1 100%;
    font-size: 12px !important;
    line-height: 1.5;
    color: #333;
}
html.is-mobile .my-order-left div[style*="rgb(215, 215, 215)"] .flex:has(> .my-clamp3) > .flex-none {
    flex: 1 1 100%;
    text-align: right;
    font-size: 12px;
    margin-top: 2px;
}
/* 增值服务行 */
html.is-mobile .my-order-left div[style*="rgb(215, 215, 215)"] .flex.my-1 {
    flex-wrap: wrap;
    margin: 4px 0 !important;
}
html.is-mobile .my-order-left div[style*="rgb(215, 215, 215)"] .flex.my-1 > .flex-none {
    flex: 1 1 100%;
    text-align: right;
    font-size: 12px;
    margin-top: 2px;
}
html.is-mobile .my-order-left .ant-select[style*="width: 50px"] {
    width: 58px !important;
}
html.is-mobile .my-layout-body section[style*="width"] {
    width: 100% !important;
    max-width: 100%;
}
