/* 移动端自适应样式 */
:root {
    --mobile-header-height: 64px;
    --mobile-footer-height: 60px;
    --mobile-bottom-nav-height: 64px;
    --minimal-tab-height: 48px;
    --minimal-content-padding: 16px;
}

/* 基础移动端样式 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 主要内容区域调整 */
.main-content {
    min-height: calc(100vh - var(--mobile-header-height));
    padding-bottom: env(safe-area-inset-bottom);
}

/* 移动端底部导航适配 */
@media (max-width: 1023px) {
    .main-content {
        padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
    }
}

/* 触摸优化 */
.btn,
button,
a[role="button"] {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* 表单元素优化 */
input,
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
    font-size: 16px; /* 防止iOS缩放 */
}

/* 移动端卡片样式 */
.mobile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 移动端列表样式 */
.mobile-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.mobile-list-item:last-child {
    border-bottom: none;
}

.mobile-list-item:active {
    background-color: #f5f5f5;
}

/* 移动端头像样式 */
.mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

/* 移动端统计卡片 */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.stats-card:active {
    transform: scale(0.98);
}

.stats-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stats-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 移动端按钮样式 */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.mobile-btn-primary {
    background: #3b82f6;
    color: white;
}

.mobile-btn-primary:active {
    background: #2563eb;
    transform: scale(0.98);
}

.mobile-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.mobile-btn-secondary:active {
    background: #e5e7eb;
    transform: scale(0.98);
}

/* 移动端标签样式 */
.mobile-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-tag-success {
    background: #dcfce7;
    color: #166534;
}

.mobile-tag-warning {
    background: #fef3c7;
    color: #92400e;
}

.mobile-tag-error {
    background: #fee2e2;
    color: #991b1b;
}

.mobile-tag-info {
    background: #dbeafe;
    color: #1e40af;
}

/* 移动端表单样式 */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.mobile-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.mobile-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mobile-form-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* 移动端加载动画 */
.mobile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.mobile-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端空状态 */
.mobile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
}

.mobile-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.mobile-empty-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.mobile-empty-description {
    font-size: 14px;
    color: #6b7280;
}

/* 移动端响应式调整 */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .stats-card {
        padding: 16px;
    }
    
    .stats-number {
        font-size: 20px;
    }
    
    .mobile-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* iPhone X及以上刘海屏适配 */
@supports (padding-top: constant(safe-area-inset-top)) {
    .navbar {
        padding-top: constant(safe-area-inset-top);
    }
}

@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .mobile-card,
    .mobile-list,
    .stats-card {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .mobile-form-input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .mobile-btn-secondary {
        background: #374151;
        color: #f9fafb;
    }
}

/* 滚动优化 */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-overflow-scrolling: touch;
}

/* 防止横向滚动 */
body {
    overflow-x: hidden;
}

/* 移动端表格样式 */
.mobile-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-table th,
.mobile-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.mobile-table th {
    background: #f9fafb;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.mobile-table td {
    font-size: 14px;
    color: #6b7280;
}

/* 移动端模态框样式 */
.mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.mobile-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .mobile-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 80vh;
    }
    
    .mobile-modal {
        align-items: flex-end;
    }
}

