/* ============================================
   iPad Air 2 商品详情页 - 移动端CSS样式表
   适配设备: 手机端 (max-width: 768px)
   设计风格: 现代简约、卡片式布局、流畅动效
   ============================================ */

/* 基础重置与变量定义 */
:root {
    --primary-color: #2C99FF;
    --primary-dark: #1a7fd9;
    --secondary-color: #FF6B6B;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-card: #ffffff;
    --border-color: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 移动端基础适配 */
@media screen and (max-width: 768px) {
    
    /* 页面容器优化 */
    .page-wrapper-row,
    .page-wrapper-middle {
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }
    
    /* 页面标题区域 */
    .page-head {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 16px 0;
        margin-bottom: 0;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: var(--shadow-md);
    }
    
    .page-title {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    /* 面包屑导航 */
    .page-breadcrumb.breadcrumb {
        background: var(--bg-secondary);
        padding: 12px;
        margin: 0 -12px 16px;
        border-radius: 0;
        font-size: 13px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .page-breadcrumb li {
        display: inline-flex;
        align-items: center;
    }
    
    .page-breadcrumb li a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }
    
    .page-breadcrumb li a:active {
        opacity: 0.7;
    }
    
    .page-breadcrumb li .fa-circle {
        font-size: 4px;
        color: var(--text-muted);
        margin: 0 8px;
    }
    
    .page-breadcrumb li span {
        color: var(--text-secondary);
        font-weight: 400;
    }
    
    /* 卡片式布局 */
    .portlet.light {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        margin-bottom: 16px;
        overflow: hidden;
        border: none;
    }
    
    .portlet-title {
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-card);
    }
    
    .portlet-title .caption {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn.btn-danger.btn-xs {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
        border: none !important;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: white;
        display: inline-block;
        width: fit-content;
        box-shadow: 0 2px 8px rgba(44, 153, 255, 0.3);
    }
    
    .caption-subject.font-blue {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1.4;
        display: block;
        margin-top: 4px;
    }
    
    /* 图片轮播区域 */
    .portlet-body {
        padding: 0;
    }
    
    .row {
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .col-md-6 {
        width: 100%;
        padding: 0;
    }
    
    /* Swiper轮播优化 */
    .swiper-container {
        width: 100%;
        height: 320px;
        background: var(--bg-secondary);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .swiper-slide img {
        width: 100% !important;
        height: auto !important;
        max-height: 280px;
        object-fit: contain;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: rgba(255,255,255,0.6);
        opacity: 1;
        transition: var(--transition);
    }
    
    .swiper-pagination-bullet-active {
        background: var(--primary-color);
        width: 20px;
        border-radius: 4px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.9);
        border-radius: 50%;
        box-shadow: var(--shadow-md);
        color: var(--text-primary);
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
        font-weight: bold;
    }
    
    /* 收藏点赞区域 */
    .fc-show-total {
        padding: 20px 16px;
        background: var(--bg-card);
        margin: 0;
    }
    
    .fc-show-total .col-md-12 {
        display: flex;
        justify-content: space-around;
        gap: 12px;
    }
    
    .icon-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 16px;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        text-decoration: none;
        color: var(--text-secondary);
        transition: var(--transition);
        min-width: 80px;
        border: 1px solid transparent;
    }
    
    .icon-btn:active {
        transform: scale(0.95);
        background: #e8f4ff;
        border-color: var(--primary-color);
    }
    
    .icon-btn i {
        font-size: 20px;
        color: var(--primary-color);
        transition: var(--transition);
    }
    
    .icon-btn div {
        font-size: 12px;
        font-weight: 500;
    }
    
    .badge.badge-danger {
        background: var(--secondary-color);
        color: white;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 600;
        min-width: 20px;
        text-align: center;
    }
    
    /* 商品信息表单区域 */
    .form-body {
        padding: 20px 16px;
        background: var(--bg-card);
    }
    
    .form-group.row {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        gap: 8px;
    }
    
    .control-label.fc-sku-group-html {
        font-size: 14px;
        color: var(--text-secondary);
        font-weight: 500;
        margin-bottom: 4px;
        width: 100%;
    }
    
    .col-md-9 {
        width: 100%;
        padding: 0;
    }
    
    /* 价格显示 */
    #dr_sku_price {
        font-size: 32px;
        font-weight: 800;
        color: var(--secondary-color);
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .col-md-9:has(#dr_sku_price) {
        font-size: 16px;
        color: var(--text-muted);
    }
    
    /* 评分星星 */
    .fa-star-o,
    .fa-star {
        font-size: 18px;
        color: #ffc53d;
        margin-right: 4px;
    }
    
    /* SKU选择区域 */
    .note.note-info {
        background: var(--bg-secondary);
        border: none;
        border-radius: var(--radius-md);
        padding: 16px;
        margin: 0 -16px 20px;
    }
    
    .fc-sku-select-price {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .fc-sku-value.btn {
        padding: 10px 20px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        border: 2px solid var(--border-color);
        background: white;
        color: var(--text-primary);
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }
    
    .fc-sku-value.btn:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(44, 153, 255, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .fc-sku-value.btn:active:before {
        width: 300px;
        height: 300px;
    }
    
    .fc-sku-value.btn.red {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(44, 153, 255, 0.3);
    }
    
    .fc-sku-value.btn:not(.red):active {
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }
    
    /* 库存显示 */
    #dr_sku_quantity {
        font-size: 16px;
        font-weight: 600;
        color: var(--success-color);
        background: rgba(82, 196, 26, 0.1);
        padding: 4px 12px;
        border-radius: 12px;
        display: inline-block;
    }
    
    /* 总价显示 */
    .pricefont {
        font-size: 24px;
        font-weight: 700;
        color: var(--secondary-color);
    }
    
    #dr_total_price {
        font-size: 28px;
        font-weight: 800;
    }
    
    /* 数量选择器 */
    .input-group.bootstrap-touchspin {
        display: flex;
        align-items: center;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        padding: 4px;
        width: fit-content;
    }
    
    #dr_buy_num {
        width: 60px;
        height: 44px;
        border: none;
        background: white;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        border-radius: var(--radius-sm);
        margin: 0 4px;
        box-shadow: var(--shadow-sm);
    }
    
    .input-group-btn-vertical {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .bootstrap-touchspin-up,
    .bootstrap-touchspin-down {
        width: 36px;
        height: 20px;
        border: none;
        background: white;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }
    
    .bootstrap-touchspin-up:active,
    .bootstrap-touchspin-down:active {
        background: var(--primary-color);
        color: white;
        transform: scale(0.95);
    }
    
    /* 购买按钮区域 */
    .form-group.row:last-child {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 12px 16px;
        margin: 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        z-index: 99;
        flex-direction: row;
        gap: 12px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .form-group.row:last-child .col-md-2 {
        flex: 1;
        padding: 0;
    }
    
    .btn.green,
    .btn.red {
        width: 100%;
        padding: 14px 20px;
        border-radius: var(--radius-md);
        font-size: 16px;
        font-weight: 600;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }
    
    .btn.green {
        background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
    }
    
    .btn.red {
        background: linear-gradient(135deg, var(--secondary-color) 0%, #cf1322 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
    
    .btn.green:active,
    .btn.red:active {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .btn.green:after,
    .btn.red:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .btn.green:active:after,
    .btn.red:active:after {
        width: 300px;
        height: 300px;
    }
    
    /* 标签页导航 */
    .tabbable-line {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        margin-top: 16px;
        overflow: hidden;
    }
    
    .nav.nav-tabs {
        display: flex;
        width: 100%;
        border-bottom: 2px solid var(--border-color);
        background: var(--bg-secondary);
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav.nav-tabs li {
        flex: 1;
        text-align: center;
    }
    
    .nav.nav-tabs li a {
        display: block;
        padding: 16px 8px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: var(--transition);
        white-space: nowrap;
    }
    
    .nav.nav-tabs li.active a {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
        font-weight: 600;
    }
    
    .nav.nav-tabs li a:active {
        background: rgba(44, 153, 255, 0.05);
    }
    
    /* 标签内容区域 */
    .tab-content {
        padding: 20px 16px;
        background: var(--bg-card);
    }
    
    .tab-pane {
        font-size: 15px;
        line-height: 1.8;
        color: var(--text-primary);
    }
    
    .tab-pane p {
        margin-bottom: 12px;
        color: var(--text-secondary);
    }
    
    .tab-pane p span {
        color: var(--text-primary);
        font-weight: 500;
    }
    
    /* 属性参数表格 */
    .table.table-mtotal {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    
    .table.table-mtotal tr {
        border-bottom: 1px solid var(--border-color);
    }
    
    .table.table-mtotal tr:last-child {
        border-bottom: none;
    }
    
    .table.table-mtotal td {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .table.table-mtotal td.text-right {
        background: var(--bg-secondary);
        color: var(--text-secondary);
        font-weight: 500;
        width: 35%;
        border-right: 1px solid var(--border-color);
    }
    
    .table.table-mtotal td:not(.text-right) {
        color: var(--text-primary);
        font-weight: 500;
    }
    
    /* 评论区优化 */
    #dr_module_comment_14 {
        margin: 0 -16px;
    }
    
    .ds-replybox {
        background: var(--bg-secondary);
        padding: 16px;
        border-radius: var(--radius-md);
        margin-bottom: 20px;
    }
    
    .ds-review ul {
        list-style: none;
        padding: 0;
        margin: 0 0 16px;
    }
    
    .ds-review li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-color);
    }
    
    .ds-review li:last-child {
        border-bottom: none;
    }
    
    .opname {
        font-size: 14px;
        color: var(--text-secondary);
        font-weight: 500;
    }
    
    .commstar {
        display: flex;
        gap: 8px;
    }
    
    .commstar a {
        width: 24px;
        height: 24px;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ddd"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') center/contain no-repeat;
        transition: var(--transition);
    }
    
    .commstar a:active,
    .commstar a.active {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffc53d"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
        transform: scale(1.2);
    }
    
    .ds-avatar-top {
        display: none;
    }
    
    .ds-textarea-wrapper {
        background: white;
        border-radius: var(--radius-md);
        padding: 12px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
        transition: var(--transition);
    }
    
    .ds-textarea-wrapper:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(44, 153, 255, 0.1);
    }
    
    .ds-textarea-wrapper textarea {
        width: 100%;
        min-height: 100px;
        border: none;
        resize: vertical;
        font-size: 15px;
        line-height: 1.6;
        outline: none;
    }
    
    .ds-post-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    
    .ds-post-button {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: white;
        border: none;
        padding: 10px 24px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 12px rgba(44, 153, 255, 0.3);
    }
    
    .ds-post-button:active {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(44, 153, 255, 0.4);
    }
    
    .ds-toolbar-button {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-secondary);
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .ds-toolbar-button:active {
        background: #e8f4ff;
        transform: scale(0.9);
    }
    
    /* 评论排序栏 */
    .ds-comments-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
    }
    
    .ds-sort {
        display: flex;
        gap: 16px;
    }
    
    .ds-sort a {
        font-size: 13px;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        padding: 4px 0;
        position: relative;
    }
    
    .ds-sort a.ds-current {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .ds-sort a.ds-current:after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .ds-comment-count {
        font-size: 13px;
        color: var(--text-muted);
    }
    
    .ds-highlight {
        color: var(--primary-color);
        font-weight: 700;
    }
    
    /* 表情面板 */
    #ds-smilies-tooltip {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        background: white;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    #ds-smilies-tooltip.show {
        transform: translateY(0);
    }
    
    .ds-smilies-container {
        padding: 20px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .ds-smilies-container ul {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .ds-smilies-container li {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        border-radius: var(--radius-sm);
    }
    
    .ds-smilies-container li:active {
        background: var(--bg-secondary);
        transform: scale(0.9);
    }
    
    .ds-smilies-container img {
        width: 28px;
        height: 28px;
    }
    
    /* 底部安全区域（适配iPhone刘海屏） */
    .form-group.row:last-child {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    /* 滚动条美化 */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    ::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* 加载动画 */
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    
    .loading {
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
    
    /* 淡入动画 */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .portlet {
        animation: fadeIn 0.5s ease-out;
    }
    
    /* 选中状态动画 */
    @keyframes selectPop {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    
    .fc-sku-value.btn.red {
        animation: selectPop 0.3s ease;
    }
}

/* 超小屏幕适配 (iPhone SE等) */
@media screen and (max-width: 375px) {
    .swiper-container {
        height: 280px;
    }
    
    .icon-btn {
        min-width: 70px;
        padding: 10px 12px;
    }
    
    .btn.green,
    .btn.red {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .nav.nav-tabs li a {
        font-size: 13px;
        padding: 14px 4px;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    @media screen and (max-width: 768px) {
        :root {
            --text-primary: #ffffff;
            --text-secondary: #b0b0b0;
            --text-muted: #808080;
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --bg-card: #242424;
            --border-color: #3a3a3a;
        }
        
        .page-head {
            background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        }
        
        .swiper-container {
            background: #1a1a1a;
        }
        
        #dr_buy_num {
            background: #2d2d2d;
            color: white;
        }
        
        .bootstrap-touchspin-up,
        .bootstrap-touchspin-down {
            background: #2d2d2d;
            color: #b0b0b0;
        }
        
        .ds-textarea-wrapper {
            background: #2d2d2d;
            border-color: #3a3a3a;
        }
        
        .ds-textarea-wrapper textarea {
            background: transparent;
            color: white;
        }
    }
}

/* ============================================
   页面头部 - 手机端CSS样式表 (优化版)
   适配: max-width: 768px
   结构: 顶部工具栏 + Logo/搜索 + 导航菜单
   ============================================ */

@media screen and (max-width: 768px) {
    
    /* ========== 基础重置 ========== */
    .page-wrapper-row {
        height: auto !important;
        min-height: auto;
    }
    
    .page-wrapper-top {
        position: relative;
        background: #fff;
    }
    
    .page-header {
        width: 100%;
    }
    
    /* ========== 顶部工具栏 ========== */
    .page-header-top-index {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 8px 0;
    }
    
    .page-header-top-index .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px;
        max-width: 100%;
    }
    
    /* 左侧链接 */
    .page-top-index-left {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
    }
    
    .page-top-index-left a {
        color: rgba(255,255,255,0.95);
        text-decoration: none;
        white-space: nowrap;
        transition: opacity 0.3s;
    }
    
    .page-top-index-left a:active {
        opacity: 0.7;
    }
    
    .page-top-index-left span {
        color: rgba(255,255,255,0.4);
        font-size: 10px;
    }
    
    /* ========== 语言切换下拉 ========== */
    .wui-dropdown {
        position: relative;
    }
    
    .wui-dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        background: rgba(255,255,255,0.15);
        border-radius: 20px;
        cursor: pointer;
        border: 1px solid rgba(255,255,255,0.2);
        transition: all 0.3s;
    }
    
    .wui-dropdown-toggle:active {
        background: rgba(255,255,255,0.25);
    }
    
    .wui-icon-24 {
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .wui-lang {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(255,255,255,0.3);
    }
    
    .wui-m-r-8 {
        margin-right: 6px;
    }
    
    .language_pan {
        font-size: 12px;
        color: #fff;
        font-style: normal;
        font-weight: 500;
    }
    
    /* 下拉内容 */
    .wui-dropdown-content {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        min-width: 160px;
        max-height: 70vh;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .wui-dropdown.active .wui-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .wui-dropdown-list {
        padding: 8px 0;
    }
    
    .wui-dropdown-item {
        display: block;
        text-decoration: none;
        color: #333;
        transition: background 0.2s;
    }
    
    .wui-dropdown-item:active {
        background: #f5f5f5;
    }
    
    .wui-p-v-8 {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .wui-p-h-16 {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .wui-inline-block {
        display: inline-block;
    }
    
    .wui-text-size-md {
        font-size: 14px;
    }
    
    .wui-text-height-2xs {
        line-height: 1.4;
    }
    
    /* ========== 主导航区域 ========== */
    .page-header-top {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .page-header-top .container {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 12px;
    }
    
    /* Logo */
    .page-logo {
        flex: 0 0 auto;
    }
    
    .page-logo a {
        display: block;
    }
    
    .logo-default {
        height: 36px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
    }
    
    /* 模块名称 - 手机端隐藏 */
    .page-header-module {
        display: none;
    }
    
    /* 搜索框 */
    .page-header-search {
        flex: 1;
        min-width: 0;
    }
    
    .page-header-search .search-form {
        width: 100%;
    }
    
    .input-group {
        display: flex;
        align-items: center;
        background: #f5f7fa;
        border-radius: 24px;
        padding: 2px;
        border: 1px solid #e8e8e8;
        transition: all 0.3s;
    }
    
    .input-group:focus-within {
        background: #fff;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    }
    
    .fc-search-keyword {
        flex: 1;
        border: none;
        background: transparent;
        padding: 8px 12px;
        font-size: 14px;
        outline: none;
        min-width: 0;
    }
    
    .fc-search-keyword::placeholder {
        color: #999;
    }
    
    .input-group-btn {
        flex: 0 0 auto;
    }
    
    .input-group-btn .btn.default {
        width: 32px;
        height: 32px;
        border: none;
        background: #667eea;
        color: #fff;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
    
    .input-group-btn .btn.default:active {
        background: #5a6fd6;
        transform: scale(0.95);
    }
    
    /* 会员区域 */
    .page-header-member {
        flex: 0 0 auto;
    }
    
    #dr_member_info:empty {
        display: none;
    }
    
    #dr_member_info a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #f5f7fa;
        border-radius: 50%;
        color: #667eea;
        text-decoration: none;
        font-size: 12px;
        border: 1px solid #e8e8e8;
    }
    
    /* ========== 菜单栏 ========== */
    .page-header-menu {
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .page-header-menu .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        height: 48px;
    }
    
    /* 购物车链接 */
    .page-header-menu > .container > .search-form {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .page-header-menu > .container > .search-form a {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #ff6b6b;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        padding: 6px 12px;
        background: rgba(255,107,107,0.1);
        border-radius: 20px;
        transition: all 0.3s;
    }
    
    .page-header-menu > .container > .search-form a:active {
        background: rgba(255,107,107,0.2);
    }
    
    .page-header-menu .fa-shopping-cart {
        font-size: 16px;
    }
    
    #dr_cart_nums {
        background: #ff6b6b;
        color: #fff;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        min-width: 20px;
        text-align: center;
    }
    
    /* ========== 导航菜单 ========== */
    .hor-menu {
        flex: 1;
        margin-left: 16px;
    }
    
    .nav.navbar-nav {
        display: flex;
        align-items: center;
        gap: 8px;
        list-style: none;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav.navbar-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav.navbar-nav li {
        flex: 0 0 auto;
    }
    
    .nav.navbar-nav li a {
        display: block;
        padding: 8px 16px;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        border-radius: 20px;
        transition: all 0.3s;
    }
    
    .nav.navbar-nav li a:active {
        background: #f5f7fa;
    }
    
    /* 当前选中状态 */
    .nav.navbar-nav li.active a,
    .nav.navbar-nav li.classic-menu-dropdown.active a {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    }
    
    /* 下拉菜单 - 手机端简化 */
    .dropdown-menu.pull-left {
        display: none;
    }
    
    /* ========== 页面内容间距 ========== */
    .page-wrapper-middle {
        padding-top: 0;
    }
}

/* ========== 超小屏幕适配 ========== */
@media screen and (max-width: 375px) {
    .page-header-top .container {
        gap: 8px;
    }
    
    .logo-default {
        height: 32px;
        max-width: 120px;
    }
    
    .fc-search-keyword {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .input-group-btn .btn.default {
        width: 28px;
        height: 28px;
    }
    
    .nav.navbar-nav li a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-header-menu > .container > .search-form a {
        font-size: 13px;
        padding: 4px 10px;
    }
}

/* ========== 暗黑模式 ========== */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .page-wrapper-top,
    .page-header-top,
    .page-header-menu {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .page-top-index-left a {
        color: rgba(255,255,255,0.9);
    }
    
    .input-group {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .fc-search-keyword {
        color: #fff;
    }
    
    .fc-search-keyword::placeholder {
        color: #666;
    }
    
    .nav.navbar-nav li a {
        color: #b0b0b0;
    }
    
    .nav.navbar-nav li a:active {
        background: #2d2d2d;
    }
    
    .wui-dropdown-content {
        background: #242424;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    
    .wui-dropdown-item {
        color: #e0e0e0;
    }
    
    .wui-dropdown-item:active {
        background: #2d2d2d;
    }
}