/* 移动端优化样式 - 针对手机端用户体验优化 */

/* PC端样式 - 1280px以上使用PC样式 */
@media (min-width: 1281px) {
    /* 隐藏移动端导航栏 */
    .wap_top {
        display: none !important;
    }
    
    /* 显示桌面端导航栏 */
    .navbar-container {
        display: block !important;
    }
}

/* 强制重置wap_top在移动端的样式 - 1280px以下都使用移动端样式 */
@media (max-width: 1280px) {
    /* 重置所有可能影响wap_top的样式 */
    .wap_top {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e9ecef !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        z-index: 1000 !important;
    }
}

/* 移动端导航栏优化 - 参考ChemAnalyst设计 - 1280px以下都使用移动端样式 */
@media (max-width: 1280px) {
    /* 隐藏桌面端导航栏 */
    .navbar-container {
        display: none !important;
    }
    
    
    /* 隐藏移动端不需要的间距元素 */
    .ner_xl_m {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 移动端顶部栏 - 完全照抄ChemAnalyst设计 */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        background: #ffffff;
        border-bottom: 1px solid #d1d5db;
        height: 56px;
        position: relative;
        box-sizing: border-box;
        margin-bottom: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* 栏目按钮 - 完全照抄ChemAnalyst设计 */
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s ease;
        font-size: 18px;
        color: #374151;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .mobile-menu-btn:hover {
        background: #f3f4f6;
        color: #1f2937;
    }
    
    .mobile-menu-btn.active {
        background: #3b82f6;
        color: white;
    }
    
    .menu-icon {
        font-size: 16px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn.active .menu-icon {
        transform: rotate(90deg);
    }
    
    /* Logo居中 - 完全照抄ChemAnalyst设计 */
    .mobile-logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 16px;
        height: 45px;
        margin-top: 12px;
    }
    
    .mobile-logo img {
        height: 45px;
        width: auto;
        object-fit: contain;
        max-width: 140px;
    }
    
    /* 移动端登录注册按钮 - 完全照抄ChemAnalyst设计 */
    .mobile-auth {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .mobile-login, .mobile-signup, .mobile-user, .mobile-logout {
        height: 35px;
        padding: 0 12px;
        text-decoration: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.15s ease;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 50px;
        box-sizing: border-box;
    }
    
    .mobile-login, .mobile-logout {
        color: #374151;
        background: transparent;
        border: 1px solid #d1d5db;
    }
    
    .mobile-login:hover, .mobile-logout:hover {
        background: #f9fafb;
        border-color: #3b82f6;
        color: #3b82f6;
    }
    
    .mobile-signup {
        background: #3b82f6;
        color: white;
        border: 1px solid #3b82f6;
    }
    
    .mobile-signup:hover {
        background: #2563eb;
        border-color: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .mobile-user {
        color: #3b82f6;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    /* 全屏导航菜单 */
    .mobile-fullscreen-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-fullscreen-nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }
    
    .mobile-nav-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: #ffffff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-fullscreen-nav.active .mobile-nav-content {
        transform: translateX(0);
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        background: #f8f9fa;
    }
    
    .mobile-nav-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary, #2c3e50);
    }
    
    .mobile-nav-close {
        width: 32px;
        height: 32px;
        background: transparent;
        border: 1px solid #e9ecef;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        color: var(--text-secondary, #7f8c8d);
    }
    
    .mobile-nav-close:hover {
        background: #e9ecef;
        color: var(--text-primary, #2c3e50);
    }
    
    /* 导航菜单 */
    .mobile-nav-menu {
        list-style: none;
        margin: 0;
        padding: 20px 0;
    }
    
    .mobile-nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-nav-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-menu li a {
        display: block;
        padding: 16px 20px;
        text-decoration: none;
        color: var(--text-primary, #2c3e50);
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }
    
    .mobile-nav-menu li a:hover {
        background: #f8f9fa;
        color: var(--primary-color, #2c5aa0);
        border-left-color: var(--primary-color, #2c5aa0);
    }
    
    .mobile-nav-menu li a.active {
        background: rgba(44, 90, 160, 0.1);
        color: var(--primary-color, #2c5aa0);
        border-left-color: var(--primary-color, #2c5aa0);
        font-weight: 600;
    }
    
    .mobile-nav-menu li a.highlight {
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c;
        border-left-color: #e74c3c;
    }
}

/* 平板设备优化 - 768px到1280px之间 */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header {
        padding: 12px 20px;
        height: 60px;
    }
    
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .mobile-logo {
        height: 45px;
        margin-top: 12px;
    }
    
    .mobile-logo img {
        height: 45px;
        max-width: 140px;
    }
    
    .mobile-auth {
        height: 44px;
        gap: 10px;
    }
    
    .mobile-login, .mobile-signup, .mobile-user, .mobile-logout {
        height: 44px;
        padding: 0 14px;
        font-size: 15px;
        min-width: 55px;
    }
}

/* 超小屏幕优化 - 480px以下进一步优化 */
@media (max-width: 480px) {
    .mobile-header {
        padding: 8px 12px;
        height: 48px;
    }
    
            .mobile-menu-btn {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }
    
            .mobile-logo {
                height: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 8px;
            }
            
            .mobile-logo img {
                height: 40px;
                width: auto;
                object-fit: contain;
                max-width: 120px;
            }
    
    .mobile-login, .mobile-signup, .mobile-user, .mobile-logout {
        padding: 6px 10px;
        font-size: 13px;
        height: 32px;
        min-width: 45px;
    }
    
    .mobile-auth {
        gap: 6px;
        height: 32px;
    }
    
    .search-hero-section {
        padding: 12px 8px;
    }
    
    .search-hero-content {
        padding: 0 4px !important;
    }
    
    .search-hero-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        padding: 0 5px;
    }
    
    .drugbank-search-container {
        min-height: 40px;
    }
    
    .search-input {
        padding: 8px 10px;
        font-size: 15px;
        height: 40px;
    }
    
    .search-submit-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 45px;
        height: 40px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .tab-title {
        font-size: 1.1rem;
    }
    
    .tab-description {
        font-size: 0.8rem;
    }
    
    .tab-features li {
        font-size: 0.8rem;
    }
}

/* 移动端登录页面优化 */
@media (max-width: 1280px) {
    /* 登录页面顶部区域 */
    .login_m_top {
        padding: 20px 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        box-sizing: border-box;
    }
    
    /* 隐藏桌面端顶部logo */
    .top_t {
        display: none !important;
    }
    
    /* 移动端顶部logo */
    .wa_mp_top {
        text-align: center;
        margin-bottom: 30px;
        padding: 20px 0;
    }
    
    .wa_mp_top img {
        height: 50px;
        width: auto;
        max-width: 150px;
        filter: brightness(0) invert(1);
    }
    
    /* 登录主区域 */
    .login_main {
        max-width: 400px;
        margin: 0 auto;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        padding: 30px 20px;
        width: calc(100% - 32px);
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }
    
    .login_main ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .login_main li {
        margin-bottom: 20px;
    }
    
    /* Google登录按钮 */
    .g_id_signin {
        width: 100% !important;
        height: 48px !important;
        border-radius: 8px !important;
        margin-bottom: 20px !important;
    }
    
    /* OR分隔线 */
    .lfr_mfr2 {
        text-align: center;
        margin: 20px 0;
        color: #6b7280;
        font-style: normal;
        position: relative;
    }
    
    .lfr_mfr2 i {
        background: #ffffff;
        padding: 0 15px;
        font-size: 14px;
    }
    
    .lfr_mfr2::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e5e7eb;
        z-index: -1;
    }
    
    /* 表单区域 */
    .lfr_mfr3 {
        margin: 0;
        padding: 0;
    }
    
    .lfr_mfr3 dd {
        margin: 0 0 16px 0 !important;
        position: relative !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 输入框样式 */
    .ect_m1, .ect_m2 {
        width: 100% !important;
        height: 48px !important;
        padding: 0 16px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
        outline: none !important;
        margin: 0 !important;
        display: block !important;
    }
    
    .ect_m1:focus, .ect_m2:focus {
        outline: none !important;
        border: 1px solid #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }
    
    /* 强制移除所有可能的重复边框 */
    .ect_m1, .ect_m2 {
        border: 1px solid #d1d5db !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
    }
    
    .ect_m1:hover, .ect_m2:hover {
        border: 1px solid #d1d5db !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
    }
    
    /* 移除所有可能的重复边框样式 */
    .ect_m1, .ect_m2 {
        border-width: 1px !important;
        border-style: solid !important;
        border-color: #d1d5db !important;
    }
    
    /* 确保没有内边框或外边框 */
    .ect_m1, .ect_m2 {
        border-top: 1px solid #d1d5db !important;
        border-right: 1px solid #d1d5db !important;
        border-bottom: 1px solid #d1d5db !important;
        border-left: 1px solid #d1d5db !important;
    }
    
    /* 密码显示/隐藏按钮 - 移动端隐藏 */
    .yrb_k1, .yrb_k2 {
        display: none !important;
    }
    
    /* 注册页面复选框和标签样式 - 还原原始效果 */
    .lbe_tdf {
        margin: 0 0 16px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .lbe_tdf label {
        display: block !important;
        font-size: 14px !important;
        line-height: 20px !important;
        color: #374151 !important;
        cursor: pointer !important;
    }
    
    .hd_txde {
        width: auto !important;
        height: auto !important;
        margin: 0 8px 0 0 !important;
        vertical-align: middle !important;
    }
    
    .lbe_tdf label a {
        color: #3b82f6 !important;
        text-decoration: none !important;
        margin: 0 4px !important;
    }
    
    .lbe_tdf label a:hover {
        text-decoration: underline !important;
    }
    
    /* 登录按钮 */
    .ect_m3 {
        width: 100%;
        height: 48px;
        background: #3b82f6;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .ect_m3:hover {
        background: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    /* 底部链接区域 */
    .lfr_mfr4 {
        text-align: center;
        margin-top: 20px;
        font-style: normal;
    }
    
    .lfr_mfr4 a {
        color: #6b7280;
        text-decoration: none;
        font-size: 14px;
        margin: 0 10px;
        transition: color 0.3s ease;
    }
    
    .lfr_mfr4 a:hover {
        color: #3b82f6;
    }
    
    /* Join Free链接样式 */
    .join-free-link {
        color: #3b82f6 !important;
        font-weight: 500;
    }
    
    .join-free-link:hover {
        color: #2563eb !important;
    }
}

/* 移动端Banner和搜索区域优化 - 1280px以下都使用移动端样式 */
@media (max-width: 1280px) {
    /* 移动端Banner区域优化 */
    .search-hero-section {
        padding: 15px 12px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        min-height: auto;
    }
    
    /* search-hero-content 移动端优化 */
    .search-hero-content {
        max-width: 100% !important;
        padding: 0 8px !important;
        margin: 0 auto !important;
    }
    
    .search-hero-title {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
        color: var(--text-primary, #2c3e50);
        font-weight: 600;
        padding: 0 10px;
        white-space: normal !important; /* 允许换行 */
    }
    
    /* 搜索容器移动端优化 - 更紧凑的布局 */
    .drugbank-search-container {
        max-width: 100%;
        margin: 0 auto;
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    
    .search-input-wrapper {
        flex: 1;
        margin: 0;
    }
    
    .search-input {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 10px 12px;
        border: none;
        outline: none;
        width: 100%;
        background: transparent;
        color: var(--text-primary, #2c3e50);
        height: 44px;
    }
    
    .search-input::placeholder {
        color: var(--text-muted, #95a5a6);
        font-size: 14px;
    }
    
    .search-submit-btn {
        padding: 10px 16px;
        font-size: 13px;
        background: var(--primary-color, #2c5aa0);
        color: white;
        border: none;
        border-radius: 0;
        min-width: 50px;
        height: 44px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .search-submit-btn:hover {
        background: #1e4a7a;
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
    }
    
    /* 隐藏桌面端的额外按钮和元素 */
    .search-hero-section .drugbank-search-container > *:not(.search-input-wrapper):not(.search-submit-btn) {
        display: none !important;
    }
    
    /* 悬停搜索框移动端优化 */
    #floating-search {
        position: fixed;
        top: 8px;
        right: 8px;
        left: 8px;
        max-width: none;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 8px;
        border: 1px solid #e9ecef;
    }
    
    #floating-search input {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 10px 12px;
        border: none;
        outline: none;
        background: transparent;
        width: 100%;
    }
    
    #floating-search button {
        padding: 10px 12px;
        min-width: 44px; /* 确保触摸友好 */
        background: var(--primary-color, #2c5aa0);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    #floating-search button:hover {
        background: #1e4a7a;
    }
    
    /* 移动端内容区域优化 */
    .main_tp2 {
        padding: 20px 16px;
    }
    
    /* DrugBank风格Tab区域移动端优化 */
    .drugbank-tabs-section {
        margin-bottom: 20px;
    }
    
    .tabs-container {
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    .tabs-nav {
        display: flex;
        flex-direction: column;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        font-weight: 500;
        text-align: left;
        background: transparent;
        border: none;
        border-bottom: 1px solid #e9ecef;
        color: var(--text-primary, #2c3e50);
        transition: all 0.3s ease;
        cursor: pointer;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .tab-btn:hover {
        background: #e9ecef;
        color: var(--primary-color, #2c5aa0);
    }
    
    .tab-btn.active {
        background: var(--primary-color, #2c5aa0);
        color: white;
        font-weight: 600;
    }
    
    /* 隐藏移动端不需要的Tab按钮 */
    .tabs-nav .tab-btn:nth-child(n+4) {
        display: none;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tab-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: var(--text-primary, #2c3e50);
        font-weight: 600;
    }
    
    .tab-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        color: var(--text-secondary, #7f8c8d);
        line-height: 1.5;
    }
    
    .tab-features {
        margin-bottom: 1.5rem;
    }
    
    .tab-features li {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        color: var(--text-primary, #2c3e50);
        display: flex;
        align-items: center;
    }
    
    .check-icon {
        color: var(--success-color, #27ae60);
        font-weight: bold;
        margin-right: 8px;
    }
    
    .tab-disclaimer {
        font-size: 0.8rem;
        color: var(--text-muted, #95a5a6);
        font-style: italic;
    }
    
    /* 窗口样式移动端优化 */
    .price-chart-window,
    .factory-window,
    .market-window {
        margin-top: 20px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    .window-header {
        background: #f8f9fa;
        padding: 12px 16px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .window-controls {
        display: flex;
        gap: 4px;
    }
    
    .control-btn {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #dee2e6;
    }
    
    .window-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary, #2c3e50);
    }
    
    .window-content {
        padding: 16px;
    }
    
    .price-item,
    .factory-item,
    .market-item {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
    }
    
    .price-item:last-child,
    .factory-item:last-child,
    .market-item:last-child {
        border-bottom: none;
    }
    
    .product-name,
    .factory-name,
    .market-title {
        font-weight: 500;
        color: var(--text-primary, #2c3e50);
    }
    
    .price-value,
    .factory-status,
    .market-value {
        font-weight: 600;
        color: var(--text-secondary, #7f8c8d);
    }
    
    .price-change {
        font-size: 12px;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 4px;
    }
    
    .price-change.positive {
        background: rgba(39, 174, 96, 0.1);
        color: var(--success-color, #27ae60);
    }
    
    .price-change.negative {
        background: rgba(231, 76, 60, 0.1);
        color: var(--danger-color, #e74c3c);
    }
}

/* 移动端内容区域优化 */
@media (max-width: 768px) {
    .main_tp2 {
        padding: 15px 10px;
    }
    
    .drugbank-tabs-section {
        margin-bottom: 20px;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
    }
    
    .tab-content {
        padding: 15px 10px;
    }
    
    .tab-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .tab-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .tab-features {
        margin-bottom: 1rem;
    }
    
    .tab-features li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .price-chart-window,
    .factory-window,
    .market-window {
        margin-top: 15px;
    }
    
    .window-content {
        padding: 10px;
    }
    
    .price-item,
    .factory-item,
    .market-item {
        padding: 8px 0;
        font-size: 0.85rem;
    }
}

/* 移动端价格表格优化 */
@media (max-width: 768px) {
    .price-tables-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .price-table-card {
        margin-bottom: 15px;
    }
    
    .table-header {
        padding: 10px 15px;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .price-table {
        font-size: 0.8rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px 6px;
    }
    
    .product-link {
        font-size: 0.8rem;
        word-break: break-word;
    }
    
    .price-value {
        font-size: 0.8rem;
    }
    
    .change {
        font-size: 0.75rem;
    }
}

/* 移动端新闻区域优化 */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .news-card {
        padding: 12px;
    }
    
    .news-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .news-date {
        font-size: 0.75rem;
        margin-top: 5px;
    }
}

/* 移动端服务区域优化 */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* 移动端悬停搜索框优化 */
@media (max-width: 768px) {
    #floating-search {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 8px;
    }
    
    #floating-search input {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 10px 12px;
    }
    
    #floating-search button {
        padding: 10px 12px;
        min-width: 44px; /* 确保触摸友好 */
    }
}

/* 移动端通用优化 */
@media (max-width: 768px) {
    /* 确保所有按钮都有足够的触摸区域 */
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 优化文本选择 */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* 防止水平滚动 */
    body {
        overflow-x: hidden;
    }
    
    /* 优化滚动性能 */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .wap_top .nav_t {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .wap_top .nav_t li a {
        min-height: 50px;
        padding: 8px 6px;
    }
    
    .search-hero-section {
        padding: 15px 20px;
    }
    
    .search-hero-title {
        font-size: 1.3rem;
    }
}

/* 登录页面移动端优化 */
@media (max-width: 768px) {
    .login_m_top {
        padding: 10px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .top_t {
        display: none !important;
    }
    
    .wa_mp_top {
        display: flex !important;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .wa_mp_top img {
        height: 32px !important;
        width: auto !important;
    }
    
    .login_main {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }
    
    .login_main ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .login_main li {
        margin-bottom: 15px;
    }
    
    /* Google登录按钮优化 */
    .lfr_mfr1 {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .g_id_signin {
        margin: 0 auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 300px !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* OR分隔符优化 */
    .lfr_mfr2 {
        text-align: center !important;
        margin: 20px auto !important;
        display: block !important;
        color: var(--text-secondary, #7f8c8d);
        font-size: 14px;
    }
    
    /* 输入框优化 */
    .lfr_mfr3 {
        margin: 0;
    }
    
    .lfr_mfr3 dd {
        margin-bottom: 15px;
    }
    
    .ect_m1, .ect_m2 {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important; /* 防止iOS缩放 */
        border: 2px solid var(--border-color, #e9ecef) !important;
        border-radius: 8px !important;
        background: white !important;
        transition: all 0.3s ease !important;
    }
    
    .ect_m1:focus, .ect_m2:focus {
        border-color: var(--primary-color, #2c5aa0) !important;
        box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1) !important;
        outline: none !important;
    }
    
    .ect_m1::placeholder, .ect_m2::placeholder {
        color: var(--text-muted, #95a5a6) !important;
        font-size: 14px !important;
    }
    
    /* 登录按钮优化 */
    .ect_m3 {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        background: var(--primary-color, #2c5aa0) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        min-height: 48px !important;
    }
    
    .ect_m3:hover {
        background: #1e4a7a !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2) !important;
    }
    
    /* 底部链接优化 */
    .lfr_mfr4 {
        text-align: center !important;
        margin-top: 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .lfr_mfr4 a {
        color: var(--text-secondary, #7f8c8d) !important;
        text-decoration: none !important;
        font-size: 14px !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
        flex: 1 !important;
        text-align: center !important;
        min-width: 120px !important;
    }
    
    .lfr_mfr4 a:hover {
        background: var(--bg-secondary, #f8f9fa) !important;
        color: var(--primary-color, #2c5aa0) !important;
    }
    
    .lfr_mfr4 a.lr_cdf {
        background: var(--primary-color, #2c5aa0) !important;
        color: white !important;
    }
    
    .lfr_mfr4 a.lr_cdf:hover {
        background: #1e4a7a !important;
        transform: translateY(-1px) !important;
    }
}

/* 注册页面移动端优化 */
@media (max-width: 768px) {
    .le_mer {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
        padding: 15px 0 !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        flex-wrap: wrap !important;
    }
    
    .le_mer span {
        position: relative !important;
        padding: 8px 15px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        min-width: 80px !important;
        text-align: center !important;
    }
    
    .le_mer span.active {
        background: var(--primary-color, #2c5aa0) !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2) !important;
    }
    
    .le_mer span:not(.active) {
        background: rgba(255, 255, 255, 0.8) !important;
        color: var(--text-secondary, #7f8c8d) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 表单输入框优化 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important; /* 防止iOS缩放 */
        border: 2px solid var(--border-color, #e9ecef) !important;
        border-radius: 8px !important;
        background: white !important;
        transition: all 0.3s ease !important;
        margin-bottom: 15px !important;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color, #2c5aa0) !important;
        box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1) !important;
        outline: none !important;
    }
    
    /* 提交按钮优化 */
    .btn-submit {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        background: var(--primary-color, #2c5aa0) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        min-height: 48px !important;
    }
    
    .btn-submit:hover {
        background: #1e4a7a !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2) !important;
    }
}

/* 移动端底部页面优化 - 1280px以下都使用移动端样式 */
@media (max-width: 1280px) {
    /* 底部页面整体优化 */
    .footer {
        padding: 20px 16px !important;
        background: #f8fafc !important;
        border-top: 1px solid #e5e7eb !important;
    }
    
    /* 底部内容区域 */
    .footer_tp {
        padding: 30px 0 !important;
    }
    
    /* 左侧logo和描述区域 */
    .oter_t_l {
        width: 100% !important;
        float: none !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .oter_t_l span {
        font-size: 24px !important;
        line-height: 32px !important;
        margin-bottom: 12px !important;
        color: #1f2937 !important;
    }
    
    .oter_t_l span img {
        height: 28px !important;
        width: auto !important;
        margin-right: 8px !important;
        vertical-align: middle !important;
    }
    
    .oter_t_l em {
        font-size: 14px !important;
        line-height: 22px !important;
        color: #6b7280 !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    /* 右侧导航区域 */
    .oter_t_r {
        width: 100% !important;
        float: none !important;
        margin-top: 0 !important;
    }
    
    .oter_t_r dl {
        margin-bottom: 15px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        justify-content: center !important;
    }
    
    .oter_t_r dl dd {
        width: calc(33.333% - 10px) !important;
        float: none !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    
    .oter_t_r dl dd span {
        font-size: 16px !important;
        line-height: 20px !important;
        margin-bottom: 8px !important;
        color: #374151 !important;
        font-weight: 600 !important;
    }
    
    .oter_t_r dl dd em a {
        font-size: 14px !important;
        line-height: 24px !important;
        color: #6b7280 !important;
        display: block !important;
        padding: 4px 0 !important;
    }
    
    .oter_t_r dl dd em a:hover {
        color: #3b82f6 !important;
    }
    
    /* 底部链接区域 */
    .oter_t_rb {
        font-size: 12px !important;
        color: #6b7280 !important;
        text-align: center !important;
        margin-top: 20px !important;
    }
    
    .oter_t_rb em {
        display: block !important;
        line-height: 20px !important;
        margin-bottom: 8px !important;
    }
    
    .oter_t_rb em a {
        font-size: 12px !important;
        color: #6b7280 !important;
        margin: 0 2px !important;
        display: inline-block !important;
        padding: 2px 4px !important;
    }
    
    .oter_t_rb em a:hover {
        color: #3b82f6 !important;
    }
    
    /* 版权信息 */
    .footer p {
        font-size: 12px !important;
        line-height: 18px !important;
        color: #9ca3af !important;
        text-align: center !important;
        padding: 15px 0 !important;
        border-top: 1px solid #e5e7eb !important;
        margin-top: 20px !important;
    }
}

/* 小屏幕进一步优化 - 480px以下 */
@media (max-width: 480px) {
    .footer {
        padding: 16px 12px !important;
    }
    
    .footer_tp {
        padding: 20px 0 !important;
    }
    
    .oter_t_l span {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    
    .oter_t_l span img {
        height: 24px !important;
    }
    
    .oter_t_l em {
        font-size: 13px !important;
        line-height: 20px !important;
    }
    
    .oter_t_r dl {
        gap: 10px !important;
    }
    
    .oter_t_r dl dd {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    
    .oter_t_r dl dd span {
        font-size: 15px !important;
    }
    
    .oter_t_r dl dd em a {
        font-size: 13px !important;
        line-height: 22px !important;
    }
    
    .oter_t_rb {
        font-size: 11px !important;
    }
    
    .oter_t_rb em a {
        font-size: 11px !important;
    }
    
    .footer p {
        font-size: 11px !important;
        line-height: 16px !important;
    }
}
