/**
 * 响应式样式 - 金色主题版
 * 移动端适配和响应式布局
 * 与 art.vnex.cn 风格保持一致
 * 
 * @package VNEX
 * @author  VNEX Team
 * @since   2026-06-15
 */

:root {
    --gold:        #D4A843;
    --gold-hover:  #C49A3A;
    --gold-dim:    rgba(212, 168, 67, 0.30);
    --gold-faint:  rgba(212, 168, 67, 0.10);
    --bg:          #080808;
    --bg-deeper:   #050505;
    --bg-card:     #0E0E0E;
    --white:       #FAFAFA;
    --slate:       #94A3B8;
    --slate-dim:   #647080;
    --border:      rgba(250, 250, 250, 0.08);
    --border-strong: rgba(250, 250, 250, 0.15);
}

/* ==================== 移动端基础样式 ==================== */
@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    html {
        font-size: 14px;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ==================== 导航菜单 ==================== */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 8, 8, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        padding: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu li {
        display: block;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        color: var(--slate);
    }
    
    .nav-menu a:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.06);
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
    }
    
    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media screen and (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
}

/* ==================== 表单优化 ==================== */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px;
        min-height: 44px;
        padding: 12px 16px;
        background: var(--bg-deeper);
        border: 1px solid var(--border);
        color: var(--white);
    }
    
    select {
        padding-right: 40px;
        background-position: right 12px center;
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        accent-color: var(--gold);
    }
    
    label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        color: var(--slate);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==================== 按钮优化 ==================== */
@media screen and (max-width: 768px) {
    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .btn-block {
        display: block;
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* ==================== 表格优化 ==================== */
@media screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    table {
        min-width: 600px;
    }
    
    .table-card {
        display: block;
    }
    
    .table-card thead {
        display: none;
    }
    
    .table-card tbody,
    .table-card tr {
        display: block;
        width: 100%;
    }
    
    .table-card tr {
        margin-bottom: 15px;
        border: 1px solid var(--border);
        border-radius: 2px;
        padding: 15px;
        background: var(--bg-card);
    }
    
    .table-card td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        color: var(--slate);
    }
    
    .table-card td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--slate-dim);
    }
}

/* ==================== 卡片网格 ==================== */
@media screen and (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media screen and (min-width: 577px) and (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (min-width: 769px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (min-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== Toast响应式 ==================== */
@media screen and (max-width: 768px) {
    #toast-container {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ==================== Modal响应式 ==================== */
@media screen and (max-width: 768px) {
    .modal-dialog {
        min-width: auto;
        max-width: none;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ==================== 分页响应式 ==================== */
@media screen and (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        padding: 8px 12px;
    }
    
    .pagination-ellipsis {
        display: none;
    }
}

/* ==================== 图片响应式 ==================== */
@media screen and (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media screen and (max-width: 400px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 侧边栏响应式 ==================== */
@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        background: var(--bg-card);
        border-right: 1px solid var(--border);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

/* ==================== 隐藏/显示辅助类 ==================== */
@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

@media screen and (max-width: 576px) {
    .hide-xs {
        display: none !important;
    }
}

@media screen and (min-width: 577px) and (max-width: 768px) {
    .hide-sm {
        display: none !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    .hide-md {
        display: none !important;
    }
}

@media screen and (min-width: 993px) {
    .hide-lg {
        display: none !important;
    }
}

/* ==================== 触底固定操作栏 ==================== */
@media screen and (max-width: 768px) {
    .bottom-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        z-index: 100;
        display: flex;
        gap: 10px;
        border-top: 1px solid var(--border);
    }
    
    .bottom-actions .btn {
        flex: 1;
    }
}

/* ==================== 滚动优化 ==================== */
@media screen and (max-width: 768px) {
    .scroll-x {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* ==================== 艺术市场周报页面响应式 ==================== */
@media screen and (max-width: 768px) {
    .reports-page-container {
        padding: 120px 16px 40px;
    }
    
    .reports-page-header h1 {
        font-size: 28px;
    }
    
    .report-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .report-read-more {
        align-self: flex-start;
    }
    
    .report-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==================== 价格页响应式 ==================== */
@media screen and (max-width: 768px) {
    .price-hero-stats {
        grid-template-columns: 1fr;
    }
    
    .recharge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .recharge-grid {
        grid-template-columns: 1fr;
    }
}
