*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    overflow-x: hidden;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: visible; /* 关键：body 不当滚动容器，sticky 相对 html 视口吸附 */
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Flexbox 浏览器兼容性 */
.flex-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.flex-column {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.flex-between {
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.flex-center {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.flex-nowrap {
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

body {
    /* ★ 动态顶留白：JS(aiPages.js layoutSidebarTop) 按 header 实际高度+12px 灰缝写入 --app-top，
       使内容面板顶部与分类栏白色圆角头精确对齐（原固定 100px 与 header 高度不匹配造成大空隙） */
    padding-top: var(--app-top, 100px);
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 图片占位符 */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: placeholder-loading 1.5s infinite;
}

@keyframes placeholder-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 商品图片优化 */
.card-img img,
.goods-detail-images img {
    object-fit: cover;
    transition: opacity 0.3s;
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    background: white;
}

/* ★ 顶部导航栏立体悬浮效果：
   header 固定在顶部全宽悬浮，下方投射两层柔和阴影（近层收敛 + 远层扩散），
   与侧栏/功能区的灰调悬浮投影同源（rgba(15,23,42)），不压边线、不遮挡下方 12px 灰缝。 */
.header {
    position: relative;
    z-index: 1400;          /* 高于侧栏(1300)：导航栏悬浮在最上层，阴影自然覆在侧栏/功能区上方 */
    box-shadow: 0 2px 6px rgba(15,23,42,0.10), 0 8px 24px rgba(15,23,42,0.10), inset 0 -1px 0 rgba(15,23,42,0.05) !important;
    border-bottom: none !important;
}

.header .announcement-bar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    order: 2;
    flex-shrink: 0;
}

.announcement-bar {
    background: white;
    color: #000;
    padding: 0.4rem 1rem;
    min-height: 2rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
}

.announcement-scroll {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 100%;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 初始位置在屏幕右侧，使用vw确保超出屏幕 */
    transform: translateX(100vw);
    -webkit-transform: translateX(100vw);
}

.announcement-scroll span {
    display: inline-flex;
    align-items: center;
    padding: 0 8rem;
    line-height: 1.4;
    font-size: 15px;
    height: 100%;
    font-weight: 500;
    white-space: nowrap;
}

.announcement-item {
    cursor: pointer;
    transition: opacity 0.2s;
}

.announcement-item:hover {
    opacity: 0.9;
}

@keyframes scrollRightToLeft {
    0% {
        /* 从屏幕最右侧开始，使用vw确保超出屏幕宽度 */
        transform: translateX(100vw);
        -webkit-transform: translateX(100vw);
    }
    100% {
        /* 滚动到左侧，完全超出屏幕 */
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
    }
}

.nav-bar {
    background: white;
    position: relative;
    order: 1;
    flex-shrink: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* ★ 收紧顶栏上下留白（与 index.html 内联规则同步）：导航栏整体调矮 */
    padding: 0.1rem 2rem;
    flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    min-height: 46px;
    box-sizing: border-box;
}

.nav-bar {
    margin: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    min-width: 0;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: transparent;
    flex-shrink: 0;
}

.logo-brand-wrap {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.logo-brand {
    font-size: 11px;
    color: #666;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-title-section {
    display: flex;
    align-items: center;
    margin-left: 1px;
    flex-shrink: 0;
}

.logo-title-section .logo-title {
    font-size: 22px;
    color: #000;
    margin: 0;
    font-weight: bold;
    white-space: nowrap;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    justify-content: center;
}

.logo-text h1,
.logo-text .logo-subtitle,
.logo-text .logo-brand {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.logo-text p,
.logo-text .logo-title {
    font-size: 22px;
    color: #000;
    margin: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .logo-text .logo-title {
        font-size: 18px;
    }
    .logo-text .logo-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo-text .logo-title {
        font-size: 16px;
    }
    .logo-text .logo-subtitle {
        font-size: 10px;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    justify-content: flex-end;
    margin-right: 0;
    padding-right: 0;
    margin-left: auto;
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    min-width: 0;
}

.user-section {
    margin-right: 0;
    padding-right: 0;
}

.notification-wrapper {
    position: relative;
}

.notification-btn {
    display: none;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.notification-empty {
    display: none;
}

@media (max-width: 992px) {
    .nav-actions {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }
}



.login-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: scale(1.05);
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.notification-panel.active {
    display: flex;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.mark-all-read-btn:hover {
    background: #f0f7ff;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 12px;
    min-height: auto;
    height: auto;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e6f0ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* ★ 2026-10-24 fix11：通知图标统一改为蓝色系（用户反馈"通知消息里的图标要改成蓝色"）。
   原来 system 是紫色渐变 #667eea→#764ba2，comment 粉紫、like 黄粉，五颜六色不统一。
   现全部收敛到蓝色系，仅用深浅区分类型，品牌更统一。 */
.notification-icon.system {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.notification-icon.order {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: white;
}

.notification-icon.comment {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

.notification-icon.like {
    background: linear-gradient(135deg, #93c5fd, #4f8ef7);
    color: white;
}

.notification-icon.chat {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.notification-content {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-text {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-delete-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-delete-btn:hover {
    color: #e74c3c;
    background: #ffebee;
}

.notification-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

.carousel-only-section {
    position: relative;
    overflow: hidden;
    height: 14rem;
    margin: 0 1.25rem;
    border-radius: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .carousel-only-section {
        height: 11rem;
        margin: 0 0.75rem;
        border-radius: 0.75rem;
    }
}

@media (max-width: 480px) {
    .carousel-only-section {
        height: 8.5rem;
        margin: 0 0.5rem;
        border-radius: 0.5rem;
    }
}

.carousel-only-section .carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    background-color: #1a3a5c;
}

.carousel-only-section .carousel-slide {
    border-radius: 1.25rem;
}

.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    margin: 0.5rem 50px 0 50px;
    height: 16rem !important;
    z-index: 1;
}

.hero-section[style*="height: 100px"] {
    margin: 0 2rem 0 2rem !important;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .hero-section {
        height: 10rem;
        margin: 0.375rem 0.9375rem 0 0.9375rem;
        border-radius: 0.75rem;
    }
    .hero-section[style*="height: 100px"] {
        margin: 0 0.9375rem 0 0.9375rem !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 8rem;
        margin: 0.375rem 0.9375rem 0 0.9375rem;
        border-radius: 0.5rem;
    }
    .hero-section[style*="height: 100px"] {
        margin: 0 0.9375rem 0 0.9375rem !important;
        border-radius: 0 !important;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    display: block !important; /* 强制显示 */
}

.hero-static-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-static-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-slide-title {
    position: absolute;
    top: 0.875rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.5);
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.three-column-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 2px;
}

.carousel-side {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-side a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-center {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-center a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    min-width: 0;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    color: #333;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 1.25rem;
}

.carousel-btn.next {
    right: 1.25rem;
}

.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 52px;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 25px;
    border-radius: 10px;
    display: block;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 45px;
    opacity: 1;
    font-weight: 500;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 8px;
    display: block;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-icon {
    color: #9ca3af;
    font-size: 18px;
    padding: 0 20px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 5px;
    color: #1f2937;
    font-size: 16px;
    outline: none;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.categories-section {
    /* ★ 收窄两边边距让卡片更饱满（50→24→14px，与分类栏 inner padding 10px 14px 对齐） */
    padding: 0 14px;
    background: transparent;
    margin-top: 0;
    position: relative;
    z-index: 20;
}

.categories-section .container {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
}

.categories-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 16px 4px 24px;
    margin: 0 -4px;
}

.categories-grid .category-card {
    flex: 0 0 auto;
    min-width: calc((100% - 6 * 1rem) / 7);
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .categories-grid .category-card {
        min-width: calc(33.333% - 0.875rem);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        gap: 0.75rem;
    }
    .categories-grid .category-card {
        min-width: calc(50% - 0.375rem);
        padding: 1.5625rem 0.9375rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 0.625rem;
    }
    .categories-grid .category-card {
        min-width: calc(50% - 0.3125rem);
        padding: 1.25rem 0.625rem;
    }
}

.category-card {
    text-align: center;
    cursor: pointer;
    padding: 2.1875rem 1.25rem;
    border-radius: 1.5rem;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 0 rgba(102, 126, 234, 0.2),
        0 8px 20px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform-style: preserve-3d;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 0 rgba(102, 126, 234, 0.2),
        0 12px 25px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(102, 126, 234, 0.5),
            0 0 20px rgba(102, 126, 234, 0.3),
            0 0 30px rgba(102, 126, 234, 0.2),
            0 0 40px rgba(102, 126, 234, 0.1);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(102, 126, 234, 0.8),
            0 0 30px rgba(102, 126, 234, 0.5),
            0 0 45px rgba(102, 126, 234, 0.3),
            0 0 60px rgba(102, 126, 234, 0.2);
    }
}

.category-card:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 rgba(102, 126, 234, 0.2),
        0 4px 10px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.category-icon {
    width: 5.625rem;
    height: 5.625rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 2.875rem;
}

@media (max-width: 768px) {
    .category-icon {
        width: 4.375rem;
        height: 4.375rem;
        font-size: 1.875rem;
        border-radius: 1rem;
        margin-bottom: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .category-icon {
        width: 3.4375rem;
        height: 3.4375rem;
        font-size: 1.5rem;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

.category-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0;
    font-weight: 600;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .category-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-card h3 {
        font-size: 0.875rem;
    }
}

.recommended-section {
    padding: 3.75rem 1.5rem;
}

.recommended-section .container {
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.section-title {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 2.5rem;
    font-weight: bold;
}

.category-recommend {
    margin-bottom: 3.125rem;
}

.category-recommend-title {
    font-size: 1.25rem;
    color: #1e3c72;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .recommend-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .recommend-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .recommend-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .recommend-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 1.5rem;
    }
}

.recommend-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    min-width: 260px;
}

.recommend-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(102,126,234,0.2), 0 4px 12px rgba(0,0,0,0.08);
}

.recommend-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.recommend-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f5f7fa;
}

@media (max-width: 768px) {
    .recommend-card-img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .recommend-card-img {
        height: 130px;
    }
}

.recommend-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.recommend-card:hover .recommend-card-img img {
    transform: scale(1.08);
}

.rank-tag {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.recommend-card-content {
    padding: 16px;
}

.recommend-card-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    min-height: 67px;
}

.recommend-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #888;
    margin-bottom: 0.625rem;
}

.recommend-card-price {
    font-size: 1.125rem;
    color: #2563eb;
    font-weight: bold;
}

.recommend-card-stats {
    display: flex;
    gap: 0.9375rem;
    font-size: 0.75rem;
    color: #999;
}

.recommend-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.office-section {
    padding: 3.75rem 0;
    position: sticky;
    bottom: 0;
    z-index: 30;
    overflow: hidden;
    border-radius: 1.25rem;
    margin: 0 1.5rem;
    background: url(../images/office.png) center/cover no-repeat;
}

/* ★ 2026-10-09 共享办公区固定在视口底部：不随内容（功能/tab 内容流）滑动；
   滚动到页尾时自然落回文档流位置。功能页隐藏 mainContent 时本区自动隐藏（与功能区脱钩）。 */

.office-section .container {
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.office-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 60, 114, 0.7);
}

.office-bg {
    display: none;
}

.office-overlay {
    display: none;
}

.office-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 3.75rem 1.25rem;
}

.office-content h2 {
    font-size: 2.25rem;
    margin-bottom: 0.9375rem;
}

@media (max-width: 768px) {
    .office-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .office-content h2 {
        font-size: 1.5rem;
    }
}

.office-content > p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .office-content > p {
        font-size: 1rem;
        margin-bottom: 1.875rem;
    }
}

@media (max-width: 480px) {
    .office-content > p {
        font-size: 0.875rem;
        margin-bottom: 1.5625rem;
    }
}

.office-cards {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .office-cards {
        gap: 1.25rem;
        flex-direction: column;
        align-items: center;
    }
}

.office-card {
    padding: 1.875rem 2.5rem;
    flex: 1;
    max-width: 17.5rem;
    min-width: 12.5rem;
}

@media (max-width: 768px) {
    .office-card {
        width: 100%;
        max-width: 16.25rem;
        padding: 1.5625rem 1.875rem;
    }
}

@media (max-width: 480px) {
    .office-card {
        padding: 1.25rem 1.5625rem;
    }
}

.office-card i {
    font-size: 2.5rem;
    margin-bottom: 0.9375rem;
}

@media (max-width: 768px) {
    .office-card i {
        font-size: 2rem;
    }
}

.office-card h3 {
    font-size: 1.125rem;
}

.apply-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0.9375rem 3.125rem;
    border-radius: 1.875rem;
    font-size: 1.125rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.apply-btn:hover {
    transform: scale(1.05);
}

.footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 3.75rem 0 1.875rem;
    margin-top: 3.75rem;
    position: relative;
    z-index: 1;
    clear: both;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #f5576c, #f093fb);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f5576c, #f093fb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .name {
    font-size: 18px;
    font-weight: bold;
}

.footer-logo-text .subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.footer-contact-item i {
    width: 24px;
    color: white;
    font-size: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-admin-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-admin-link:hover {
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-open {
    overflow: hidden !important;
    touch-action: none;
    -ms-touch-action: none;
}

.modal.modal-overlay {
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #262626;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 5px 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 5px 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 6px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    max-height: 90vh;
    overflow-y: auto;
}

#loginModal .modal-content {
    margin: 0;
    max-width: 800px;
    max-height: none;
    height: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#loginModal {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#loginModal h2 {
    color: #1a1a1a !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#loginModal p {
    color: #666 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#loginModal label {
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#loginModal input {
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    padding: 16px 16px !important;
}

#loginModal .submit-btn {
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 16px !important;
}

#loginModal .close-btn {
    font-size: 17px !important;
    font-weight: 600 !important;
    padding: 16px !important;
    color: #333 !important;
}

#loginModal span[id="switchModeText"] {
    color: #666 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

#loginModal span[id="switchModeBtn"] {
    color: #2196F3 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

#loginModal #loginErrorText {
    font-size: 15px !important;
    font-weight: 500 !important;
}

#loginModal #sendCodeBtn {
    font-size: 15px !important;
    font-weight: 600 !important;
    height: 56px !important;
}

#loginModal img {
    display: inline-block;
}

.form-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.close {
    flex: 1;
    padding: 12px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.close:hover {
    background: #e0e0e0;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.tab.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.submit-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.page-header {
    background: #fff;
    color: #333;
    padding: 10px 30px !important;
    position: relative;
    margin: 0 !important;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}

.page-header::before {
    display: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
}

.page-header .container > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-header h1 {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
}

.page-content {
    padding: 15px 25px 0 25px;
}

.page-content .container {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
}

.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.publish-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0 25px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

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

.pagination-info {
    font-size: 13px;
    color: #999;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
}

.card:hover {
    box-shadow: 0 12px 36px rgba(102,126,234,0.2), 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-6px);
}

.card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.membership-card {
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #f5576c;
}

.membership-card.recommended {
    transform: scale(1.02);
}

.membership-card.recommended:hover {
    transform: translateY(-5px) scale(1.02);
}

.membership-card ul {
    flex: 1;
    margin-bottom: 20px;
}

/* 会员套餐网格容器优化 */
#userContent-membership [style*="grid-template-columns"] {
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* 确保会员卡片容器有足够的padding */
#userContent-membership {
    overflow: visible;
    padding-bottom: 20px;
}

/* 确保个人中心内容区域不裁剪内容 */
.user-content > div[id^="userContent-"] {
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* 确保所有卡片内容完整显示 */
.membership-card * {
    overflow: visible;
}

/* 优化推荐标签的z-index，确保显示在最上层 */
.membership-card [style*="position:absolute"] {
    z-index: 10;
}

.admin-content .card:hover,
#merchantDashboardContent .card:hover,
#merchantDashboardContent .card:active {
    transform: none;
}

#merchantDashboardContent .card {
    cursor: default;
}

#merchantDashboardContent .card:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.15), 0 2px 6px rgba(0,0,0,0.06);
}