/* 移动端Tabs优化 */
@media (max-width: 640px) {
    .guide-tabs-nav {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .guide-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .guide-tab-btn {
        min-height: 48px;
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.1);
    }
    
    .guide-tab-btn:active {
        transform: scale(0.98);
    }
    
    .guide-tabs-content {
        padding: 1rem;
    }
    
    .guide-tab-pane .flex {
        word-break: break-word;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .guide-tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .guide-tab-btn svg {
        width: 1rem;
        height: 1rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .minimal-tab-btn {
        padding: 18px 12px;
    }
    
    .minimal-content-item {
        padding: 18px;
    }
    
    .minimal-content-item:hover {
        transform: none;
        background: #f8fafc;
    }
    
    .minimal-content-item:active {
        transform: scale(0.98);
        background: #e2e8f0;
    }
}

/* 横向滚动优化 */
.minimal-tabs-header {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 性能优化 */
.minimal-tab-btn,
.minimal-content-item {
    will-change: transform;
}

.minimal-tab-content {
    will-change: opacity, transform;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .minimal-tab-btn,
    .minimal-content-item,
    .minimal-tab-content {
        transition: none;
        animation: none;
    }
    
    .minimal-tab-btn::after {
        transition: none;
    }
}

/* 营销菜单样式 */
.marketing-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    min-height: 56px;
    width: 100%;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

/* 确保营销按钮在底部导航中正确显示 */
.btm-nav .relative {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketing-btn:active {
    transform: scale(0.95);
}

.marketing-btn.active {
    color: #3b82f6;
}

/* 营销二级菜单 */
.marketing-submenu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 12px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.marketing-submenu-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    animation: marketingMenuSlideUp 0.3s ease;
}

@keyframes marketingMenuSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.marketing-submenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.marketing-submenu-item:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.marketing-submenu-item:active {
    background: #e5e7eb;
    transform: scale(0.98);
}

/* 营销菜单动画 */
@keyframes marketingMenuSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes marketingMenuSlideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

.marketing-submenu.show {
    animation: marketingMenuSlideUp 0.3s ease forwards;
}

.marketing-submenu.hide {
    animation: marketingMenuSlideDown 0.3s ease forwards;
}

/* 营销菜单箭头 */
.marketing-submenu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .submenu-content {
        background: #1f2937;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    
    .submenu-item {
        color: #f9fafb;
    }
    
    .submenu-item:hover {
        background: #374151;
        color: #60a5fa;
    }
    
    .submenu-item:active {
        background: #4b5563;
    }
    
    .submenu::before {
        border-top-color: #1f2937;
    }
    
    /* 深色模式下的特殊颜色 */
    .submenu.marketing-submenu .submenu-item:hover {
        background: rgba(59, 130, 246, 0.2);
        color: #60a5fa;
    }
    
    .submenu.store-submenu .submenu-item:hover {
        background: rgba(34, 197, 94, 0.2);
        color: #4ade80;
    }
    
    .submenu.product-submenu .submenu-item:hover {
        background: rgba(168, 85, 247, 0.2);
        color: #c084fc;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 移动端适配 */
@media (max-width: 375px) {
    .submenu-content {
        min-width: 120px;
        padding: 6px;
    }
    
    .submenu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .submenu-item svg {
        width: 14px;
        height: 14px;
    }
}

/* 横屏模式适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .submenu {
        top: -220px;
        left: 50%;
        transform: translateX(-50%);
        max-height: 200px;
    }
    
    .submenu-content {
        padding: 8px;
        gap: 6px;
    }
    
    .submenu-item {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .submenu-item svg {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
    
    .submenu::before {
        top: auto;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%) rotate(180deg);
    }
}

/* 底部导航栏样式 - 统一设计 */
.btm-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
    height: 64px;
}

/* 下拉菜单位置容器 */
.btm-nav-dropdown {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航项样式 - 统一所有元素的样式 */
.btm-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 64px;
    width: 100%;
    font-family: inherit;
}

/* 统一图标样式 */
.btm-nav-item svg:not(.dropdown-arrow) {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* 统一标签样式 */
.btm-nav-label {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

/* 悬停状态 */
.btm-nav-item:hover {
    background: rgba(243, 244, 246, 0.8);
}

/* 激活状态 - 统一所有导航项的激活样式 */
.btm-nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* 激活状态下划线 */
.btm-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.btm-nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* 遮罩层 */
.submenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.submenu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 重构的二级菜单样式 */
.submenu {
    position: fixed;
    bottom: 64px;
    left: 16px;
    right: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    overflow: hidden;
}

.submenu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

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

.submenu-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.submenu-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.submenu-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.submenu-content {
    padding: 8px;
    max-height: calc(70vh - 60px);
    overflow-y: auto;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.submenu-item:last-child {
    margin-bottom: 0;
}

.submenu-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.submenu-item:active {
    background: #e5e7eb;
    transform: translateX(2px);
}

.submenu-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #3b82f6;
}

.submenu-text {
    flex: 1;
    min-width: 0;
}

.submenu-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
}

.submenu-item-desc {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 不同菜单的特殊颜色 */
.store-submenu .submenu-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.product-submenu .submenu-icon {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.marketing-submenu .submenu-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .submenu {
        left: 12px;
        right: 12px;
        bottom: 60px;
    }
    
    .submenu-header {
        padding: 14px 16px 10px;
    }
    
    .submenu-content {
        padding: 6px;
    }
    
    .submenu-item {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .submenu-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-height: 700px) {
    .submenu {
        max-height: 60vh;
    }
    
    .submenu-content {
        max-height: calc(60vh - 60px);
    }
}

/* 统一的子菜单样式 */
.submenu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 12px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.submenu-content {
    background: white;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.submenu-item:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.submenu-item:active {
    background: #e5e7eb;
    transform: scale(0.98);
}

.submenu.show {
    animation: marketingMenuSlideUp 0.3s ease forwards;
}

.submenu.hide {
    animation: marketingMenuSlideDown 0.3s ease forwards;
}

.submenu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

/* 营销子菜单特殊颜色 */
.submenu.marketing-submenu .submenu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* 店铺子菜单特殊颜色 */
.submenu.store-submenu .submenu-item:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* 商品子菜单特殊颜色 */
.submenu.product-submenu .submenu-item:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}
.btm-nav .marketing-btn {
    position: relative;
    z-index: 10;
}

.btm-nav .marketing-btn.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btm-nav .marketing-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
}

/* 店铺按钮在底部导航中的特殊样式 */
.btm-nav .store-btn {
    position: relative;
    z-index: 10;
}

.btm-nav .store-btn.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.btm-nav .store-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #22c55e;
    border-radius: 3px 3px 0 0;
}

/* 商品按钮在底部导航中的特殊样式 */
.btm-nav .product-btn {
    position: relative;
    z-index: 10;
}

.btm-nav .product-btn.active {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.btm-nav .product-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #a855f7;
    border-radius: 3px 3px 0 0;
}

/* 裸钻商品列表页面样式 */
.diamond-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.diamond-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.diamond-image {
    border-radius: 12px;
    background: linear-gradient(45deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.diamond-image:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: scale(1.02);
}

.diamond-badge {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(168, 85, 247, 0.2);
}

.diamond-feature {
    background: rgba(168, 85, 247, 0.05);
    color: #7c3aed;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.diamond-stats {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.diamond-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.diamond-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.diamond-stat-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(168, 85, 247, 0.1);
}

.diamond-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.diamond-stat-item:hover::before {
    left: 100%;
}

.diamond-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 0.25rem;
}

.diamond-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* 钻石主题按钮 */
.btn-diamond {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-diamond:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-diamond:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-diamond-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #2563eb;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-diamond-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.btn-diamond-outline:active {
    transform: translateY(0);
}

/* 钻石主题搜索框 */
.search-diamond {
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.search-diamond:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    outline: none;
}

/* 钻石主题表格 */
.table-diamond {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.1);
    box-shadow: 0 4px 6px rgba(168, 85, 247, 0.05);
}

.table-diamond th {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: #7c3aed;
    font-weight: 600;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.table-diamond td {
    border-bottom: 1px solid rgba(168, 85, 247, 0.05);
}

.table-diamond tr:hover {
    background: rgba(168, 85, 247, 0.02);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.table-diamond tbody tr {
    transition: all 0.2s ease;
}

.table-diamond tbody tr:hover td {
    color: #7c3aed;
    border-color: rgba(168, 85, 247, 0.15);
}

/* 钻石主题模态框 */
.modal-diamond .modal-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
    color: #7c3aed;
}

.modal-diamond .modal-footer {
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    background: rgba(168, 85, 247, 0.02);
}

/* 钻石主题分页 */
.pagination-diamond .page-link {
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #7c3aed;
    transition: all 0.2s ease;
}

.pagination-diamond .page-link:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.pagination-diamond .page-item.active .page-link {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-color: #a855f7;
    color: white;
    position: relative;
    overflow: hidden;
}

.pagination-diamond .page-item.active .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式钻石卡片 */
@media (max-width: 640px) {
    .diamond-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .diamond-stat-number {
        font-size: 1.25rem;
    }
    
    .diamond-card {
        padding: 1rem;
    }
    
    .diamond-image {
        height: 120px;
    }
}