*,
*::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: "Noto Sans SC", -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: linear-gradient(135deg, #1e3c72 0%, #2a5298 55%, #1d4ed8 100%);
}

/* ★ 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: 38px;
    line-height: 38px;
    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 {
    /* ★ 2026-11-07 第四轮：用户「还是有大的间距」→ 39px 再收到 28px。
       左边空白构成 = margin-left + .user-sidebar padding + .user-info padding：
         40 + 12 + 12 = 64px（第三轮前）
         16 + 12 + 12 = 40px（第三轮）
         10 + 10 +  8 = 28px（本轮，卡片左边缘 277→253→241）
       三层同收，不再让任何一层独吞；10px 是「卡片投影不被裁 + 与左侧导航不贴死」的下限。
       窄屏（≤767）已有 padding:0 10px，margin 归零，避免与 10px 重复占位。 */
    display: flex;
    /* ★ 2026-11-07 第九轮（用户要求「个人中心功能页要利用好空间，不要把布局搞得那么挤」）：
       原 max-width:1400px 在 1920 等宽屏下会让整个个人中心提前止步，右侧空出约 500px
       死白（截图可见）。改为不设上限，跟随主内容区宽度铺满；左右仍保留 10px 安全间距。 */
    max-width: none;
    margin: 20px 10px;
    gap: 25px;
}

.user-sidebar {
    /* ★ 2026-10-24：资料卡改为 APP 风格（横向头像+昵称+积分）后，280px 太窄，
       侧栏内容被压到 230px，积分数字会挤。放宽到 320px / padding 18px → 内容宽 284px。
       ★ 2026-11-07：用户要求侧栏收窄、把空间让给右侧内容区 → 320px 收至 264px
       （内容宽 228px，仍够放下「我的购物车」等最长菜单项与积分数字）。
       ★ 2026-11-07 第二轮：用户「保留安全间距，间距再收窄一点」→ 264→252、padding 18→12。
       关键：内容宽仍为 252-24=228（原 264-36=228）→ 资料卡里的手机号/ID 一行不缩、零截断；
       收窄全部来自「外壳 12px + 左右留白 12px（原 18px，仍留安全间距）」，
       菜单缩进由 18+14=32 收到 12+12=24。若强行压到 240，`.tc-pl .v` 仅剩 68px，
       「156****6580」≈75px 会被 ellipsis 截成「156****65…」——故不再下压。 */
       ★ 2026-11-07 第四轮：padding 12→10，与 .user-layout 的 10px、.user-info 的 8px
       组成 28px 左边距；padding 减少后内容宽 232px（原 228），资料卡反而更宽、文字更不挤。 */
    width: 252px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    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;
}

/* ══════════════════════════════════════════════════════════════════════
   ★ 2026-10-26 用户资料卡改版（与 APP / 电商助手三端统一，覆盖上方旧规则）
     ① 白色背景卡 + 悬浮头像（头像凸出卡片上沿，白描边 + 投影）
     ② 头像右侧五行：昵称 / ID / 手机 / 邮箱 / 密码
     ③ 下方两张小卡：积分余额（浅蓝）、会员剩余天数（黄色）
     ④ 再下方互动数据四格：收藏 / 关注 / 粉丝 / 订单
   ══════════════════════════════════════════════════════════════════════ */
.tc-profile-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(30, 41, 59, .06), 0 10px 24px -16px rgba(30, 41, 59, .28);
    box-sizing: border-box;
    overflow: hidden;        /* ★ 2026-10-26 用户要求「头像不要出框」：头像收进卡片内，不再上浮溢出 */
}
.tc-profile-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    margin-top: 0;           /* 取消上浮（原 -36px） */
    border-radius: 50%;
    background: #eef2f7;
    border: 3px solid #eff4fa;
    box-shadow: 0 4px 12px -4px rgba(30, 41, 59, .22);
    color: #64748b;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}
.tc-profile-main {
    flex: 1;
    min-width: 0;
}
.tc-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ★ 2026-11-07：未登录时昵称位显示「点击登录」，蓝色可点，取代原来一排「未绑定」空字段 */
.tc-login-link {
    color: #2563eb;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(37, 99, 235, .45);
    padding-bottom: 1px;
}
.tc-login-link:hover { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.tc-profile-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tc-pl {
    display: flex;
    align-items: baseline;
    /* ★ 2026-11-07：6→4，配合 .k 26→24，给值列多腾 4px（侧栏收窄后的连带调整）。 */
    gap: 4px;
    min-width: 0;
}
.tc-pl .k {
    flex: 0 0 24px;
    width: 24px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}
.tc-pl .v {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-pl-pwd {
    font-family: "Consolas", "Menlo", monospace;
    letter-spacing: .5px;
}

/* 双卡：积分余额（浅蓝） + 会员剩余（黄） */
.tc-profile-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.tc-duo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 10px 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    min-width: 0;
    box-sizing: border-box;
    transition: background .15s, transform .15s;
    font-family: inherit;
}
.tc-duo:hover {
    transform: translateY(-1px);
}
.tc-duo-credits {
    background: #eff6ff;
    border-color: #dbeafe;
}
.tc-duo-credits:hover {
    background: #e0edff;
}
.tc-duo-member {
    background: #fffbeb;
    border-color: #fde68a;
}
.tc-duo-member:hover {
    background: #fef3c7;
}
.tc-duo .lb {
    font-size: 11px;
    color: #64748b;
    line-height: 1;
    white-space: nowrap;
}
.tc-duo .val {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}
.tc-duo-credits .val { color: #1d4ed8; }
.tc-duo-member .val { color: #b45309; }
.tc-duo .val b {
    font-size: 18px;
    font-weight: 700;
}
.tc-duo .val i {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
}
.tc-duo .val i.tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #4a2c00;
    box-shadow: 0 1px 3px rgba(251, 191, 36, .4);
    align-self: center;
}

.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 {
    /* ★ 2026-11-07：左右 14→12，与侧栏 padding 12 对齐，避免窄侧栏里文字缩进过深。 */
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 4px;
}

.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: 11px 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: 11px 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;
        /* ★ 2026-11-07：主定义 margin 左右 16px，窄屏已有 10px padding，两者叠加会白占 26px，margin 归零 */
        margin-left: 0;
        margin-right: 0;
    }
    
    .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;
        /* ★ 2026-11-07：主定义 margin 左右 16px，窄屏已有 10px padding，两者叠加会白占 26px，margin 归零 */
        margin-left: 0;
        margin-right: 0;
    }
    
    .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 容器：★ 2026-11-05 去掉白色 3D 卡片（用户要求「不要有白边」），
   图片本身自带白色圆角品牌外框，这里只负责排版，不再叠一层白底/内边距。 */
.logo-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.logo-card:hover {
    transform: none;
    box-shadow: none;
}

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

.logo-image-small {
    height: 26px;
    width: auto;
    max-width: none;
    object-fit: contain;
    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%;
    /* ★ 2026-11-07：420px 固定高度是「图很小」的主因之一，改按视口 60vh（弹窗 88vh 内） */
    max-height: 60vh;
    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%;
    /* ★ 2026-11-07：固定 480px → 跟随视口（56vh），大屏能到 660px，小屏保底 300px */
    height: clamp(300px, 56vh, 660px);
    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 {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    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: 60vh;              /* ★ 2026-11-07：480 → 60vh，随弹窗放大 */
    border-radius: 12px;
    background: #000;
    display: block;
}
/* ★ 2026-11-07：弹窗加宽到 960 后正文行宽过长，正文区限 860 居中（不改变内容，只控行宽） */
#sharedDetailBox .detail-content {
    padding: 18px 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    box-sizing: border-box;
}
#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; }
/* ★ 2026-11-07 AI工具库 / 学习资料：详情页「打开链接」外链卡片
   点击在新窗口（外部浏览器）打开；域名过长用省略号，不撑破弹窗。 */