.admin-content > div > div[style*="border-radius:8px"]:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.card-img {
    width: 100%;
    padding-top: 100%;
    height: 0;
    overflow: hidden;
    position: relative;
    background: #f5f7fa;
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    min-height: 67px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-price {
    font-size: 20px;
    color: #2563eb;
    font-weight: bold;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.card-commission {
    font-size: 14px;
    color: #666;
    background: #f0f7ff;
    padding: 4px 10px;
    border-radius: 4px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    height: 38px;
    white-space: nowrap;
    background: #fff;
    color: #595959;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-primary {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    color: #fff;
}

.btn-outline {
    border: 1px solid #1890ff;
    color: #1890ff;
    background: transparent;
}

.btn-outline:hover {
    background: #1890ff;
    color: #fff;
}

.btn-danger {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

.btn-danger:hover {
    background: #ff7875;
    border-color: #ff7875;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #595959;
    border-color: #d9d9d9;
}

.btn-secondary:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* 管理后台模式下隐藏首页导航栏和页脚 */
.admin-mode .header {
    display: none !important;
    visibility: hidden !important;
}

.admin-mode .footer {
    display: none !important;
    visibility: hidden !important;
}

.admin-topbar {
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 200;
    flex-shrink: 0;
    display: block !important;
    visibility: visible !important;
}

.admin-topbar-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 52px;
    max-width: 100%;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 15px;
}

.admin-topbar-logo:hover {
    color: #2563eb;
}

.admin-topbar-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
}

.admin-topbar-title {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-topbar-right {
    display: flex !important;
    align-items: center;
    gap: 4px;
}

.admin-topbar-link {
    display: flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.admin-topbar-link:hover {
    background: #f0f2f5;
    color: #2563eb;
}

.admin-topbar-logout:hover {
    background: #fff1f0;
    color: #e74c3c;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 52px - 44px);
    width: 100%;
    overflow: hidden;
    background: #f0f2f5;
}

.admin-footer {
    background: #001529;
    color: rgba(255,255,255,0.45);
    text-align: center;
    flex-shrink: 0;
}

.admin-footer-inner {
    padding: 12px 24px;
    font-size: 12px;
}

.admin-footer-inner p {
    margin: 0;
}

.admin-dashboard {
    display: flex;
    min-height: 600px;
    gap: 0;
}

.admin-sidebar {
    width: 240px;
    background: #001529;
    color: rgba(255,255,255,0.65);
    padding: 0;
    flex-shrink: 0;
    height: calc(100vh - 52px);
    position: sticky;
    top: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}

.admin-sidebar h2 {
    padding: 20px 24px;
    font-size: 16px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 0;
    display: flex;
    align-items: center;
    height: 64px;
    box-sizing: border-box;
}

.admin-sidebar h2 img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
}

.admin-menu {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    margin: 0;
}

.admin-menu li {
    padding: 0 24px;
    height: 44px;
    line-height: 44px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
    border-radius: 0;
}

.admin-menu li i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.admin-menu li:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.admin-menu li.active {
    color: #fff;
    background: #1890ff;
}

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 24px;
    background: #f0f2f5;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    height: 100vh;
    position: relative;
}

.admin-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

/* 管理后台不显示页脚 - 由JS控制 */
body.admin-mode .footer {
    display: none !important;
    margin-top: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.admin-mode {
    padding-top: 0 !important;
    min-height: 100vh !important;
}

body.admin-mode .app {
    min-height: 100vh !important;
}

body.admin-mode .main-content {
    flex: 1 !important;
    min-height: 100vh !important;
    padding: 0 !important;
}

.admin-content h3 {
    font-size: 15px;
    font-weight: 500;
    color: #262626;
}

.admin-content p {
    color: #8c8c8c;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
}

.stat-label {
    color: #8c8c8c;
    font-size: 14px;
}

.table-container {
    background: white;
    border-radius: 6px;
    overflow: auto;
    max-width: 100%;
    border: 1px solid #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.admin-content td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #595959;
}

.admin-content td:last-child {
    max-width: none;
    white-space: normal;
    overflow: visible;
}

th {
    background: #fafafa;
    font-weight: 500;
    white-space: nowrap;
    color: #262626;
    font-size: 14px;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 4px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    color: #595959;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.action-btn.approve {
    background: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.action-btn.approve:hover {
    background: #52c41a;
    color: #fff;
    border-color: #52c41a;
}

.action-btn.delete {
    background: #fff1f0;
    color: #ff4d4f;
    border-color: #ffa39e;
}

.action-btn.delete:hover {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.user-layout {
    display: flex;
    max-width: 1400px;
    margin: 20px 40px;
    gap: 25px;
}

.user-sidebar {
    /* ★ 2026-10-24：资料卡改为 APP 风格（横向头像+昵称+积分）后，280px 太窄，
       侧栏内容被压到 230px，积分数字会挤。放宽到 320px / padding 18px → 内容宽 284px。 */
    width: 320px;
    background: white;
    border-radius: 12px;
    padding: 18px;
    height: fit-content;
    flex-shrink: 0;
}

.user-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 30px;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

/* ★ 2026-10-24：新版 APP 风格资料卡内部一律左对齐（外层 .user-info 的居中只影响旧结构） */
.user-info .tc-profile-card,
.user-info .tc-profile-stats,
.user-info .tc-profile-rows {
    text-align: left;
}

/* ══════════════════════════════════════════════════════════════════════
   ★ 2026-10-24 用户资料卡片 —— 对齐安卓 APP「我的」页资料卡（app/src/views/mine.js）
   结构（自上而下）：
     ① .tc-profile-card  横向卡：头像 + 昵称/会员态 + 右侧积分
     ② .tc-profile-stats 等分三栏：发布 / 获赞 / 评论（竖分隔线）
     ③ .tc-profile-rows  账户信息行：账号 / 手机 / 注册
   视觉沿用 APP 变量：--tc-text #1f2430 / --tc-sub #8a91a6 / --tc-line #eceef4
   ══════════════════════════════════════════════════════════════════════ */
.tc-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(30, 41, 59, .05);
    box-sizing: border-box;
}
.tc-profile-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.tc-profile-avatar img {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.tc-profile-main {
    flex: 1;
    min-width: 0;
}
.tc-profile-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-profile-sub {
    font-size: 12px;
    color: #8a91a6;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-profile-credits {
    flex: 0 0 auto;
    text-align: center;
    margin-left: 10px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}
.tc-profile-credits b {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2430;
    line-height: 1.2;
}
.tc-profile-credits span {
    display: block;
    font-size: 12px;
    color: #8a91a6;
    margin-top: 2px;
}

/* 互动数据：等分三栏 + 竖分隔线（与 APP statCell 同构） */
.tc-profile-stats {
    display: flex;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(30, 41, 59, .05);
    padding: 12px 0;
    margin-bottom: 10px;
}
.tc-profile-stat {
    flex: 1;
    text-align: center;
    padding: 0 6px;
    border-right: 1px solid #eceef4;
}
.tc-profile-stat:last-child {
    border-right: none;
}
.tc-profile-stat b {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.tc-profile-stat span {
    display: block;
    font-size: 12px;
    color: #8a91a6;
    margin-top: 4px;
}

/* 账户信息行（账号 / 手机 / 注册） */
.tc-profile-rows {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(30, 41, 59, .05);
    padding: 6px 16px;
    margin-bottom: 10px;
}
.tc-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eceef4;
    font-size: 12px;
}
.tc-profile-row:last-child {
    border-bottom: none;
}
.tc-profile-row .k {
    color: #8a91a6;
    flex: 0 0 auto;
}
.tc-profile-row .v {
    color: #1f2430;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 48px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.user-menu {
    list-style: none;
}

.user-menu li {
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
}

.user-menu li:hover, .user-menu li.active {
    background: #f0f4ff;
    color: #2563eb;
}

.menu-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 0 10px 0;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-group-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.menu-group {
    margin-bottom: 5px;
}

.menu-group li {
    margin-bottom: 3px;
}

.user-content h2 {
    margin-bottom: 25px;
    font-size: 22px;
}

.user-content > div {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.user-content .content-grid {
    width: 100%;
    box-sizing: border-box;
}

/* 发布历史页面样式 */
#userHistoryList {
    width: 100%;
    box-sizing: border-box;
}

#userHistoryList > div:first-child {
    width: 100%;
    box-sizing: border-box;
}

/* 确保卡片容器不会溢出 */
#userHistoryList [style*="display:flex"] {
    width: 100%;
    box-sizing: border-box;
}

/* 确保分页区域不会溢出 */
#userHistoryList [style*="justify-content:center"] {
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #262626;
    font-weight: 500;
    font-size: 14px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 5px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 32px;
    color: #595959;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.form-group textarea {
    height: auto;
    min-height: 80px;
}

.chat-layout {
    display: flex;
    height: calc(100vh - 140px);
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.chat-list {
    width: 300px;
    border-right: 1px solid #eee;
}

.chat-search {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.chat-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.chat-items {
    overflow-y: auto;
    height: calc(100% - 60px);
}

.chat-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-item:hover, .chat-item.active {
    background: #f5f7fa;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: bold;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.chat-preview {
    font-size: 13px;
    color: #888;
}

.chat-meta {
    text-align: right;
}

.chat-time {
    font-size: 12px;
    color: #999;
}

.unread-badge {
    background: #2563eb;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f7fa;
}

.message {
    display: flex;
    margin-bottom: 20px;
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    background: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.message.sent .message-time {
    text-align: right;
    color: rgba(255,255,255,0.8);
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.chat-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.search-results {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.search-tab {
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.search-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.hot-searches {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.hot-searches h3 {
    margin-bottom: 15px;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-tag {
    padding: 8px 16px;
    background: #f0f4ff;
    color: #2563eb;
    border-radius: 20px;
    cursor: pointer;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

.breadcrumb i {
    font-size: 12px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.detail-image {
    min-height: 300px;
    max-height: 600px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.detail-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 26px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 14px;
}

.detail-price {
    font-size: 32px;
    color: #2563eb;
    font-weight: bold;
    margin-bottom: 25px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-large {
    padding: 14px 25px !important;
    font-size: 15px;
}

.btn-success {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.detail-description {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.detail-description h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-description p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.detail-specs {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.spec-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.spec-item span:first-child {
    color: #888;
}

.spec-item span:last-child {
    color: #333;
    font-weight: 500;
}

.goods-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.detail-1688-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.detail-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.supplier-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.supplier-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.supplier-avatar {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
    font-weight: bold;
}

.supplier-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.supplier-tag {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
}

.supplier-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.supplier-actions {
    display: flex;
    gap: 10px;
}

.supplier-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.detail-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: #f5f5f5;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(29,78,216,0.1));
}

.detail-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2563eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #2563eb;
}

.goods-images-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
}

.goods-preview-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.goods-preview-img:hover {
    opacity: 0.85;
}

.goods-main-image {
    width: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.goods-main-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.goods-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.goods-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.goods-thumbnails img:hover,
.goods-thumbnails img.active {
    border-color: #2563eb;
}

.params-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.param-row {
    display: flex;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 13px;
}

.param-row span:first-child {
    color: #999;
    width: 100px;
    flex-shrink: 0;
}

.param-row span:last-child {
    color: #333;
}

.price-red {
    color: #2563eb !important;
    font-weight: bold;
}

.goods-description {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 20px;
}

.goods-detail-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goods-detail-images img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.deal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.deal-table th,
.deal-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.deal-table th {
    background: #f8f8f8;
    color: #666;
    font-weight: 500;
}

.deal-table td {
    color: #333;
}

.company-profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-item {
    font-size: 14px;
    color: #666;
}

.profile-item span:first-child {
    color: #999;
    margin-right: 10px;
}

.detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.price-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.price-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.price-info {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.price-item .label {
    font-size: 13px;
    color: #666;
}

.price-item .value {
    font-size: 18px;
    font-weight: bold;
}

.price-item .main-price {
    color: #2563eb;
    font-size: 24px;
}

.commission-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.commission-info .commission {
    color: #2563eb;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.order-card h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-card h4 i {
    color: #2563eb;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-row label {
    width: 70px;
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.quantity-input button:hover {
    background: #2563eb;
    color: white;
}

.quantity-input input {
    width: 60px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
}

.spec-select {
    flex: 1;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff9f9;
    border-radius: 8px;
    font-size: 14px;
}

.total-num {
    font-size: 22px;
    font-weight: bold;
    color: #2563eb;
}

.order-btns {
    display: flex;
    gap: 10px;
}

.order-btns .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.btn-buy {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-card h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card h4 i {
    color: #2563eb;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-list li {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li i {
    color: #52c41a;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-card h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card h4 i {
    color: #2563eb;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info p i {
    color: #2563eb;
    width: 16px;
}

.btn-block {
    width: 100%;
}

.goods-category-layout {
    /* Flexbox作为后备方案，兼容所有浏览器 */
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

/* 支持grid的浏览器使用grid */
@supports (display: grid) {
    .goods-category-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
}

.goods-category-sidebar {
    /* 确保侧边栏宽度正确 */
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goods-category-content {
    /* 确保内容区域占据剩余空间 */
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.category-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2563eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: #2563eb;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li {
    margin-bottom: 5px;
}

.category-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
    width: auto;
    max-width: 100%;
}

.category-menu li a:hover,
.category-menu li.active a {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.category-menu li i {
    width: 20px;
    text-align: center;
}

.hot-goods-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-goods-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.hot-goods-item:hover {
    background: #f5f5f5;
}

.hot-goods-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.hot-goods-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hot-goods-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
}

.hot-goods-price {
    font-size: 14px;
    color: #2563eb;
    font-weight: bold;
}

.goods-detail-main {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.goods-image-section {
    width: 420px;
    flex-shrink: 0;
}

.goods-main-image {
    width: 420px;
    min-height: 420px;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.goods-main-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.goods-thumbnails {
    display: flex;
    gap: 10px;
}

.goods-thumbnails img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.goods-thumbnails img:hover,
.goods-thumbnails img.active {
    border-color: #2563eb;
}

.goods-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goods-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.goods-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #888;
    font-size: 14px;
}

.goods-meta-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.goods-price-box {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    color: #666;
    font-size: 14px;
}

.price-value {
    font-size: 20px;
    font-weight: bold;
    color: #2563eb;
}

.price-value.main-price {
    font-size: 28px;
}

.goods-specs-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: #888;
    font-size: 14px;
}

.spec-value {
    color: #333;
    font-weight: 500;
}

.spec-value.commission {
    color: #43e97b;
    font-weight: bold;
    font-size: 18px;
}

.goods-specs-list {
    margin-bottom: 20px;
}

.goods-specs-list h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.spec-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f4ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.goods-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.goods-description-section {
    grid-column: 1;
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.goods-description-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.goods-description {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
}

.goods-detail-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goods-detail-images img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-container {
        padding: 0.75rem 0.9375rem;
    }
    .logo-image {
        width: 3.125rem;
        height: 3.125rem;
    }
}

@media (max-width: 992px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2.625rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
    .search-box {
        max-width: 100%;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        padding: 0.9375rem 0;
    }
    .admin-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 0.9375rem;
    }
    .admin-menu li {
        white-space: nowrap;
        padding: 0.625rem 0.9375rem;
    }
    .user-layout {
        flex-direction: column;
    }
    .user-sidebar {
        width: 100%;
    }
    .merchant-layout {
        grid-template-columns: 1fr;
    }
    .merchant-sidebar {
        position: static;
    }
    .goods-category-layout {
        grid-template-columns: 1fr;
    }
    .goods-detail-layout,
    .detail-1688-layout {
        grid-template-columns: 1fr;
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0.625rem;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
        border: none;
        border-radius: 0.75rem;
        cursor: pointer;
        font-size: 1.25rem;
        z-index: 1001;
        transition: all 0.3s;
    }
    .mobile-menu-toggle:hover {
        transform: scale(1.05);
    }
    .logo-section {
        flex-direction: column;
        align-items: center;
        gap: 0.0625rem;
    }
    .logo-brand-wrap {
        flex-direction: column;
        align-items: center;
    }
    .logo-brand {
        font-size: 0.6875rem;
    }
    .logo-title-section {
        flex-direction: row;
        margin-left: 0.1875rem;
        margin-top: 0;
    }
    .logo-card {
        padding: 8px 14px;
        border-radius: 12px;
        box-shadow: 
            0 4px 0 #d1d1d1,
            0 6px 12px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    .logo-card-inner {
        gap: 8px;
    }
    .logo-image-small {
        height: 30px;
    }
    .logo-card .logo-title {
        font-size: 17px !important;
    }
    .nav-actions {
        position: fixed;
        top: 0;
        right: -17.5rem;
        width: 16.25rem;
        height: 100vh;
        background: white;
        box-shadow: -0.3125rem 0 1.25rem rgba(0,0,0,0.15);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 1.25rem 1.875rem;
        gap: 0.9375rem;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    .nav-actions.mobile-active {
        right: 0;
    }
    .nav-erp-link,
    .merchant-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        margin-right: 0;
        text-align: center;
        border-radius: 0.75rem;
    }
    .notification-btn,
    .user-section {
        width: 100%;
        justify-content: center;
    }
    .nav-3d-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    .categories-grid {
        gap: 0.9375rem;
    }
    .category-card {
        padding: 1.5625rem 0.9375rem;
    }
    .category-icon {
        width: 4.375rem;
        height: 4.375rem;
        font-size: 1.75rem;
    }
    .category-card h3 {
        font-size: 1rem;
    }
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9375rem;
    }
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9375rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9375rem;
    }
    .hero-section {
        height: 11rem;
        margin: 0 0.625rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.875rem;
    }
    .search-box {
        flex-direction: column;
        border-radius: 1.25rem;
    }
    .search-icon {
        padding: 0.625rem 0.9375rem;
    }
    .search-box input {
        padding: 0.625rem;
        text-align: center;
    }
    .search-btn {
        width: 100%;
        padding: 0.75rem;
        border-radius: 0.9375rem;
    }
    .office-cards {
        flex-direction: column;
        gap: 1.25rem;
    }
    .office-card {
        padding: 1.25rem 1.5625rem;
    }
    .footer-grid {
        gap: 1.875rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .chat-layout {
        flex-direction: column;
        height: auto;
    }
    .chat-list {
        width: 100%;
        height: 12.5rem;
    }
    .goods-image-section {
        width: 100%;
    }
    .goods-main-image {
        width: 100%;
        min-height: 18.75rem;
    }
    .goods-detail-main {
        flex-direction: column;
    }
    .section-title {
        font-size: 1.125rem;
    }
    .merchant-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-select,
    .search-input {
        width: 100%;
    }
    table {
        font-size: 0.75rem;
    }
    th, td {
        padding: 0.625rem 0.5rem;
    }
    .notification-panel {
        width: 100%;
        right: 0;
        left: 0;
    }
    .modal-content {
        width: 95%;
        margin: 0;
        padding: 1.25rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.625rem;
    }
    .categories-grid {
        gap: 0.625rem;
    }
    .category-card {
        padding: 1.25rem 0.75rem;
        border-radius: 1rem;
    }
    .category-icon {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.5rem;
        border-radius: 0.875rem;
    }
    .category-card h3 {
        font-size: 0.875rem;
    }
    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 0.9375rem;
    }
    .content-grid {
        grid-template-columns: 1fr;
        gap: 0.9375rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.9375rem;
    }
    .hero-section {
        height: 10rem;
        margin: 0 0.3125rem;
    }
    .hero-title {
        font-size: 1.625rem;
    }
    .hero-subtitle {
        font-size: 0.875rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .nav-erp-link,
    .merchant-link {
        padding: 0.4375rem 0.875rem;
        font-size: 0.75rem;
    }
    .category-recommend-title {
        font-size: 1.125rem;
    }
    .office-content h2 {
        font-size: 1.5rem;
    }
    .office-content > p {
        font-size: 0.875rem;
    }
    .apply-btn {
        padding: 0.75rem 2.1875rem;
        font-size: 1rem;
    }
    .merchant-stats-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .form-row label {
        width: 100%;
    }
    .goods-actions {
        flex-direction: column;
    }
    .goods-actions .btn {
        width: 100%;
    }
    .chat-input {
        flex-wrap: wrap;
    }
    .chat-input input {
        flex: 1 1 100%;
    }
    .goods-thumbnails img {
        width: 3.125rem;
        height: 3.125rem;
    }
    .spec-select {
        width: 100%;
    }
    .order-btns {
        flex-direction: column;
    }
    .service-list {
        grid-template-columns: 1fr;
    }
    .params-table {
        grid-template-columns: 1fr;
    }
}

.merchant-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
}

.merchant-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.merchant-logo {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 25px;
    text-align: center;
}

.merchant-logo i {
    font-size: 32px;
    margin-bottom: 10px;
}

.merchant-logo h3 {
    margin: 0;
    font-size: 16px;
}

.merchant-nav {
    padding: 15px 0;
}

.merchant-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.merchant-nav a:hover {
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(29,78,216,0.1));
    color: #2563eb;
}

.merchant-nav a.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.merchant-nav a i {
    width: 20px;
    text-align: center;
}

.merchant-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.merchant-welcome {
    margin-bottom: 30px;
}

.merchant-welcome h2 {
    font-size: 24px;
    color: #333;
}

.merchant-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-info {
    flex: 1;
}

.stat-info .stat-num {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-info .stat-label {
    font-size: 13px;
    color: #888;
}

.merchant-recent h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.content-header h2 {
    font-size: 20px;
    color: #333;
}

.merchant-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.panel-title i {
    color: #2563eb;
}

.panel-toolbar {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.goods-filter, .order-filter, .shipping-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
}

.filter-select {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    min-width: 120px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
    height: 38px;
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-color: transparent;
}

.search-btn-unified {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    font-size: 13px;
}

.data-table td {
    font-size: 13px;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #fafafa;
    color: #8c8c8c;
    border: 1px solid #f0f0f0;
}

.status-tag.success {
    background: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.status-tag.warning {
    background: #fffbe6;
    color: #faad14;
    border-color: #ffe58f;
}

.status-tag.info {
    background: #e6f7ff;
    color: #1890ff;
    border-color: #91d5ff;
}

.status-tag.danger {
    background: #fff2f0;
    color: #ff4d4f;
    border-color: #ffccc7;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.btn-sm.btn-success {
    background: #2563eb;
    color: white;
}

.btn-sm.btn-danger {
    background: #ff4d4f;
    color: white;
}

.btn-sm.btn-outline {
    background: white;
    border: 1px solid #ddd;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.page-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.page-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-color: transparent;
}

.order-stats {
    display: flex;
    gap: 20px;
}

.order-stats .stat-item {
    font-size: 13px;
    color: #666;
}

.order-stats .stat-item strong {
    color: #2563eb;
    margin-left: 5px;
}

.distribution-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.dist-stat-card {
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(29,78,216,0.1));
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.dist-stat-num {
    font-size: 28px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 5px;
}

.dist-stat-label {
    font-size: 13px;
    color: #666;
}

.user-distribution-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.dist-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.dist-header-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 25px;
    color: white;
    text-align: center;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

#detailImageGrid {
    grid-template-columns: repeat(3, 1fr);
}

.upload-slot {
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.upload-slot:hover {
    border-color: #2563eb;
    background: #f0f4ff;
}

.upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.upload-placeholder i {
    font-size: 28px;
    margin-bottom: 8px;
}

.spec-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.spec-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .image-upload-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #detailImageGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dist-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.dist-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.dist-level {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 15px;
    border-radius: 12px;
    font-size: 12px;
}

.dist-stats-mini {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.dist-stats-mini div {
    text-align: center;
}

.dist-stats-mini strong {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.dist-stats-mini span {
    font-size: 12px;
    opacity: 0.8;
}

.dist-nav {
    padding: 15px 0;
}

.dist-nav-item {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.dist-nav-item:hover {
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(29,78,216,0.1));
    color: #2563eb;
}

.dist-nav-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.dist-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.dist-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dist-content-header h2 {
    font-size: 20px;
    color: #333;
}

.dist-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.dist-stat-box {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dist-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.dist-stat-info .dist-stat-num {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.dist-stat-info .dist-stat-label {
    font-size: 12px;
    color: #888;
}

.dist-orders, .dist-shipping {
    margin-top: 30px;
}

.dist-orders h3, .dist-shipping h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.upload-area i {
    font-size: 36px;
    color: #2563eb;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.shipping-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    margin-bottom: 20px;
}

.upload-icon {
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 15px;
}

.upload-history h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.history-item span:first-child {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-item span:first-child i {
    color: #52c41a;
}

.price-red {
    color: #2563eb !important;
    font-weight: bold;
}

/* 全局响应式：禁止横向溢出 */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* 表格响应式 */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    min-width: 800px;
}

/* 管理后台响应式 */
@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    
    .admin-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .admin-menu li {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 15px;
        border-radius: 8px;
    }
    
    .admin-content {
        padding: 15px;
    }
    
    .user-layout {
        flex-direction: column;
    }
    
    .user-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* 数据表格 */
    .table-container table {
        min-width: 100%;
    }
    
    th, td {
        padding: 10px;
        font-size: 13px;
    }
    
    .action-btns {
        flex-wrap: wrap;
    }
    
    .action-btns .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 面板头部 */
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .panel-toolbar {
        flex-wrap: wrap;
    }
    
    /* 商品筛选 */
    .goods-filter, .order-filter, .shipping-filter {
        flex-direction: column;
    }
    
    .goods-filter .search-input,
    .order-filter .search-input,
    .shipping-filter .search-input {
        width: 100%;
    }
    
    /* 表单 */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* 统计 */
    .merchant-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    /* 全局容器 */
    .container {
        padding: 0 12px;
    }
    
    .nav-container {
        padding: 10px 12px;
    }
    
    /* Logo */
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    /* 表格 */
    th, td {
        padding: 8px;
        font-size: 12px;
    }
    
    /* 按钮 */
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 面板 */
    .panel-header,
    .panel-toolbar {
        padding: 15px;
    }
    
    /* 管理内容 */
    .admin-content {
        padding: 10px;
    }

    .admin-content > div > div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .admin-content > div > div[style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .admin-content > div > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* 图片上传 */
    .image-upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #detailImageGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 超小屏（手机）响应式 */
@media (max-width: 480px) {
    .hero-section {
        height: 160px;
    }

    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .category-card h3 {
        font-size: 13px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

/* 极小屏幕 */
@media (max-width: 360px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .categories-grid {
        gap: 6px;
    }
    
    .category-card {
        padding: 12px 6px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
        margin-bottom: 8px;
    }
    
    .category-card h3 {
        font-size: 11px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1600px) {
    .container,
    .nav-container {
        max-width: 1500px;
    }
    
    .recommend-grid,
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1920px) {
    .container,
    .nav-container {
        max-width: 1800px;
    }
    
    .recommend-grid,
    .content-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 防止图片溢出 */
img {
    max-width: 100%;
    height: auto;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ==================== 全面响应式优化 ==================== */

/* 超宽屏幕 2K+ */
@media (min-width: 2560px) {
    .container,
    .nav-container {
        max-width: 2200px;
    }
    
    .recommend-grid,
    .content-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .carousel-only-section {
        height: 400px;
    }
    
    .category-icon {
        width: 100px;
        height: 100px;
        font-size: 42px;
    }
    
    .category-card h3 {
        font-size: 22px;
    }
    
    .category-card {
        padding: 40px 25px;
    }
    
    .recommend-card-img {
        height: 220px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr 380px;
    }
    
    .detail-1688-layout {
        grid-template-columns: 1fr 420px;
    }
    
    .goods-detail-layout {
        grid-template-columns: 1fr 340px;
    }
}

/* 大屏幕 1200px-1600px */
@media (min-width: 1200px) and (max-width: 1599px) {
    .recommend-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 中等屏幕 992px-1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .detail-layout {
        grid-template-columns: 1fr 260px;
        gap: 20px;
    }
    
    .detail-1688-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
    
    .goods-detail-layout {
        grid-template-columns: 1fr 250px;
        gap: 20px;
    }
    
    .goods-category-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    
    .detail-card {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        min-height: 300px;
    }
    
    .hero-section {
        height: 220px;
    }

    .carousel-only-section {
        height: 280px;
    }
}

/* 平板 768px-991px */
@media (min-width: 768px) and (max-width: 991px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .detail-layout,
    .goods-detail-layout,
    .detail-1688-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar,
    .detail-right {
        position: static;
    }
    
    .goods-category-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-card {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        min-height: 300px;
    }
    
    .hero-section {
        height: 190px;
    }

    .carousel-only-section {
        height: 240px;
    }
    
    .page-header {
        padding: 8px 20px !important;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .filter-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-input {
        min-width: 150px;
    }
    
    .office-cards {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .office-card {
        padding: 20px 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .params-table {
        grid-template-columns: 1fr;
    }
    
    .user-layout {
        flex-direction: column;
    }
    
    .user-sidebar {
        width: 100%;
    }
    
    .chat-layout {
        flex-direction: column;
        height: auto;
    }
    
    .chat-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        max-height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* 大手机 576px-767px */
@media (min-width: 576px) and (max-width: 767px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .detail-layout,
    .goods-detail-layout,
    .detail-1688-layout,
    .goods-category-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar,
    .detail-right {
        position: static;
    }
    
    .detail-card {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        min-height: 250px;
    }
    
    .hero-section {
        height: 160px;
    }

    .carousel-only-section {
        height: 200px;
    }
    
    .page-header {
        padding: 8px 15px !important;
        margin: 0;
        border-radius: 0;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-select,
    .search-input {
        width: 100%;
    }
    
    .office-section {
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .office-cards {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .office-card {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .params-table {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-price {
        font-size: 26px;
    }
    
    .detail-actions {
        flex-wrap: wrap;
    }
    
    .user-layout {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .user-sidebar {
        width: 100%;
    }
    
    .chat-layout {
        flex-direction: column;
        height: auto;
    }
    
    .chat-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        max-height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* 小手机 375px-575px */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-layout,
    .goods-detail-layout,
    .detail-1688-layout,
    .goods-category-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar,
    .detail-right {
        position: static;
    }
    
    .detail-card {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        min-height: 220px;
    }
    
    .hero-section {
        height: 140px;
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .carousel-only-section {
        height: 170px;
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .page-header {
        padding: 6px 12px !important;
        margin: 0;
        border-radius: 0;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .filter-select,
    .search-input {
        width: 100%;
    }
    
    .office-section {
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .office-content h2 {
        font-size: 24px;
    }
    
    .office-content > p {
        font-size: 14px;
    }
    
    .office-cards {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .office-card {
        width: 100%;
        max-width: 280px;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .params-table {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    .detail-price {
        font-size: 24px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn {
        width: 100%;
    }
    
    .recommend-card-img {
        height: 140px;
    }
    
    .recommend-card-title {
        font-size: 13px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .user-layout {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .user-sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .user-content {
        padding: 20px;
    }
    
    .chat-layout {
        flex-direction: column;
        height: auto;
    }
    
    .chat-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        max-height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 0;
        padding: 20px;
    }
    
    #loginModal .modal-content {
        margin: 0;
        max-width: 95%;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-icon {
        padding: 8px 12px;
    }
    
    .search-box input {
        padding: 10px;
        text-align: center;
    }
    
    .search-btn {
        width: 100%;
        padding: 12px;
        border-radius: 0 0 16px 16px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

/* 超小手机 <375px */
@media (max-width: 374px) {
    .container {
        padding: 0 8px;
    }
    
    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .hero-section {
        height: 120px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .carousel-only-section {
        height: 140px;
    }
    
    .page-header h1 {
        font-size: 16px;
    }
    
    .detail-title {
        font-size: 16px;
    }
    
    .detail-price {
        font-size: 20px;
    }
    
    .recommend-card-img {
        height: 120px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .office-card {
        padding: 15px;
    }
    
    .office-card i {
        font-size: 30px;
    }
    
    .office-card h3 {
        font-size: 15px;
    }
    
    .apply-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* 新轮播图样式 */
.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide-group {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-images {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 0 4px;
}

.carousel-image-item {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image-empty .carousel-image-wrapper {
    background: #f5f5f5;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a3a5c;
    transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #1a3a5c;
}

.carousel-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 12px 10px 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 2;
}

.carousel-image-linkable {
    cursor: pointer;
}

.carousel-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-link:hover .carousel-image-wrapper {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.carousel-link-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-image-item:hover .carousel-link-hint {
    opacity: 1;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: white;
}

@media (max-width: 768px) {
    .carousel-images {
        gap: 4px;
    }

    .carousel-title-overlay {
        font-size: 13px;
        padding: 8px 6px 20px;
    }
}

/* LOGO卡片3D立体效果 */
.logo-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    padding: 4px 10px;
    box-shadow:
        0 3px 0 #d1d1d1,
        0 6px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform-style: preserve-3d;
    transition: all 0.2s ease;
}

.logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #d1d1d1,
        0 14px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logo-card-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image-small {
    height: 24px;
    width: auto;
    display: block;
}

.logo-icon-small {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #2563eb;
}

.logo-card .logo-title {
    font-size: 15px !important;
    color: #000 !important;
    margin: 0 !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

/* 3D立体按钮样式 */
.nav-3d-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.15s ease;
    transform-style: preserve-3d;
    line-height: 28px !important;
    box-sizing: border-box !important;
}

.nav-3d-btn:hover {
    transform: translateY(-2px);
}

.nav-3d-btn:active {
    transform: translateY(2px);
}

/* 电商平台导航按钮 - 橙色系 */
.btn-nav {
    background: linear-gradient(145deg, #ff8a3d, #ff7a00);
    color: white;
    box-shadow: 
        0 4px 0 #cc5500,
        0 6px 10px rgba(255, 122, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-nav:hover {
    background: linear-gradient(145deg, #ff9a4d, #ff8a3d);
    box-shadow: 
        0 6px 0 #cc5500,
        0 8px 15px rgba(255, 122, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-nav:active {
    background: linear-gradient(145deg, #cc5500, #dd6600);
    box-shadow: 
        0 2px 0 #cc5500,
        0 3px 5px rgba(255, 122, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 综合管理系统按钮 - 紫色系 */
.btn-mes {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 
        0 4px 0 #5b21b6,
        0 6px 10px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-mes:hover {
    background: linear-gradient(145deg, #9b6dfa, #8b5cf6);
    box-shadow: 
        0 6px 0 #5b21b6,
        0 8px 15px rgba(124, 58, 237, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-mes:active {
    background: linear-gradient(145deg, #5b21b6, #6b31c6);
    box-shadow: 
        0 2px 0 #5b21b6,
        0 3px 5px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}



/* 通知按钮 - 蓝色系 */
.btn-notification {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    text-align: center;
    box-shadow: 
        0 4px 0 #1d4ed8,
        0 6px 10px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: 14px !important;
}

.btn-notification:hover {
    background: linear-gradient(145deg, #4b92f6, #3b82f6);
    box-shadow: 
        0 6px 0 #1d4ed8,
        0 8px 15px rgba(37, 99, 235, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-notification:active {
    background: linear-gradient(145deg, #1d4ed8, #2d5ee8);
    box-shadow: 
        0 2px 0 #1d4ed8,
        0 3px 5px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 徽标样式已移到文件末尾「fix11」区块统一管理（避免两处规则打架） */

/* 登录按钮 - 蓝色系 */
.btn-login {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 
        0 4px 0 #1d4ed8,
        0 6px 10px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: none !important;
    outline: none !important;
}

.btn-login:hover {
    background: linear-gradient(145deg, #4b92f6, #3b82f6);
    box-shadow: 
        0 6px 0 #1d4ed8,
        0 8px 15px rgba(37, 99, 235, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-login:active {
    background: linear-gradient(145deg, #1d4ed8, #2d5ee8);
    box-shadow: 
        0 2px 0 #1d4ed8,
        0 3px 5px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================================
 * 分类内容列表布局（2026-10-07）
 * 规则：卡片自身尺寸一律不改动（不放大不缩小、不变 padding），
 *       横向列数完全由容器实际可用宽度自动计算（auto-fill），
 *       竖向行数由内容条数自然换行堆排 —— 宽度够就多排，宽度窄就少排。
 * ============================================================ */
.cat-feed-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px;
    padding: 4px 2px 12px;
    margin: 0;
    overflow: visible !important;
    scroll-snap-type: none !important;
}

/* 首页共享内容流分页条（上一页 / 第X页 / 共10页 / 下一页），居中紧凑 */
.cat-feed-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 14px 0 26px;
}
.cat-feed-paging .shared-paging-info {
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: .02em;
}
.cat-feed-paging .shared-paging-btn {
    min-width: 88px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #d6dbe6;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .18s ease;
    box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.cat-feed-paging .shared-paging-btn i { font-size: 12px; }
.cat-feed-paging .shared-paging-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f5f8ff;
    box-shadow: 0 4px 12px rgba(59,130,246,.16);
}
.cat-feed-paging .shared-paging-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none;
}

.cat-feed-grid > * {
    min-width: 0 !important;
    width: auto !important;
}

.cat-feed-grid > .category-card,
.cat-feed-grid > .cat-feed-card {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column;
    min-width: 0 !important;
    max-width: 100%;
    height: 100%;
    padding: 0 !important;
    text-align: left;
    overflow: hidden;
    scroll-snap-align: none;
    box-sizing: border-box;
}

/* 封面区比例对齐电商助手 showcase-card 的 aspect-ratio:4/3（75%），避免卡片偏矮 */
.cat-feed-grid .cat-feed-cover {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #f2f3f7;
    overflow: hidden;
}

.cat-feed-grid .cat-feed-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-feed-grid .cat-feed-cover .cat-feed-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6cad6;
    font-size: 38px;
}

/* 资源文件（zip/文档等）封面占位：文件图标 + 文件名 + .EXT，绝对定位撑满封面区（对齐 .cat-feed-ph） */
.cat-feed-grid .cat-feed-cover .cat-feed-file-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #eef4ff, #f7f9ff);
    padding: 10px;
}
.cat-feed-file-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 32px;
}
.cat-feed-file-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    max-width: 86%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-feed-file-ext {
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
}

.cat-feed-grid .cat-feed-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 auto;
}

.cat-feed-grid .cat-feed-tag {
    align-self: flex-start;
    font-size: 11px;
    color: #3b6ef3;
    background: rgba(59, 110, 243, 0.1);
    border-radius: 6px;
    padding: 2px 8px;
}

.cat-feed-grid .cat-feed-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3140;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-feed-grid .cat-feed-desc {
    font-size: 13px;
    color: #8a91a3;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片底部：对齐电商助手 card-footer（margin-top:auto + 顶部分隔线 + 作者行/统计行两行），撑满卡片高度 */
.cat-feed-grid .cat-feed-footer {
    margin-top: auto;
    padding: 9px 12px 11px;
    border-top: 1px solid #eef1f6;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.cat-feed-grid .cat-feed-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    font-size: 12px;
}
.cat-feed-grid .cat-feed-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a6272;
    font-weight: 500;
    overflow: hidden;
    min-width: 0;
}
.cat-feed-grid .cat-feed-author i { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.cat-feed-grid .cat-feed-author {
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cat-feed-grid .cat-feed-date {
    font-size: 11px;
    color: #a8aebd;
    flex-shrink: 0;
    margin-left: 8px;
}
.cat-feed-grid .cat-feed-stats-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: #8a91a3;
}
.cat-feed-grid .cat-feed-stat { white-space: nowrap; }
.cat-feed-grid .cat-feed-stat b { color: #333; font-weight: 600; margin-left: 2px; }

/* ═══════ 详情页弹窗（对齐电商助手 detail-modal：媒体/作者行/标题/描述/标签/统计行/评论区） ═══════ */
#sharedDetailBox .detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
#sharedDetailBox .detail-body::-webkit-scrollbar { width: 6px; }
#sharedDetailBox .detail-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
#sharedDetailBox .detail-media-container { position: relative; background: #fff; flex-shrink: 0; }
#sharedDetailBox .detail-media {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex-shrink: 0;
}
#sharedDetailBox .detail-media img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15,23,42,.1);
}
#sharedDetailBox .detail-media .sd-media-ph {
    width: 100%;
    min-height: 200px;
    background: #f2f3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6cad6;
    font-size: 44px;
}
/* 多图轮播（对齐电商助手 detail-media-carousel） */
#sharedDetailBox .detail-media-carousel {
    background: #f5f6fa;
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    flex-shrink: 0;
}
#sharedDetailBox .detail-carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .5s ease-in-out;
    pointer-events: none;
    box-sizing: border-box;
}
#sharedDetailBox .detail-carousel-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
#sharedDetailBox .detail-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}
/* 幻灯片内坏图占位（onerror 后显示）：填满轮播区、居中图标 */
#sharedDetailBox .detail-carousel-slide .sd-media-ph,
#sharedDetailBox .detail-carousel-slide .sd-slide-ph {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #eef0f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6cad6;
    font-size: 44px;
    border-radius: 0;
}
#sharedDetailBox .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
#sharedDetailBox .carousel-arrow:hover { background: rgba(0,0,0,.7); }
#sharedDetailBox .carousel-arrow.carousel-prev { left: 14px; }
#sharedDetailBox .carousel-arrow.carousel-next { right: 14px; }
#sharedDetailBox .carousel-dots {
    position: absolute;
    bottom: 14px; left: 0; right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    width: fit-content;
    margin: 0 auto;
    background: rgba(0,0,0,.35);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#sharedDetailBox .carousel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    padding: 0;
    transition: all .2s;
}
#sharedDetailBox .carousel-dot:hover { background: rgba(255,255,255,.85); }
#sharedDetailBox .carousel-dot.active { background: #fff; width: 22px; border-radius: 4px; }
#sharedDetailBox .carousel-counter {
    position: absolute;
    top: 14px; right: 16px;
    z-index: 10;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
}
/* 视频占位 */
#sharedDetailBox .detail-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #0c0c22, #1a1a3e);
    border-radius: 12px;
    color: rgba(255,255,255,.6);
}
#sharedDetailBox .detail-media video {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    background: #000;
    display: block;
}
#sharedDetailBox .detail-content { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#sharedDetailBox .detail-author-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#sharedDetailBox .interaction-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
#sharedDetailBox .interaction-author .author-avatar-img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: #e2e8f0; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 600; overflow: hidden;
}
#sharedDetailBox .interaction-author .author-name { font-size: 14px; font-weight: 600; color: #1f2430; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sharedDetailBox .detail-author-btns { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
#sharedDetailBox .detail-author-btns .sd-btn {
    min-width: 76px; height: 30px; padding: 0 14px; font-size: 12px; font-weight: 600;
    border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    gap: 4px; cursor: pointer; transition: all .15s;
}
#sharedDetailBox .detail-author-btns .sd-outline { background: transparent; color: #3b6ef3; border: 1.5px solid #3b6ef3; }
#sharedDetailBox .detail-author-btns .sd-outline:hover { background: rgba(59,110,243,.08); }
#sharedDetailBox .detail-author-btns .sd-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border: 1.5px solid #3b82f6; }
#sharedDetailBox .detail-author-btns .sd-primary.on { background: #fff; color: #3b6ef3; border: 1.5px solid #3b6ef3; }
#sharedDetailBox .detail-title { font-size: 17px; font-weight: 700; color: #1f2430; line-height: 1.5; margin: 0; word-break: break-word; white-space: pre-wrap; }
#sharedDetailBox .detail-desc { font-size: 14px; color: #4b5563; line-height: 1.7; margin: 0; word-break: break-word; white-space: pre-wrap; }
#sharedDetailBox .detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#sharedDetailBox .detail-tags .sd-tag { font-size: 12px; color: #3b6ef3; background: rgba(59,110,243,.1); border-radius: 6px; padding: 2px 10px; }
#sharedDetailBox .detail-actions-row {
    display: flex; align-items: center; gap: 24px; padding: 12px 0 0;
    border-top: 1px solid #eef1f6; flex-wrap: wrap;
}
#sharedDetailBox .action-btn {
    display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
    color: #4b5563; font-size: 14px; cursor: pointer; padding: 6px 8px; border-radius: 8px;
    transition: all .15s;
}
#sharedDetailBox .action-btn:hover { background: #f5f7fa; }
#sharedDetailBox .action-btn .action-btn-text { color: #a8aebd; font-size: 13px; }
#sharedDetailBox .action-btn.liked { color: #f5576c; }
#sharedDetailBox .action-btn.liked .action-btn-text { color: #f5576c; }
#sharedDetailBox .detail-date-text { margin-left: auto; font-size: 12px; color: #a8aebd; flex-shrink: 0; }
#sharedDetailBox .detail-comments { display: flex; flex-direction: column; gap: 10px; }
#sharedDetailBox .comments-list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
#sharedDetailBox .comments-empty { text-align: center; color: #a8aebd; font-size: 13px; padding: 16px 0; }
#sharedDetailBox .comment-item { background: #f5f7fa; padding: 10px 12px; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; }
#sharedDetailBox .comment-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; overflow: hidden; }
#sharedDetailBox .comment-body { flex: 1; min-width: 0; }
#sharedDetailBox .comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 8px; }
#sharedDetailBox .comment-author { font-size: 13px; font-weight: 600; color: #1f2430; }
#sharedDetailBox .comment-time { font-size: 11px; color: #a8aebd; flex-shrink: 0; }
#sharedDetailBox .comment-text { font-size: 13px; color: #4b5563; line-height: 1.5; word-break: break-word; }
#sharedDetailBox .comment-reply-to { color: #3b6ef3; font-weight: 500; margin-right: 2px; font-size: 12px; }
#sharedDetailBox .comment-actions { display: flex; gap: 14px; margin-top: 6px; }
#sharedDetailBox .comment-reply-btn { background: none; border: none; color: #a8aebd; font-size: 12px; cursor: pointer; padding: 2px 0; }
#sharedDetailBox .comment-reply-btn:hover { color: #3b6ef3; }
#sharedDetailBox .comment-replies { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
#sharedDetailBox .comment-item.comment-reply-item { background: #fff; border: 1px solid #eef1f6; padding: 8px 10px; }
#sharedDetailBox .comment-input-row { display: flex; gap: 8px; align-items: flex-start; }
#sharedDetailBox .comment-input-row input,
#sharedDetailBox .comment-input-row textarea { flex: 1; font-size: 13px; padding: 8px 12px; min-width: 0; border: 1px solid #e0e0e0; border-radius: 8px; resize: none; font-family: inherit; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
#sharedDetailBox .comment-input-row input:focus,
#sharedDetailBox .comment-input-row textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
#sharedDetailBox .sd-reply-input { border: 1px solid #e0e0e0; border-radius: 8px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
#sharedDetailBox .sd-reply-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
#sharedDetailBox .sd-send { padding: 8px 18px; background: #3b6ef3; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 500; flex-shrink: 0; height: 36px; }
#sharedDetailBox .sd-send:hover { background: #2f5fd6; }
#sharedDetailBox .sd-reply-wrap { margin-top: 8px; display: flex; flex-direction: column; }
#sharedDetailBox .sd-login-hint { padding: 12px; background: #f8fafc; border-radius: 8px; text-align: center; color: #6b7280; font-size: 13px; border: 1px dashed #e2e8f0; }

.cat-feed-grid .cat-feed-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9aa1b1;
    padding: 60px 0;
}

/* 响应式列数（对齐电商助手首页 showcase：桌面5列，逐级收窄） */
@media (max-width: 1300px) {
    .cat-feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px; }
}
@media (max-width: 1000px) {
    .cat-feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px; }
}
@media (max-width: 768px) {
    .cat-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
}
@media (max-width: 420px) {
    .cat-feed-grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; gap: 12px; }
}

/* 内容卡 hover：只轻微抬升，不使用分类图标卡那种 scale 放大，
   保证网格里每张卡片视觉尺寸恒定，不会因为鼠标悬停把相邻卡片挤开 */
.cat-feed-grid > .category-card:hover,
.cat-feed-grid > .category-card:active {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.18) !important;
}

/* 共享内容详情弹窗（2026-10-07） */
@keyframes sdFade { from { opacity: 0; } to { opacity: 1; } }
#sharedDetailOverlay { animation: sdFade .18s ease; }
#sharedDetailBox::-webkit-scrollbar { width: 6px; }
#sharedDetailBox::-webkit-scrollbar-thumb { background: #d6dae3; border-radius: 3px; }

/* 个人中心功能按钮：默认折叠，点击分组标题展开/收起（2026-10-09） */
.menu-group-title .menu-toggle-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.menu-group-title .menu-chevron {
    flex: 0 0 auto;
    margin-left: 8px;
    font-size: 11px;
    color: #b0b6c0;
    transition: transform .22s ease;
}
.menu-group {
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
    transition: max-height .28s ease, opacity .2s ease;
}
.menu-group.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.user-menu li {
    transition: opacity .18s ease;
}
.menu-group.collapsed + .menu-group { margin-top: 0; }

/* 全局输入框 focus 整洁：去除浏览器默认黑色 outline，
   已有的 .func-input / .form-input / 评论输入框等蓝色描边规则继续生效（此处仅去 outline，不覆盖 border/box-shadow） */
input:focus, textarea:focus, select:focus, [contenteditable]:focus {
    outline: none;
}

/* ═══ 货源(supply)商品化详情：规格表 + 数量步进 + 下单按钮（buildSharedDetailHTML 注入）═══ */
#sharedDetailBox .sd-goods { display: flex; flex-direction: column; gap: 12px; }
#sharedDetailBox .sd-goods-spec { display: flex; flex-direction: column; gap: 6px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 12px; padding: 12px 14px; }
#sharedDetailBox .sd-goods-spec-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
#sharedDetailBox .sd-goods-spec-k { flex-shrink: 0; width: 88px; color: #94a3b8; }
#sharedDetailBox .sd-goods-spec-v { flex: 1; color: #1f2430; font-weight: 600; word-break: break-word; }
#sharedDetailBox .sd-goods-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#sharedDetailBox .sd-goods-price { display: flex; flex-direction: column; line-height: 1.1; }
#sharedDetailBox .sd-goods-price-label { font-size: 11px; color: #94a3b8; }
#sharedDetailBox .sd-goods-price-num { font-size: 18px; font-weight: 800; color: #f5576c; }
#sharedDetailBox .sd-goods-qty { display: flex; align-items: center; gap: 8px; }
#sharedDetailBox .sd-goods-qty input { width: 46px; height: 30px; text-align: center; border: 1px solid #d7dbe4; border-radius: 7px; font-size: 14px; font-family: inherit; }
#sharedDetailBox .sd-goods-qty-btn { width: 28px; height: 28px; border: 1px solid #d7dbe4; background: #fff; border-radius: 7px; cursor: pointer; font-size: 15px; color: #4b5563; line-height: 1; }
#sharedDetailBox .sd-goods-qty-btn:active { background: #f1f3f7; }
#sharedDetailBox .sd-goods-total { font-size: 14px; font-weight: 700; color: #1f2430; }
#sharedDetailBox .sd-goods-order-btn { align-self: flex-start; padding: 11px 22px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; box-shadow: 0 6px 16px rgba(59,130,246,.28); }
#sharedDetailBox .sd-goods-order-btn:active { transform: translateY(1px); }

/* ── 货源商品信息卡片（supply 分类）：标题/价格/发货地/发货时间 + 加入购物车/查看商品 ── */
.cat-feed-card.goods-card { display:flex; flex-direction:column; }
.cat-feed-card.goods-card .cat-feed-body { padding-bottom:4px; }
.goods-price-row { display:flex; align-items:baseline; gap:8px; margin:6px 0 6px; flex-wrap:wrap; }
.goods-price { font-size:20px; font-weight:800; color:#f5576c; line-height:1.1; }
.goods-moq { font-size:12px; color:#8a94a6; }
.goods-meta-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:2px; }
.goods-meta { font-size:12px; color:#6b7280; display:inline-flex; align-items:center; gap:4px; }
.goods-meta i { color:#9aa1b1; }
.goods-actions { display:flex; gap:8px; padding:10px 14px 14px; margin-top:auto; }
.goods-btn { flex:1; border:none; border-radius:8px; padding:9px 10px; font-size:13px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:5px; transition:transform .12s ease, box-shadow .12s ease; }
.goods-btn:active { transform:scale(.97); }
.goods-btn-cart { background:linear-gradient(135deg,#ff9a3c,#f5576c); color:#fff; }
.goods-btn-cart:hover { box-shadow:0 4px 14px rgba(245,87,108,.35); }
/* ★ 查看商品按钮改蓝色（对齐电商助手 .goods-btn-view：浅蓝底+蓝字+蓝描边），两端一致 */
.goods-btn-view { background:#eef2ff; color:#3b6ef3; border:1px solid #3b82f6; }
.goods-btn-view:hover { background:#dbe7ff; }

/* ── 货源详情页商品化：大价格区 + 规格表 + 加入购物车/立即下单 ── */
#sharedDetailBox .sd-goods { margin:12px 0; border:1px solid #e8ecf4; border-radius:12px; background:#fff; overflow:hidden; display:block; gap:0; }
#sharedDetailBox .sd-goods-hero { padding:14px 16px 12px; background:linear-gradient(135deg,#fff5f6 0%,#f7f9ff 100%); border-bottom:1px solid #eef1f7; }
#sharedDetailBox .sd-goods-price-big { font-size:26px; font-weight:800; color:#f5576c; line-height:1.15; letter-spacing:-.5px; }
#sharedDetailBox .sd-goods-hero-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
#sharedDetailBox .sd-goods-chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#4b5563; background:rgba(255,255,255,.85); border:1px solid #e5e9f2; border-radius:20px; padding:3px 10px; }
#sharedDetailBox .sd-goods-chip i { color:#9aa1b1; font-size:11px; }
#sharedDetailBox .sd-goods-spec { padding:12px 16px; background:#f8fafc; border:1px solid #eef1f6; border-radius:12px; display:flex; flex-direction:column; gap:6px; }
#sharedDetailBox .sd-goods-spec-row { display:flex; align-items:flex-start; gap:10px; padding:4px 0; border-bottom:none; font-size:13px; }
#sharedDetailBox .sd-goods-spec-k { flex:0 0 92px; color:#8a94a6; font-size:12px; }
#sharedDetailBox .sd-goods-spec-v { flex:1; color:#1f2937; font-weight:600; word-break:break-all; }
#sharedDetailBox .sd-goods-buy { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 0 10px; padding:12px 14px; background:#fff; border:1px solid #eef1f6; border-radius:12px; }
#sharedDetailBox .sd-goods-price { display:flex; align-items:baseline; gap:4px; line-height:1.1; }
#sharedDetailBox .sd-goods-price-label { font-size:11px; color:#94a3b8; }
#sharedDetailBox .sd-goods-price-num { font-size:18px; font-weight:800; color:#f5576c; }
#sharedDetailBox .sd-goods-qty { display:inline-flex; align-items:center; gap:0; border:1px solid #dfe4ee; border-radius:8px; overflow:hidden; }
#sharedDetailBox .sd-goods-qty input { width:54px; height:30px; text-align:center; border:none; border-left:1px solid #dfe4ee; border-right:1px solid #dfe4ee; border-radius:0; outline:none; font-size:13px; font-weight:600; color:#1f2937; font-family:inherit; }
#sharedDetailBox .sd-goods-qty-btn { width:30px; height:30px; border:none; background:#f7f9fc; border-radius:0; color:#4b5563; font-size:15px; cursor:pointer; line-height:1; }
#sharedDetailBox .sd-goods-qty-btn:hover { background:#eef2f8; }
#sharedDetailBox .sd-goods-total { font-size:14px; font-weight:700; color:#f5576c; }
/* 起批量提示（2026-10-13）：下单量默认 1、由用户自加，起批量只作展示，不做默认值/下限 */
#sharedDetailBox .sd-goods-moq-hint { flex:0 0 100%; margin-top:2px; font-size:11px; color:#94a3b8; }
#sharedDetailBox .sd-goods-actions { display:flex; gap:10px; margin:0 0 14px; padding:0; }
#sharedDetailBox .sd-goods-actions .sd-goods-cart-btn,
#sharedDetailBox .sd-goods-actions .sd-goods-order-btn { flex:1; align-self:auto; padding:11px 12px; border:none; border-radius:10px; font-size:14px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; transition:transform .12s ease, box-shadow .12s ease; }
#sharedDetailBox .sd-goods-actions .sd-goods-cart-btn:active,
#sharedDetailBox .sd-goods-actions .sd-goods-order-btn:active { transform:scale(.98); }
#sharedDetailBox .sd-goods-cart-btn { background:linear-gradient(135deg,#3b6ef3,#5b8def); color:#fff; }
#sharedDetailBox .sd-goods-cart-btn:hover { box-shadow:0 5px 16px rgba(59,110,243,.32); }
#sharedDetailBox .sd-goods-order-btn { background:linear-gradient(135deg,#ff9a3c,#f5576c); color:#fff; }
#sharedDetailBox .sd-goods-order-btn:hover { box-shadow:0 5px 16px rgba(245,87,108,.32); }
#sharedDetailBox .sd-goods-tip { margin:0 16px 14px; padding:8px 10px; background:#fff8e6; border:1px solid #ffe6ad; border-radius:8px; font-size:12px; color:#8a6d1f; display:flex; align-items:center; gap:6px; }

/* ══════════════════════════════════════════════════════════════════
   货源详情页 = 商城商品详情页样式
   只保留：①商品主图 ②标题 ③商品信息(价格+参数+购买) ④商品详情图
   不再出现作者行/标签/浏览评论点赞/评论区/原始“内容”正文
   ══════════════════════════════════════════════════════════════════ */
#sharedDetailBox .sd-product-page .detail-media-container { background:#f4f5f7; }
#sharedDetailBox .sd-product-page .detail-media { border-radius:0; background:#fff; }
#sharedDetailBox .sd-product-page .detail-content { padding:14px 18px 26px; gap:14px; }
#sharedDetailBox .sd-p-title { font-size:19px; font-weight:700; line-height:1.45; color:#111827; margin:2px 0 0; word-break:break-word; white-space:pre-wrap; }
#sharedDetailBox .sd-p-section-title { display:flex; align-items:center; gap:6px; font-size:14px; font-weight:700; color:#1f2430; }
#sharedDetailBox .sd-p-section-title i { color:#3b6ef3; font-size:13px; }
#sharedDetailBox .sd-product-page .sd-goods > .sd-p-section-title { padding:12px 16px 2px; }
#sharedDetailBox .sd-product-page .sd-goods { margin:0; }
#sharedDetailBox .sd-product-page .sd-goods-spec { border:none; background:transparent; border-radius:0; padding:4px 16px 10px; gap:0; }
#sharedDetailBox .sd-product-page .sd-goods-spec-row { padding:9px 0; border-bottom:1px dashed #eef1f6; }
#sharedDetailBox .sd-product-page .sd-goods-spec-row:last-child { border-bottom:none; }
#sharedDetailBox .sd-p-detail { display:flex; flex-direction:column; gap:10px; }
#sharedDetailBox .sd-p-detail-imgs { display:flex; flex-direction:column; gap:8px; }
/* ★ 2026-10-13 用户要求：详情图固定 3:4 + cover —— 上传的图不论原始尺寸一律裁切填满，
   多张详情图高度完全一致（与安卓 APP / 电商助手三端同口径）。网站跑现代 Chrome/Edge，可直接用 aspect-ratio。 */
#sharedDetailBox .sd-p-detail-imgs img { width:100%; height:auto; aspect-ratio:3 / 4; object-fit:cover; object-position:center; display:block; border-radius:10px; background:#f4f5f7; }
#sharedDetailBox .sd-p-desc { font-size:14px; line-height:1.85; color:#4b5563; white-space:pre-wrap; word-break:break-word; background:#f8fafc; border:1px solid #eef1f6; border-radius:10px; padding:12px 14px; }

/* ═══════ 2026-10-13 三端统一（与安卓 APP / 电商助手同口径）═══════
   ① 详情页图片「完整铺满显示」而不是一张被 contain 居中的小图：
      货源商品详情（sd-product-page）主图取消 16px 内边距与 420px 限高，
      改为容器满宽 + 原始比例自适应。
   ② 私信按钮 = 白色背景 + 灰色阴影（不再有蓝/紫描边）。
   ③ 评论输入框 = 灰底 + 灰色阴影；聚焦/输入时不出现任何边框颜色。 */

/* ① 货源详情主图固定 1:1（电商主图 800×800）：容器固定正方相框，图片 object-fit:cover 裁切填满，
   高度不再随原图尺寸变化（与安卓 APP / 电商助手三端统一） */
#sharedDetailBox .sd-product-page .detail-media {
  position: relative;
  width: 100%;
  padding: 0;
  padding-top: 100%;          /* ★ 固定 1:1 相框，详情页高度不再随原图尺寸变化 */
  background: #fff;
  overflow: hidden;
  display: block;
}
#sharedDetailBox .sd-product-page .detail-media img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
}
/* 坏图占位也填满 1:1 相框 */
#sharedDetailBox .sd-product-page .detail-media .sd-media-ph {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
/* 货源多图轮播：与单图同一「1:1」相框（原来写死 340px 高 → 多图 430×340、单图却 1:1，同一商品
   换图片张数会变高度，三端也不一致）。
   ⚠ 幻灯片本身是绝对定位（.detail-carousel-slide 满 100%），所以这里用 padding-top:100% 撑 1:1、height 归 auto。 */
#sharedDetailBox .sd-product-page .detail-media-carousel { height: auto; padding-top: 100%; }
#sharedDetailBox .sd-product-page .detail-carousel-slide { padding: 0; }
#sharedDetailBox .sd-product-page .detail-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* ② 私信按钮：白底 + 灰阴影（详情页 .detail-author-btns 内的 .sd-outline） */
#sharedDetailBox .detail-author-btns .sd-btn.sd-outline,
#sharedDetailBox .detail-author-btns #detail-dm-btn {
  background: #ffffff;
  border: none;
  border-radius: 999px;
  color: #374151;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
#sharedDetailBox .detail-author-btns .sd-btn.sd-outline:hover { background: #f7f8fa; }

/* ③ 评论输入框：灰底 + 灰阴影，聚焦无边框色
      （JS 里写的行内 border:1px solid #ddd 需要 !important 才能覆盖） */
#sharedDetailBox #detailCommentInput,
#sharedDetailBox #detailCommentInput:focus,
#sharedDetailBox #detailCommentInput:active {
  border: none !important;
  outline: none !important;
  background: #f4f5f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10) !important;
}
#sharedDetailBox #detailCommentInput:focus {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   ★ 2026-10-14 用户要求：详情页图片不要铺满窗口（铺满很难看）
   —— 货源商品详情 / 内容详情 的「主图 / 多图轮播 / 商品详情图」统一：
   ① 限制合理最大宽度（主图 460px、详情图 520px）并水平居中；
   ② 容器四周留 16px 间距，图片圆角卡片化；
   ③ 只约束尺寸与间距，不改 1:1 裁切/相册等既有展示口径。
   轮播箭头相对容器定位，容器限宽后箭头依旧贴合图片两侧。
   ══════════════════════════════════════════════════════════════════════════ */
#sharedDetailBox .detail-media-container {
  max-width: 492px;              /* 460 图宽 + 2×16 间距 */
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 0;
  box-sizing: border-box;
}
#sharedDetailBox .sd-product-page .detail-media-container { background: #f4f5f7; }
/* 货源商品主图 / 轮播：限宽居中 + 圆角 */
#sharedDetailBox .sd-product-page .detail-media,
#sharedDetailBox .sd-product-page .detail-media-carousel {
  max-width: 460px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}
#sharedDetailBox .sd-product-page .detail-media img,
#sharedDetailBox .sd-product-page .detail-carousel-slide img { border-radius: 14px; }
/* 内容详情（非货源）：单图限宽居中 */
#sharedDetailBox .detail-media img { max-width: 460px; }
#sharedDetailBox .detail-media-carousel {
  max-width: 460px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}
#sharedDetailBox .detail-carousel-slide img { border-radius: 14px; }
/* 商品详情图：限宽居中，不占满弹窗 */
#sharedDetailBox .sd-p-detail-imgs { max-width: 520px; width: 100%; margin: 0 auto; }

/* ★ 收窄登录/注册弹窗（2026-10-22 用户反馈弹窗过大）：
   #loginModal 内联样式均为普通优先级，本块用 !important 收窄，
   登录与注册共用此弹窗（switchMode 切换），一处修改两处生效 */
#loginModal .modal-content { max-width: 400px !important; }
#loginModal .modal-content > div { padding: 22px 24px !important; }
#loginModal .modal-content img { width: 52px !important; height: 52px !important; }
#loginModal h2 { font-size: 20px !important; margin: 10px 0 4px 0 !important; }
#loginModal .modal-content input { padding: 10px 14px !important; font-size: 14px !important; }
#loginModal .submit-btn { padding: 8px !important; font-size: 13px !important; min-height: 0 !important; height: 36px !important; line-height: normal !important; border-radius: 9px !important; }
#loginModal .close-btn { padding: 8px !important; font-size: 13px !important; min-height: 0 !important; height: 36px !important; line-height: normal !important; border-radius: 9px !important; }
#loginModal #sendCodeBtn { height: auto !important; padding: 0 14px !important; font-size: 13px !important; }
#loginModal .modal-content > div > div { margin-bottom: 12px !important; }

/* ★ 顶栏 4 按钮统一收窄（2026-10-22）：铃铛阴影随 34px 缩小，登录/下载按钮限宽，避免撑满导航栏 */
.btn-notification { box-shadow: 0 3px 0 #1d4ed8, 0 4px 8px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.3); border-radius: 9px !important; }
.btn-notification:hover { box-shadow: 0 5px 0 #1d4ed8, 0 7px 12px rgba(37,99,235,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-notification:active { box-shadow: 0 1px 0 #1d4ed8, 0 2px 4px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-login { box-shadow: 0 3px 0 #1d4ed8, 0 4px 8px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
.nav-container .nav-3d-btn { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ★★ 2026-10-24 fix11：修复「通知未读数字被裁掉一半」（用户两次反馈仍未解决）。
   真凶：.header 位于文档流最顶端（top:0），铃铛按钮顶边距视口上沿仅约 6px，
   而徽标用 top:-7px 挂在按钮外侧 → 溢出到 y<0，**被视口边界裁掉**
   （截图上表现为红色圆顶部被切平）。前两轮只加 overflow:visible 是无效的，
   因为视口裁剪不是 overflow 能解决的。
   正确做法：把徽标**完全收进按钮自身的方框内**（top/right 归零），
   任何裁剪源都碰不到它，视觉上仍是右上角的小红点。 */
.nav-container .btn-notification { overflow: visible !important; max-width: none !important; }
.btn-notification .badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    width: auto;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    border-radius: 9px;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.5);
    box-sizing: border-box;
    z-index: 20;
    overflow: visible;
}
/* 铃铛图标在按钮内略向左让位，避免被徽标压住 */
.btn-notification i.fa-bell { position: relative; z-index: 1; }
/* 铃铛容器也要放开，防止 flex 布局再裁一刀 */
.nav-container .notification-wrapper { overflow: visible !important; }
.nav-actions, .nav-container, .nav-bar, .header { overflow: visible !important; }

/* ★ 登录按钮宽度（2026-10-22）：JS 运行时把 min/max-width:136px 写进内联样式，
   普通 CSS 压不住，用 !important 放宽上限并允许自然宽度，按钮不再显得笨重 */
.nav-container .btn-login { min-width: 0 !important; max-width: 150px !important; padding: 0 14px !important; }

/* ★ 修复“获取验证码”按钮塌成矮条（2026-10-22）：
   上一轮误设 height:auto 导致按钮仅 17px 高、未撑满输入框行(36px)。
   现改为 34px 匹配收窄后的输入框，并居中 */
#loginModal #sendCodeBtn { height: 34px !important; line-height: normal; min-height: 0 !important; padding: 0 16px !important; font-size: 13px !important; }
#loginModal .form-buttons { gap: 10px !important; }

/* ★ 个人中心：左侧菜单与右侧内容区各自独立滚动（2026-10-24）
   mainContent 为 fixed 内滚面板（≥901px），两列各自撑满面板高度、独立出滚动条，
   互不影响；overscroll-behavior:contain 防止滚到底后把滚动传导给另一列。 */
@media (min-width: 901px) {
    #mainContent .user-layout {
        height: calc(100% - 40px);
        align-items: stretch;
        box-sizing: border-box;
    }
    #mainContent .user-sidebar,
    #mainContent .user-content {
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    #mainContent .user-sidebar { scrollbar-width: thin; }
    #mainContent .user-content { scrollbar-width: thin; }
    #mainContent .user-sidebar::-webkit-scrollbar,
    #mainContent .user-content::-webkit-scrollbar { width: 8px; }
    #mainContent .user-sidebar::-webkit-scrollbar-thumb,
    #mainContent .user-content::-webkit-scrollbar-thumb { background: rgba(100,116,139,.35); border-radius: 8px; }
    #mainContent .user-sidebar::-webkit-scrollbar-track,
    #mainContent .user-content::-webkit-scrollbar-track { background: transparent; }
}

/* ═══════ 统一简约标题卡片（会员套餐 / 积分充值共用）2026-10-24 ═══════
   取代会员页原先 230px+ 的巨型渐变头图，改为一行式窄标题条（约 52px 高） */
.tc-title-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin: 0 0 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    box-sizing: border-box;
}
.tc-title-card .tci {
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #fff;
}
.tc-title-card .tct { flex: 1; min-width: 0; }
.tc-title-card .tct h2 {
    margin: 0;
    font-size: 16px; font-weight: 700; color: #1e293b;
    line-height: 1.25;
}
.tc-title-card .tct p {
    margin: 2px 0 0;
    font-size: 12px; color: #64748b; line-height: 1.35;
}
.tc-title-chip {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1.3;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .tc-title-card { padding: 8px 12px; }
    .tc-title-card .tct p { display: none; }
    .tc-title-chip { font-size: 11px; padding: 3px 8px; }
}

/* ═══════ 统一套餐卡片（会员套餐 / 积分充值）2026-10-24 ═══════
   两页共用同一套栅格与卡片规格，卡片宽度、高度、字号、内边距完全一致 */
.tc-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
    gap: 14px;
    align-items: stretch;
}
@media (max-width: 520px) {
    .tc-pkg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
.tc-plan {
    position: relative;
    display: flex; flex-direction: column;
    min-height: 226px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(150deg, #ffffff 0%, #f1f7ff 100%);
    border: 1px solid rgba(59, 130, 246, .16);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 18px -12px rgba(15, 23, 42, .18);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.tc-plan:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .08), 0 18px 32px -16px rgba(37, 99, 235, .38);
}
.tc-plan > * { position: relative; z-index: 1; }
.tc-plan .tc-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 0; background: linear-gradient(90deg, #3b82f6, #2563eb); }
.tc-plan .tc-halo { position: absolute; right: -46px; bottom: -46px; width: 128px; height: 128px; border-radius: 50%; z-index: 0; background: radial-gradient(circle, rgba(59, 130, 246, .10), transparent 70%); pointer-events: none; }
.tc-plan .tc-badge { position: absolute; top: 0; right: 0; left: auto; transform: none; z-index: 2; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 0 14px 0 12px; box-shadow: 0 4px 10px #3b82f655; }
.tc-plan .tc-amt { font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -.5px; background: linear-gradient(135deg, #3b82f6, #2563eb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #3b82f6; }
.tc-plan .tc-unit { font-size: 12px; font-weight: 700; color: #64748b; }
.tc-plan .tc-sub { margin-top: 4px; font-size: 11px; color: #64748b; line-height: 1.35; }
.tc-plan .tc-price { margin-top: 5px; font-size: 14px; font-weight: 800; color: #1e293b; }
.tc-plan .tc-name { margin-top: 4px; font-size: 13px; font-weight: 700; color: #64748b; }
.tc-plan .tc-mid { flex: 1; min-height: 0; margin: 6px 0 8px; }
.tc-plan .tc-perk { font-size: 11px; line-height: 1.4; color: #64748b; padding: 1px 0; display: flex; align-items: center; gap: 5px; text-align: left; }
.tc-plan .tc-perk b { color: #3b82f6; font-weight: 700; flex: 0 0 auto; }
.tc-plan .tc-btn { width: 100%; padding: 8px 0; border: none; border-radius: 10px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 6px 16px #3b82f644; cursor: pointer; }
.tc-plan .tc-btn[disabled] { background: #36d7b7; box-shadow: none; cursor: not-allowed; }