#sharedDetailBox .detail-link-card {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#sharedDetailBox .detail-link-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px -8px rgba(37,99,235,.35);
}
#sharedDetailBox .detail-link-card .dlc-ic {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
    background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
#sharedDetailBox .detail-link-card .dlc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#sharedDetailBox .detail-link-card .dlc-body b { font-size: 13.5px; color: #1f2430; font-weight: 600; line-height: 1.3; }
#sharedDetailBox .detail-link-card .dlc-body > span {
    font-size: 12px; color: #6b7280; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#sharedDetailBox .detail-link-card .dlc-go { color: #2563eb; font-size: 12px; flex-shrink: 0; }

#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; }

/* ═══ 货源详情页「商家店铺」卡片（2026-10-28 新版：淡蓝渐变 + 投影，联系入口高亮）═══
   结构：头像/标识 + 店铺名(徽章) + "查看店铺·联系商家洽谈合作" + 商家信息按钮 */
.sd-merchant-card { display:flex; align-items:center; gap:12px; margin:14px 0 12px; padding:12px 14px; background:linear-gradient(135deg,#f4f8ff 0%,#ffffff 64%); border:1px solid #e2e9f8; border-radius:14px; box-shadow:0 4px 16px rgba(59,110,243,.09); cursor:pointer; transition:border-color .18s ease, box-shadow .18s ease, transform .12s ease; }
.sd-merchant-card:hover { border-color:#bed2f9; box-shadow:0 9px 26px rgba(59,110,243,.17); }
.sd-merchant-card:active { transform:scale(.995); }
.sd-merchant-ident { flex:0 0 auto; width:46px; height:46px; border-radius:50%; overflow:hidden; background:#eef2ff; border:2px solid #dbe4ff; display:flex; align-items:center; justify-content:center; }
.sd-merchant-ident img { width:100%; height:100%; object-fit:cover; display:block; }
.sd-merchant-ident-ph { font-size:18px; color:#3b6ef3; line-height:1; }
.sd-merchant-text { flex:1 1 auto; min-width:0; }
.sd-merchant-name { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:15px; font-weight:700; color:#1e293b; line-height:1.3; }
.sd-merchant-name > span:first-child { display:block; flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sd-merchant-badge { display:inline-flex; align-items:center; gap:4px; flex:0 0 auto; font-size:11px; font-weight:500; color:#2563eb; background:#eef2ff; border-radius:20px; padding:2px 8px; }
.sd-merchant-badge i { font-size:10px; }
.sd-merchant-sub { display:flex; align-items:center; gap:5px; margin-top:4px; font-size:12px; color:#8a94a6; }
.sd-merchant-sub i { font-size:11px; color:#9aa1b1; }
/* ★ 商家信息入口：蓝色渐变 + 投影，成为卡片里最醒目的可点按钮 */
.sd-merchant-view { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:9px 15px; background:linear-gradient(135deg,#4b8bff,#2f6bf0); border:none; border-radius:10px; color:#fff; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; box-shadow:0 4px 13px rgba(47,107,240,.34); transition:transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.sd-merchant-view:hover { filter:brightness(1.07); box-shadow:0 8px 22px rgba(47,107,240,.44); transform:translateY(-1px); }
.sd-merchant-view:active { transform:translateY(0) scale(.98); }
@media (max-width: 520px) {
    .sd-merchant-card { flex-wrap:wrap; }
    .sd-merchant-ident { width:40px; height:40px; }
    .sd-merchant-name > span:first-child { flex:1 1 100%; }
    .sd-merchant-view { flex:1 1 100%; justify-content:center; margin-top:4px; }
}

/* ══════════════════════════════════════════════════════════════════
   货源详情页 = 商城商品详情页样式
   只保留：①商品主图 ②标题 ③商品信息(价格+参数+购买) ④商品详情图
   不再出现作者行/标签/浏览评论点赞/评论区/原始“内容”正文
   ══════════════════════════════════════════════════════════════════ */
#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 详情页图片不铺满窗口（铺满很难看）→ 限宽居中
   ★ 2026-11-07 用户反馈「详情页图片很小」：弹窗 640→960px，同步放宽媒体区。
   原口径（容器 492 / 图 460）在 960 弹窗里只占一半，看起来更小，故：
   ① 内容详情（非货源）媒体容器放开到 100%，单图 max-height 走 60vh；
   ② 货源商品详情保留限宽（主图是 1:1 相框，放开会变成 900px 正方形，一屏放不下），
      相框宽度 460 → 680（容器 712 = 680 + 2×16）；
   ③ 正文区加 860px 上限居中，弹窗变宽后长行不会拉到 900px 影响阅读。
   ══════════════════════════════════════════════════════════════════════════ */
#sharedDetailBox .detail-media-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 16px 16px 0;
    box-sizing: border-box;
}
/* 货源商品页：主图 1:1 相框，限宽 712px（相框 680×680） */
#sharedDetailBox .sd-product-page .detail-media-container {
  max-width: 712px;
  background: #f4f5f7;
}
/* 货源商品主图 / 轮播：限宽居中 + 圆角（宽度由上面容器 712 决定） */
#sharedDetailBox .sd-product-page .detail-media,
#sharedDetailBox .sd-product-page .detail-media-carousel {
  max-width: 100%;
  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; }
/* 内容详情（非货源）：单图占满媒体区，高度由 60vh 兜底 */
#sharedDetailBox .detail-media img { max-width: 100%; }
#sharedDetailBox .detail-media-carousel {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}
#sharedDetailBox .detail-carousel-slide img { border-radius: 14px; }
/* 商品详情图：随弹窗放大（520 → 640），3:4 竖图仍不会高得离谱 */
#sharedDetailBox .sd-p-detail-imgs { max-width: 640px; 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-11-06 v86：会员/积分两页「图标+标签」恢复主题色（按钮蓝色保持不变）。
   标题图标走 tcTitleCard 内联渐变（会员 紫 #667eea→#764ba2 / 积分 金 #f0ad4e→#d97706），
   这里只给「推荐」角标与副标签胶囊上同页主题色。 */
#userContent-membership .tc-plan .tc-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 10px rgba(102, 126, 234, .35);
}
#userContent-credit .tc-plan .tc-badge {
    background: linear-gradient(135deg, #f0ad4e, #d97706);
    box-shadow: 0 4px 10px rgba(217, 119, 6, .35);
}
#userContent-membership .tc-plan .tc-sub {
    align-self: center; width: fit-content;
    background: #eef2ff; border: 1px solid #c7d2fe; color: #4338ca;
}
#userContent-credit .tc-plan .tc-sub {
    align-self: center; width: fit-content;
    background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c;
}

/* ═══════ 统一套餐卡片（会员套餐 / 积分充值）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: #fff;
    border: 1px solid #e2e8f0;
    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: #cbd5e1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .06), 0 18px 32px -16px rgba(15, 23, 42, .18);
}
.tc-plan > * { position: relative; z-index: 1; }
.tc-plan .tc-bar { display: none; }
.tc-plan .tc-halo { display: none; }
.tc-plan .tc-badge { position: absolute; top: 0; right: 0; left: auto; transform: none; z-index: 2; background: #64748b; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 0 14px 0 12px; box-shadow: 0 4px 10px rgba(100,116,139,.35); }
.tc-plan .tc-amt { font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -.5px; background: none; -webkit-text-fill-color: #1e293b; color: #1e293b; }
.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: #1e293b; 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; }

/* ══════════════════════════════════════════════════════════════════
   ★ 2026-10-26（用户要求）：编辑资料改弹窗 + 资料卡右上角编辑入口
   ── ① .tc-profile-edit：资料卡右上角小胶囊按钮
   ── ② .tc-edit-modal / .tc-edit-dialog：编辑资料弹窗
   ── ③ 弹窗内头像行（更换头像）、分割线
   （「个人信息」页面已删除，编辑/头像/改密码全部收进弹窗）
   ══════════════════════════════════════════════════════════════════ */
.tc-profile-edit {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    border: 1px solid #dbe6f8;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.tc-profile-edit:hover { background: #dbeafe; border-color: #bfdbfe; }
.tc-profile-edit i { font-size: 11px; }
/* 昵称行右侧给按钮留位 */
.tc-profile-card .tc-profile-name { padding-right: 56px; }
/* ★ 2026-11-07：侧栏定宽 252 后，文字列仅 ~106px —— 「✎ 编辑」胶囊 59px + 昵称 6 字(15px≈63px)
   放不下，昵称被 ellipsis 截成「用户65…」。桌面端（≥901，侧栏定宽）按钮改纯图标 28×26、
   昵称让位 34px，昵称可用 72px 完整显示；≤900 侧栏变 100% 宽，空间充足，保留「图标+编辑」文字。 */
@media (min-width: 901px) {
    .tc-profile-edit {
        width: 28px;
        padding: 0;
        justify-content: center;
    }
    .tc-profile-edit span { display: none; }
    .tc-profile-card .tc-profile-name { padding-right: 34px; }
}

/* ── 编辑资料弹窗 ── */
.tc-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .45);
    animation: tcEditFade .18s ease;
}
.tc-edit-dialog {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px -12px rgba(15, 23, 42, .35);
    padding: 26px 26px 22px;
    animation: tcEditIn .2s ease;
    box-sizing: border-box;
}
.tc-edit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.tc-edit-close:hover { background: #f1f5f9; color: #334155; }

/* 弹窗内头像行 */
.tc-edit-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.tc-edit-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2f7;
    border: 3px solid #eef4fa;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-edit-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-edit-avatar-info { flex: 1; min-width: 0; }
.tc-edit-avatar-name { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.tc-edit-avatar-tip { font-size: 12px; color: #94a3b8; line-height: 1.5; }
.tc-edit-avatar-btn {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.tc-edit-avatar-btn:hover { background: #dbeafe; }
.tc-edit-divider { height: 1px; background: #eef1f6; margin: 2px 0 18px; }

@keyframes tcEditFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes tcEditIn { from { transform: translateY(12px) scale(.985); opacity: 0 } to { transform: none; opacity: 1 } }

@media (max-width: 640px) {
    .tc-edit-modal { padding: 10px; }
    .tc-edit-dialog { padding: 20px 14px 16px; max-height: 92vh; }
    .tc-edit-dialog div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ── 积分充值页「账单入口」（2026-10-26：与 APP 充值页 → 账单 统一）── */
.tc-bill-entry-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.tc-bill-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tc-bill-entry:hover {
    border-color: #c7d7fe;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .08);
}
.tc-bill-entry:active { transform: scale(.99); }
.tc-bill-entry > i:first-child {
    font-size: 18px;
    color: #2563eb;
    flex: 0 0 auto;
}
.tc-bill-entry-bd {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.tc-bill-entry-t { font-size: 14px; font-weight: 700; color: #1f2937; }
.tc-bill-entry-s { font-size: 12px; color: #94a3b8; }
.tc-bill-entry-ar { font-size: 12px; color: #cbd5e1; flex: 0 0 auto; }
@media (max-width: 640px) {
    .tc-bill-entry-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   ★ 2026-11-06 用户中心资料卡美化：层次感 + 明显悬浮效果（纯色、无渐变）
     ① .user-info 浅灰托底 → 内部白色卡片靠投影浮起，形成前后层次
     ② 主卡 / 双卡 / 数据卡统一双层投影 + 细边，hover 上浮 4px 且投影加深
     ③ 顶部纯色色带、头像纯色光环、编辑胶囊纯色，全站配色口径一致
   ══════════════════════════════════════════════════════════════════════ */
#mainContent .user-sidebar .user-info {
    /* ★ 2026-11-07 第四轮：padding 12→8 —— 用户连续两轮反馈「左边间距大」，
       这层是最后一层可压缩的留白（8px 仍够卡片投影不被圆角托底裁掉）。 */
    padding: 8px;
    /* ★ 2026-11-07：负边距归零 —— 侧栏 padding 收到 10px 后，-2px 会让托底卡片贴死外框。 */
    margin: 0 0 16px;
    background: #f3f6fc;
    border: 1px solid #e4eaf6;
    border-radius: 18px;
    box-shadow: inset 0 1px 3px rgba(30, 41, 59, .045);
    box-sizing: border-box;
}
#mainContent .user-info > .tc-profile-card,
#mainContent .user-info > .tc-profile-duo,
#mainContent .user-info > .tc-profile-stats { position: relative; }

/* 主资料卡：白卡 + 明显悬浮投影 + 顶部纯色带 */
#mainContent .user-info .tc-profile-card {
    /* ★ 2026-11-07：左右 14→12、上 18→16 —— 侧栏收到 252 后给文字列腾出 4px，
       与下面几处（头像 54→48、.tc-pl 键宽 26→24、gap 6→4）合计腾出约 14px，
       保证「156****6580」完整显示（1252 宽下实测 v 列 78px ≥ 需要的 74px）。 */
    padding: 16px 12px 12px;
    border: 1px solid #e0e8f7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(30, 58, 95, .09), 0 16px 32px -12px rgba(37, 99, 235, .38);
    overflow: hidden;
    transition: transform .22s cubic-bezier(.2, .8, .25, 1), box-shadow .22s ease;
}
#mainContent .user-info .tc-profile-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 4px;
    background: #2563eb;
}
/* ★ 2026-11-06 v83：按用户要求删除资料卡片右上角装饰块（原 ::after 浅蓝圆） */
#mainContent .user-info .tc-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(30, 58, 95, .13), 0 26px 44px -14px rgba(37, 99, 235, .48);
}
#mainContent .user-info .tc-profile-avatar,
#mainContent .user-info .tc-profile-main { z-index: 2; }
/* ★ 2026-11-06 v83→v84：编辑按钮必须与姓名主体拉开 z-index，否则二者同为 2 时
   后绘制的 .tc-profile-main（含姓名 div）会盖住按钮、吞掉真实鼠标点击 → 弹窗打不开。
   这里显式给编辑按钮更高层级，确保它始终位于最上层、可被点击。 */
#mainContent .user-info .tc-profile-edit { z-index: 5; }
#mainContent .user-info .tc-profile-avatar {
    position: relative;
    width: 48px; height: 48px; flex: 0 0 48px;
    border: 3px solid #fff;
    background: #eef2ff;
    box-shadow: 0 0 0 3px #c7d7ff, 0 8px 18px -6px rgba(37, 99, 235, .55);
    transition: transform .25s ease, box-shadow .25s ease;
}
#mainContent .user-info .tc-profile-card:hover .tc-profile-avatar {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 0 4px #adc4ff, 0 12px 22px -6px rgba(37, 99, 235, .62);
}
#mainContent .user-info .tc-profile-main { position: relative; }
#mainContent .user-info .tc-profile-edit {
    top: 12px; right: 10px;
    height: 26px;
    border: 1px solid #c7d7fe;
    background: #eaf1ff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .16);
    transition: background .18s ease, color .18s ease, border-color .18s ease,
                transform .18s ease, box-shadow .18s ease;
}
#mainContent .user-info .tc-profile-edit:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .38);
}

/* 双卡：积分 / 会员 —— 纯色底 + 悬浮投影 */
/* ★ 2026-11-07：gap 10→6、卡内左右 11→8 —— 侧栏收窄后「7,985 充」原被 ellipsis 截断（需 74px、实有 67px）。 */
#mainContent .user-info .tc-profile-duo { gap: 6px; margin-bottom: 10px; }
#mainContent .user-info .tc-duo {
    padding: 10px 8px 8px;
    border-radius: 13px;
    box-shadow: 0 3px 8px rgba(30, 58, 95, .09), 0 12px 22px -14px rgba(30, 58, 95, .42);
    transition: transform .22s cubic-bezier(.2, .8, .25, 1), box-shadow .22s ease, background .18s ease;
}
#mainContent .user-info .tc-duo:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 18px rgba(30, 58, 95, .15), 0 20px 30px -14px rgba(30, 58, 95, .44);
}
#mainContent .user-info .tc-duo-credits { background: #eaf2ff; border-color: #c7dcff; }
#mainContent .user-info .tc-duo-credits:hover { background: #d9e9ff; }
#mainContent .user-info .tc-duo-member { background: #fff4d6; border-color: #f7d774; }
#mainContent .user-info .tc-duo-member:hover { background: #ffe7ab; }
#mainContent .user-info .tc-duo .val i.tag {
    background: #f59e0b;      /* 纯色，去掉原来的渐变 */
    box-shadow: 0 2px 5px rgba(245, 158, 11, .35);
}

/* 互动数据四格：同一套悬浮层次 */
#mainContent .user-info .tc-profile-stats {
    padding: 14px 0;
    border: 1px solid #e0e8f7;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(30, 58, 95, .09), 0 14px 26px -14px rgba(30, 58, 95, .38);
    transition: transform .22s cubic-bezier(.2, .8, .25, 1), box-shadow .22s ease;
}
#mainContent .user-info .tc-profile-stats:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(30, 58, 95, .14), 0 22px 34px -14px rgba(30, 58, 95, .42);
}
#mainContent .user-info .tc-profile-stat b { font-size: 19px; color: #1d4ed8; }
#mainContent .user-info .tc-profile-stat { border-right-color: #e4eaf6; }

/* 侧栏菜单轻微悬浮反馈，与资料卡保持同一视觉语言 */
#mainContent .user-sidebar .user-menu li {
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
#mainContent .user-sidebar .user-menu li:hover {
    background: #eaf1ff;
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, .10);
}
#mainContent .user-sidebar .user-menu li.active {
    background: #e2ecff;
    color: #1d4ed8;
    box-shadow: inset 3px 0 0 #2563eb, 0 3px 10px rgba(37, 99, 235, .12);
}
@media (prefers-reduced-motion: reduce) {
    #mainContent .user-info .tc-profile-card,
    #mainContent .user-info .tc-duo,
    #mainContent .user-info .tc-profile-stats,
    #mainContent .user-info .tc-profile-avatar,
    #mainContent .user-sidebar .user-menu li { transition: none; }
    #mainContent .user-info .tc-profile-card:hover,
    #mainContent .user-info .tc-duo:hover,
    #mainContent .user-info .tc-profile-stats:hover,
    #mainContent .user-info .tc-profile-card:hover .tc-profile-avatar,
    #mainContent .user-sidebar .user-menu li:hover { transform: none; }
}


/* ============================================================
   ★ 2026-11-06 v73  个人中心：订单筛选 / 编辑弹窗 / 提现收款方式
   纯色、无渐变；统一 14px 基准间距
   ============================================================ */
.tc-orders-panel {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(30, 58, 95, .05);
}
.tc-orders-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tc-orders-row + .tc-orders-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.tc-orders-label { font-size: 12px; font-weight: 700; color: #64748b; min-width: 74px; letter-spacing: .3px; }
.tc-orders-label i { margin-right: 5px; color: #94a3b8; }
.tc-orders-seg { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; gap: 3px; }
.tc-orders-tab {
    border: 0; background: transparent; color: #64748b;
    font-size: 13px; font-weight: 700; padding: 8px 18px;
    border-radius: 8px; cursor: pointer; white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.tc-orders-tab i { margin-right: 6px; }
.tc-orders-tab:hover { color: #2563eb; }
.tc-orders-tab.is-on { background: #2563eb; color: #fff; box-shadow: 0 3px 8px rgba(37, 99, 235, .3); }
.tc-orders-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-orders-chip {
    border: 1px solid #e2e8f0; background: #fff; color: #64748b;
    font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.tc-orders-chip:hover { border-color: #93c5fd; color: #2563eb; }
.tc-orders-chip.is-on { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
.tc-orders-chip .n { background: #e2e8f0; color: #64748b; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.tc-orders-chip.is-on .n { background: #2563eb; color: #fff; }

/* 编辑资料弹窗：保存/取消吸底，始终可见（v83 修正：bottom:0 + 实底白，避免被裁切） */
.tc-edit-actions {
    position: sticky; bottom: 0; z-index: 3;
    background: #fff;
    margin-top: 18px !important; padding: 14px 0 6px !important;
    border-top: 1px solid #eef2f7 !important;
    box-shadow: 0 -10px 18px rgba(255, 255, 255, .95);
}
.tc-edit-actions button { transition: transform .18s ease, box-shadow .18s ease; }
.tc-edit-actions button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(37, 99, 235, .28); }

/* ★ 2026-11-06 v83：互动数据（浏览/评论/点赞）热更新动态显示 */
.tc-count { display: inline-block; transition: color .2s ease; will-change: transform; }
.tc-count-pop { animation: tcCountPop .55s cubic-bezier(.2,.8,.25,1); color: #2563eb !important; }
@keyframes tcCountPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.4); }
    60% { transform: scale(.94); }
    100% { transform: scale(1); }
}

/* 申请提现：收款方式 */
.tc-wd-title { margin: 0 0 16px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tc-wd-title i { color: #2563eb; }
.tc-wd-label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.tc-wd-method-wrap { margin-bottom: 16px; }
.tc-wd-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-wd-method {
    border: 1px solid #e2e8f0; background: #fff; color: #64748b;
    font-size: 13px; font-weight: 600; padding: 9px 18px;
    border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tc-wd-method i { font-size: 15px; }
.tc-wd-method:hover { border-color: #93c5fd; color: #2563eb; }
.tc-wd-method.is-on { border-color: #2563eb; background: #eff6ff; color: #2563eb; box-shadow: 0 2px 8px rgba(37, 99, 235, .12); }
.tc-wd-method[data-method="wechat"].is-on { border-color: #07a854; background: #e8f8ee; color: #07883f; }
.tc-wd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tc-wd-field { margin-bottom: 14px; min-width: 0; }
.tc-wd-field input {
    width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0;
    border-radius: 8px; box-sizing: border-box; font-size: 14px; color: #1e293b;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.tc-wd-field input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.tc-wd-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.tc-wd-submit {
    padding: 10px 24px; background: #2563eb; color: #fff; border: none;
    border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px;
    box-shadow: 0 3px 10px rgba(37, 99, 235, .28);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tc-wd-submit:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(37, 99, 235, .38); }
#wdMsg { font-size: 13px; color: #10b981; }
.tc-wd-tip { font-size: 12px; color: #94a3b8; margin-top: 14px; line-height: 1.6; }
@media (max-width: 640px) {
    .tc-orders-label { min-width: 100%; }
    .tc-orders-tab { padding: 8px 12px; }
    .tc-wd-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   ★ 2026-11-06 v75  积分充值页内联账单（充值记录 / 积分流水）
   纯色、无渐变；与订单筛选面板同一套视觉语言
   ============================================================ */
.tc-bill-entry.is-on {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, .12);
}
.tc-bill-panel {
    margin: 0 0 18px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(30, 58, 95, .05);
    overflow: hidden;
}
.tc-bill-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
    font-size: 14px; color: #1f2937;
}
.tc-bill-close {
    width: 28px; height: 28px; border: 0; background: #f1f5f9; color: #64748b;
    border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1;
}
.tc-bill-close:hover { background: #e2e8f0; color: #1f2937; }
.tc-bill-orders, .tc-bill-history { padding: 6px 16px 14px; }
/* ★ v82：账单列表改为按数量分页（每页 20 条），不再限制容器高度滚动 */
.tc-bill-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 14px 0 4px; }
.tc-bill-page {
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1px solid #e2e8f0; background: #fff; border-radius: 8px;
    font-size: 13px; color: #475569; cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.tc-bill-page:hover { border-color: #93c5fd; color: #2563eb; }
.tc-bill-page.on { background: linear-gradient(120deg, #2563eb, #7c3aed); border-color: transparent; color: #fff; font-weight: 700; }
.tc-bill-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.tc-bill-row:last-child { border-bottom: 0; }
.tc-bill-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-bill-row-main b { font-size: 13px; color: #1f2937; }
.tc-bill-row-main span { font-size: 11px; color: #94a3b8; word-break: break-all; }
.tc-bill-row-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tc-bill-row-side > b { font-size: 14px; color: #1f2937; }
.tc-bill-st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.tc-bill-st.paid { background: #e7fbf5; color: #1f9e85; }
.tc-bill-st.pending { background: #fff5e6; color: #c2730b; }
.tc-bill-pay {
    border: 0; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.tc-bill-empty { padding: 34px 0; text-align: center; color: #94a3b8; font-size: 13px; }
@media (max-width: 640px) {
    .tc-bill-row { flex-direction: column; align-items: flex-start; }
    .tc-bill-row-side { width: 100%; justify-content: space-between; }
}

/* ============================================================
   ★ 2026-11-06 v77  「我的简历」页内子页签
   纯色、无渐变；与订单筛选面板同一套视觉语言
   ============================================================ */
.tc-resume-panel {
    background: #fff; border: 1px solid #e8edf5; border-radius: 14px;
    padding: 14px 16px 18px; box-shadow: 0 2px 10px rgba(30, 58, 95, .05);
}
.tc-resume-tabs { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; gap: 3px; }
.tc-resume-tab {
    border: 0; background: transparent; color: #64748b;
    font-size: 13px; font-weight: 700; padding: 8px 18px;
    border-radius: 8px; cursor: pointer; white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.tc-resume-tab i { margin-right: 6px; }
.tc-resume-tab:hover { color: #2563eb; }
.tc-resume-tab.is-on { background: #2563eb; color: #fff; box-shadow: 0 3px 8px rgba(37, 99, 235, .3); }
.tc-resume-hint { font-size: 12px; color: #94a3b8; margin: 12px 0 4px; }
@media (max-width: 640px) { .tc-resume-tab { padding: 8px 12px; } }


/* ============================================================
   ★ 2026-11-06 v78  积分充值页三分类水平页签
   一行三等分、互斥高亮；与功能页头部同款蓝紫主色
   ============================================================ */
.tc-credit-tabs { display: flex; gap: 8px; flex-wrap: nowrap; margin: 0 0 16px; }
.tc-credit-tab {
    flex: 1 1 0; min-width: 0; height: 40px; padding: 0 10px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
    color: #475569; font-size: 14px; font-weight: 600; white-space: nowrap;
    cursor: pointer; transition: all .18s ease;
}
.tc-credit-tab i { font-size: 14px; color: #94a3b8; }
.tc-credit-tab:hover { border-color: #93c5fd; color: #2563eb; }
.tc-credit-tab.is-on {
    border-color: transparent; color: #fff;
    background: linear-gradient(120deg, #2563eb, #7c3aed);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .24);
}
.tc-credit-tab.is-on i { color: #fff; }
.tc-credit-pane { display: block; }
@media (max-width: 600px) {
    .tc-credit-tabs { gap: 6px; }
    .tc-credit-tab { font-size: 12px; padding: 0 4px; gap: 4px; height: 38px; }
}

/* ══════════════════════════════════════════════════════════════════════
   ★ 2026-11-07 第十一轮（用户复核纠正）「发布历史」恢复固定 5 列
   需求原文：5 个内容卡片一行排列；同时内容列表延伸到右边、充分利用空间。
   第九轮误改成 auto-fit + 1fr：只有 1 条内容时空轨道塌陷，单卡被拉满整行，
   用户截图反馈「怎么还是一个卡片一行排列？」。
   正解：固定 5 列平分整行 —— 列数不随内容条数变化，每张卡恒占 1/5 宽，
   50 条/页（HISTORY_ITEMS_PER_PAGE）正好 5×10 行铺满，右侧空间也用足；
   只有可视宽度确实不够时才逐级降列。
   ══════════════════════════════════════════════════════════════════════ */
.ph-grid {
    display: grid;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ph-card {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
    min-width: 0;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.ph-card:hover {
    box-shadow: 0 10px 26px -8px rgba(15,23,42,.16);
    border-color: #d6deeb;
    transform: translateY(-2px);
}
/* ★ 2026-11-07：卡片可点开详情，hover 时标题变主色，给出「可点击」的视觉暗示 */
.ph-card:hover .ph-title { color: #2563eb; }
.ph-card:active { transform: translateY(0); }

/* 缩略图：图片绝对定位盖在占位之上，加载失败移除 img 即露出占位，不会留黑块 */
.ph-thumb {
    position: relative;
    width: 100%;
    /* ★ 2026-11-07 第九轮：列宽已改为自适应，缩略图不能再写死高度，
       否则卡片变宽后图片会被压成一条横线。改用宽高比跟随列宽，最宽封顶 240px。 */
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 240px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 9px;
    background: linear-gradient(135deg, #eef3fb, #f8fafd);
}
.ph-thumb > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; background: #fff;
}
.ph-thumb .ph-ph {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: #b6c1d4; font-size: 11px;
}
.ph-thumb .ph-ph i { font-size: 20px; }

/* ★ 2026-11-09：一级分类 + 二级分类名称双标签，删除按钮靠右 */
.ph-top { display: flex; align-items: center; justify-content: flex-start; gap: 4px; margin-bottom: 6px; }
.ph-tag, .ph-subtag {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 6px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
    max-width: 46%; overflow: hidden; text-overflow: ellipsis;
}
.ph-subtag { font-weight: 600; }
.ph-del {
    background: none; border: none; color: #9aa3b2; cursor: pointer;
    padding: 2px 4px; font-size: 11px; border-radius: 5px; line-height: 1;
    margin-left: auto; flex: 0 0 auto;
    transition: color .15s, background .15s;
}
.ph-del:hover { color: #ef4444; background: #fef2f2; }

.ph-title {
    margin: 0 0 5px;
    font-size: 13px; font-weight: 700; color: #1f2430; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ph-desc {
    margin: 0 0 8px;
    font-size: 11.5px; color: #8a91a6; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 34px;
}
.ph-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: #a8b0c0;
    padding-top: 7px; border-top: 1px solid #f2f4f8;
}

/* —— 固定 5 列的窄屏降级：桌面恒 5 列，仅当可视宽度不够时逐级降到 4/3/2/1。
      注意：绝不用 auto-fit，否则内容不足 5 条时单卡又会撑满整行。 —— */
@media (max-width: 1100px) {
    .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-thumb { aspect-ratio: 16 / 9; }
}
@media (max-width: 440px) {
    .ph-grid { grid-template-columns: minmax(0, 1fr); }
    .ph-thumb { aspect-ratio: 4 / 3; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ★ 2026-11-07 第七轮
   ① 详情弹窗关闭按钮：窄屏时从外侧 -44px 移回弹窗内右上角。
      弹窗宽度 640→960 后，视口 ≤1080px 时弹窗两侧不足 44px，按钮会溢出视口被裁掉。
   ② 全局滚动条自动隐藏。
   ══════════════════════════════════════════════════════════════════════════ */

/* —— ① 详情弹窗关闭按钮（窄屏内移） —— */
@media (max-width: 1080px) {
    #sharedDetailCloseBtn {
        right: 8px !important;
        top: 8px !important;
        background: rgba(255,255,255,.92) !important;
    }
}

/* —— ② 全局滚动条永久隐藏（2026-11-07 第九轮修订）——
   上一轮做的是「滚动时显示、静止 1.2 秒后隐藏」，用户反馈「滑动怎么还会显示指示条」，
   明确要求彻底不出现 → 改为常隐：thumb 全透明 + 滚动条宽度归 0。
   注意：只是看不见，滚动能力完全保留（内容照常能滚，滚轮/触控/键盘都正常）。

   ⚠ 必须逐条重述带 id 的选择器：前面 #mainContent .user-sidebar::-webkit-scrollbar-thumb
   这类规则特异性更高，只写一个笼统的 ::-webkit-scrollbar-thumb 压不住
   （侧栏那条蓝灰竖条就是被它顶着的，只改全局规则会「改了没效果」）。 */

html, body,
#mainContent,
#mainContent .user-sidebar,
#mainContent .user-content,
#sharedDetailBox,
#sharedDetailBox .detail-body,
.func-tabs,
.tc-scroll-x {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* 旧版 Edge / IE */
}

::-webkit-scrollbar { width: 0 !important; height: 0 !important; background: transparent; }
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner { background: transparent; }

/* 兜底：把所有已声明过的滚动条 thumb 状态一律压成透明（含滚动中） */
::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
html.tc-scrolling ::-webkit-scrollbar-thumb,
html.tc-scrolling::-webkit-scrollbar-thumb,
#mainContent .user-sidebar::-webkit-scrollbar-thumb,
#mainContent .user-content::-webkit-scrollbar-thumb,
html.tc-scrolling #mainContent .user-sidebar::-webkit-scrollbar-thumb,
html.tc-scrolling #mainContent .user-content::-webkit-scrollbar-thumb,
#sharedDetailBox::-webkit-scrollbar-thumb,
#sharedDetailBox .detail-body::-webkit-scrollbar-thumb,
html.tc-scrolling #sharedDetailBox::-webkit-scrollbar-thumb,
html.tc-scrolling #sharedDetailBox .detail-body::-webkit-scrollbar-thumb,
.func-tabs::-webkit-scrollbar-thumb,
html.tc-scrolling .func-tabs::-webkit-scrollbar-thumb {
    background: transparent !important;
}

/* ══════════════════════════════════════════════════════════════════════
   我的收藏：按内容分类分组（2026-11-07 第九轮）
   #favoritesGrid 原本是 .content-grid（4 列），现在里面装的是「分组」而不是卡片，
   必须改回 block，再由每组内部的 .fav-grid 自己排网格。
   ══════════════════════════════════════════════════════════════════════ */
#favoritesGrid { display: block; }
.fav-group { margin: 0 0 24px; }
.fav-group:last-child { margin-bottom: 0; }
.fav-group-head {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 12px; padding-left: 10px;
    border-left: 3px solid #3b6ef3;
}
.fgh-name { font-size: 15px; font-weight: 700; color: #1f2430; }
.fgh-count {
    font-size: 12px; font-weight: 600; color: #3b6ef3;
    background: #eef4ff; border-radius: 999px; padding: 1px 9px; line-height: 1.6;
}
.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.fav-card {
    min-width: 0; background: #fff; border: 1px solid #e8ecf3;
    border-radius: 12px; padding: 10px; cursor: pointer; box-sizing: border-box;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.fav-card:hover { box-shadow: 0 10px 26px -8px rgba(15,23,42,.16); border-color: #d6deeb; transform: translateY(-2px); }
.fav-card:hover .fav-title { color: #2563eb; }
.fav-card:active { transform: translateY(0); }
.fav-thumb {
    position: relative; width: 100%; aspect-ratio: 16 / 10;
    border-radius: 8px; overflow: hidden; margin-bottom: 9px;
    background: linear-gradient(135deg, #eef3fb, #f8fafd);
}
.fav-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-thumb .fc-ph {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center; color: #c3cddd; font-size: 20px;
}
.fav-title {
    font-size: 13px; font-weight: 700; color: #1f2430; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px;
}
.fav-desc {
    font-size: 12px; color: #8a91a6; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 36px;
}
.fav-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: #a8b0c0;
    padding-top: 7px; margin-top: 6px; border-top: 1px solid #f2f4f8;
}
.fav-empty { text-align: center; color: #9aa3b2; padding: 56px 0; font-size: 13px; }
.fav-empty i { margin-right: 6px; }
@media (max-width: 480px) {
    .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}


/* ═══════ 私信：常规聊天窗口（2026-11-07 第十四轮）═══════
   旧版两张卡片只有 max-height:560px、没有实际高度，被内容撑成约 230px 的「一段」，
   而个人中心是固定高度的内滚面板，下方留下一大片空白。
   这里统一给窗口一个确定高度：侧栏固定 300px 宽并与右侧等高，
   会话列表与消息列表各自内部滚动（滚动条常隐），
   ★ 会话数量变化不会改变侧栏尺寸或整个窗口高度。 */
.tc-pmsg-wrap {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    height: clamp(520px, calc(100vh - 210px), 680px);
    min-height: 520px;
}
.tc-pmsg-side,
.tc-pmsg-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}
.tc-pmsg-side { flex: 0 0 300px; width: 300px; }
.tc-pmsg-main { flex: 1 1 auto; min-width: 0; }
.tc-pmsg-side-hd {
    flex: 0 0 auto;
    padding: 14px 16px;
    background: #fff;
    color: #111827; font-weight: 600; font-size: 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; gap: 8px;
}
.tc-pmsg-side-hd i { color: #6b7280; font-size: 14px; }
.tc-pmsg-convo-list,
.tc-pmsg-msgs {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}
.tc-pmsg-msgs { padding: 18px; background: #f8fafc; }
.tc-pmsg-head {
    flex: 0 0 auto;
    padding: 14px 18px;
    border-bottom: 1px solid #eef1f6;
    font-weight: 700; color: #263244; font-size: 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-pmsg-input {
    flex: 0 0 auto;
    padding: 12px 14px;
    border-top: 1px solid #eef1f6;
    gap: 10px;
    align-items: center;
    background: #fff;
}
.tc-pmsg-input input { min-width: 0; }
.tc-pmsg-empty {
    height: 100%;
    min-height: 180px;
    box-sizing: border-box;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    color: #9aa5b5; font-size: 13.5px; text-align: center;
}
.tc-pmsg-empty i { font-size: 34px; color: #cbd5e1; margin: 0; }
.tc-pmsg-convo {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f5f9;
    transition: background .15s ease;
}
.tc-pmsg-convo:hover { background: #f5f8ff; }
.tc-pmsg-convo.is-active { background: #f1f5f9; border-left: 3px solid #2563eb; padding-left: 13px; }

/* ── 私信聊天区：两端统一口径（纯色气泡、常规圆角、中性头像底板，不用渐变与胶囊）── */
.tc-pmsg-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.tc-pmsg-row.is-me { flex-direction: row-reverse; }
.tc-pmsg-av {
    width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
    background: #e5e7eb; color: #4b5563;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; overflow: hidden; margin-top: 2px;
}
.tc-pmsg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-pmsg-body { min-width: 0; max-width: 70%; }
.tc-pmsg-bubble {
    display: inline-block; padding: 9px 13px; border-radius: 10px;
    font-size: 14px; line-height: 1.55;
    word-break: break-word; overflow-wrap: break-word;
    background: #fff; border: 1px solid #e5e7eb; color: #111827;
    border-bottom-left-radius: 3px;
}
.tc-pmsg-row.is-me .tc-pmsg-bubble {
    background: #2563eb; border-color: #2563eb; color: #fff;
    border-bottom-left-radius: 10px; border-bottom-right-radius: 3px;
}
.tc-pmsg-bubble img, .tc-pmsg-bubble video { display: block; border-radius: 8px; margin-top: 4px; }
/* 纯媒体私信：不套有色气泡（否则图片被蓝色边框包住） */
.tc-pmsg-bubble.is-media,
.tc-pmsg-row.is-me .tc-pmsg-bubble.is-media {
    padding: 0; background: transparent; border: none; border-radius: 0;
}
.tc-pmsg-bubble.is-media img,
.tc-pmsg-bubble.is-media video { margin-top: 0; }
.tc-pmsg-time { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.tc-pmsg-row.is-me .tc-pmsg-time { text-align: right; }
.tc-pmsg-text {
    flex: 1; min-width: 0; padding: 10px 12px;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 14px; color: #111827; background: #fff;
    outline: none; font-family: inherit;
}
.tc-pmsg-text:focus { border-color: #2563eb; }
.tc-pmsg-send {
    flex: 0 0 auto; padding: 10px 18px;
    background: #2563eb; color: #fff; border: none;
    border-radius: 8px; cursor: pointer;
    font-weight: 600; font-size: 14px; font-family: inherit;
}
.tc-pmsg-send:hover { background: #1d4ed8; }
.tc-pmsg-convo-list::-webkit-scrollbar,
.tc-pmsg-msgs::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
@media (max-width: 900px) {
    .tc-pmsg-wrap { gap: 12px; }
    .tc-pmsg-side { flex: 0 0 240px; width: 240px; }
}
@media (max-width: 640px) {
    .tc-pmsg-wrap { flex-direction: column; height: auto; min-height: 0; }
    .tc-pmsg-side { flex: 0 0 auto; width: 100%; height: 220px; }
    .tc-pmsg-main { flex: 0 0 auto; height: 480px; }
}

/* ═══════════════════════════════════════════════════════════════
   客服聊天面板（2026-11-08 去 AI 味 + 与电商助手统一）
   规范：纯色主色 #2563eb、圆角 10px/旧值收敛、无渐变、无彩色投影
   ═══════════════════════════════════════════════════════════════ */
.tc-svc-head {
    display: flex; align-items: center; gap: 12px;
    padding: 0 2px 14px;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 16px;
}
.tc-svc-head-ico {
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 10px;
    background: #eff6ff; color: #2563eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
}
.tc-svc-head-title { font-size: 17px; font-weight: 600; color: #111827; line-height: 1.3; }
.tc-svc-head-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.tc-svc-msgs {
    flex: 1; min-height: 380px;
    max-height: calc(100vh - 330px);
    overflow-y: auto;
    padding: 16px 4px 8px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 10px;
}
.tc-svc-msgs::-webkit-scrollbar { width: 6px; }
.tc-svc-msgs::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }

.tc-svc-row { margin-bottom: 12px; }
.tc-svc-bubble {
    padding: 10px 13px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}
.tc-svc-bubble-other { border-radius: 10px 10px 10px 3px; }
.tc-svc-bubble-me { border-radius: 10px 10px 3px 10px; }
/* 纯媒体消息：不套气泡，图片/视频自己承担圆角，杜绝蓝色边框 */
.tc-svc-bubble-media {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}
.tc-svc-role { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.tc-svc-time {
    font-size: 11px; margin-top: 5px;
    color: #94a3b8;
}
.tc-svc-bubble-me:not(.tc-svc-bubble-media) .tc-svc-time { color: rgba(255,255,255,.72); text-align: right; }
.tc-svc-bubble-media.tc-svc-bubble-me .tc-svc-time { color: #94a3b8; text-align: right; }
.tc-svc-state { font-size: 11px; color: #64748b; }
.tc-svc-bubble-me:not(.tc-svc-bubble-media) .tc-svc-state { color: rgba(255,255,255,.85); }
.tc-svc-bubble-other .tc-svc-state { color: #64748b; }
.tc-svc-bubble-media .tc-svc-state { color: #64748b; }
.tc-svc-state-failed { color: #dc2626 !important; }

.tc-svc-media { display: block; max-width: min(100%, 260px); }
.tc-svc-media-img {
    max-height: 260px;
    width: auto; height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    background: #f1f5f9;
}
.tc-svc-media-video { position: relative; line-height: 0; }
.tc-svc-media-video video {
    display: block;
    max-width: min(100%, 300px);
    max-height: 260px;
    border-radius: 8px;
    background: #000;
}
.tc-svc-media-caption { margin-top: 6px !important; }
.tc-svc-bubble-media .tc-svc-media-caption { color: #334155; }
.tc-svc-media-expand {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border: none; border-radius: 6px;
    background: rgba(0,0,0,.45); color: #fff;
    cursor: pointer; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .15s;
}
.tc-svc-media-video:hover .tc-svc-media-expand { opacity: 1; }

.tc-svc-composer {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 10px;
}
.tc-svc-composer-row { display: flex; align-items: center; gap: 8px; }
.tc-svc-attach {
    flex: 0 0 40px; width: 40px; height: 40px; padding: 0;
    background: #f1f5f9; color: #475569;
    border: 1px solid #e2e8f0; border-radius: 8px;
    cursor: pointer; font-size: 15px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.tc-svc-attach:hover { background: #e8eef7; color: #2563eb; }
.tc-svc-input {
    flex: 1; height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; font-family: inherit; color: #111827;
    outline: none; box-sizing: border-box;
}
.tc-svc-input:focus { border-color: #2563eb; }
.tc-svc-send {
    flex: 0 0 auto; height: 40px; padding: 0 20px;
    background: #2563eb; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer;
}
.tc-svc-send:hover { background: #1d4ed8; }
.tc-svc-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }

/* ── 站内媒体查看器（图片缩放/拖拽，视频内嵌播放）── */
.tc-mv {
    position: fixed; inset: 0;
    z-index: 100000;
    display: none;
    background: rgba(0,0,0,.9);
    align-items: center; justify-content: center;
}
.tc-mv.is-open { display: flex; }
.tc-mv-close {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff;
    cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    z-index: 100001;
}
.tc-mv-close:hover { background: rgba(255,255,255,.28); }
.tc-mv-content {
    display: flex; align-items: center; justify-content: center;
    max-width: 90vw; max-height: 85vh;
}
.tc-mv-content video {
    max-width: 90vw; max-height: 85vh;
    border-radius: 6px; background: #000;
}
.tc-mv-stage {
    position: absolute; inset: 0;
    overflow: hidden; cursor: grab;
    user-select: none; -webkit-user-select: none;
}
.tc-mv-stage.dragging { cursor: grabbing; }
.tc-mv-img {
    position: absolute; top: 0; left: 0;
    width: auto; height: auto;
    max-width: none; max-height: none;
    transform-origin: 0 0;
    will-change: transform;
    border-radius: 4px;
    cursor: zoom-in;
}
.tc-mv-ctrl {
    position: fixed; left: 50%; bottom: 24px;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    background: rgba(17,24,39,.85);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    z-index: 100002;
}
.tc-mv-btn {
    min-width: 32px; height: 32px; padding: 0 9px;
    border: none; border-radius: 6px;
    background: rgba(255,255,255,.1); color: #fff;
    font-size: 15px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.tc-mv-btn:hover { background: rgba(255,255,255,.25); }
.tc-mv-btn-primary { background: #2563eb; }
.tc-mv-btn-primary:hover { background: #1d4ed8; }
.tc-mv-level {
    min-width: 46px; text-align: center;
    color: #e5e7eb; font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════
   收藏入口（2026-11-08）
   问题：内容卡片 / 详情页此前没有任何收藏按钮，用户只能靠「点赞」
   间接产生收藏。这里补齐三个位置的样式：卡片星标、详情页按钮、
   收藏列表的取消按钮。配色沿用全站纯色主色 #2563eb，收藏态用琥珀色。
   ═══════════════════════════════════════════════════════════════ */

/* 卡片封面右上角星标 */
.cat-fav-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    padding: 0; margin: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    background: rgba(17, 24, 39, .45);
    color: #fff;
    font-size: 13px; line-height: 1;
    cursor: pointer;
    z-index: 3;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: background .15s ease, color .15s ease, transform .12s ease;
}
.cat-fav-btn:hover { background: rgba(17, 24, 39, .68); transform: scale(1.06); }
.cat-fav-btn:active { transform: scale(.94); }
.cat-fav-btn.is-on { background: #fff; color: #f59e0b; }
.cat-fav-btn.is-on:hover { background: #fff7e6; color: #d97706; }

/* 详情页操作行里的收藏按钮（与浏览/评论/点赞同一行） */
#sd-fav-btn { color: #64748b; }
#sd-fav-btn .action-btn-text { color: #64748b; }
#sd-fav-btn.is-on { color: #f59e0b; }
#sd-fav-btn.is-on .action-btn-text { color: #f59e0b; }
#sd-fav-btn i { margin-right: 4px; }

/* 货源详情页：三个按钮一行（收藏 / 加入购物车 / 立即下单） */
#sharedDetailBox .sd-goods-actions .sd-goods-fav-btn {
    flex: 0 0 auto;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 14px; font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
#sharedDetailBox .sd-goods-actions .sd-goods-fav-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
#sharedDetailBox .sd-goods-actions .sd-goods-fav-btn.is-on { color: #b45309; border-color: #fcd34d; background: #fffbeb; }

/* 「我的收藏」卡片上的取消按钮 */
.fav-card { position: relative; }
.fav-remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 26px; height: 26px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    background: rgba(17, 24, 39, .45);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transition: opacity .15s ease, background .15s ease;
}
.fav-card:hover .fav-remove { opacity: 1; }
.fav-remove:hover { background: #dc2626; }
.fav-remove:disabled { opacity: .5; cursor: default; }
@media (hover: none) {
    .fav-remove { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
 * ★ 2026-11-08 AI工具库「积分内容解锁」
 *   卡片积分角标 / 详情页解锁卡片 / 隐藏内容块 / 被锁的下载卡片
 * ══════════════════════════════════════════════════════════════ */
.cat-feed-points {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fbbf24;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
    z-index: 3;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.cat-feed-points i { font-size: 10.5px; }

.sd-points-lock {
    margin: 14px 0;
    padding: 15px 16px 14px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffbeb, #fffdf7);
}
.sd-points-lock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #92400e;
}
.sd-points-lock-head i { color: #f59e0b; font-size: 15px; }
.sd-points-lock-tip {
    font-size: 12.5px;
    color: #a16207;
    line-height: 1.75;
    margin-top: 7px;
}
.sd-points-lock-tip b { color: #b45309; }
.sd-points-lock-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 13px;
}
.sd-points-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(217, 119, 6, .8);
    transition: transform .12s ease, box-shadow .12s ease;
}
.sd-points-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(217, 119, 6, .9); }
.sd-points-btn:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }
.sd-points-balance { font-size: 12.5px; color: #92400e; }
.sd-points-balance b { color: #b45309; font-weight: 700; }

.sd-desc-lock-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -4px;
    font-size: 12.5px;
    color: #a16207;
}
.sd-desc-lock-hint i { font-size: 11px; }

.sd-hidden-box {
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}
.sd-hidden-box.is-locked { border-color: #fcd34d; background: #fffdf5; }
.sd-hidden-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}
.sd-hidden-title i { color: #64748b; }
.sd-hidden-text {
    white-space: pre-line;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.8;
    word-break: break-word;
}
.sd-hidden-locked {
    position: relative;
    max-height: 76px;
    overflow: hidden;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.85;
}
.sd-hidden-locked::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 42px;
    background: linear-gradient(180deg, rgba(255, 253, 245, 0), #fffdf5);
}

/* ★ 必须带 #sharedDetailBox 前缀：原样式是 `#sharedDetailBox .detail-link-card .dlc-ic`
   （ID + 2 类），不带 ID 的覆盖选择器权重更低，会被蓝色渐变反向压住。 */
#sharedDetailBox .detail-link-card.is-locked {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb, #fffdf7);
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}
#sharedDetailBox .detail-link-card.is-locked:hover {
    border-color: #fbbf24;
    box-shadow: 0 6px 18px -8px rgba(217, 119, 6, .45);
}
#sharedDetailBox .detail-link-card.is-locked .dlc-ic {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
#sharedDetailBox .detail-link-card.is-locked .dlc-body b { color: #92400e; }
#sharedDetailBox .detail-link-card.is-locked .dlc-body > span { color: #a16207; }
#sharedDetailBox .detail-link-card.is-locked .dlc-go { color: #d97706; }
