/* 信息页面（features, pricing, company）- 移动端响应式样式 */

/* ========================================
   平板设备 (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* 导航栏 */
    .navbar, .top-navbar {
        padding: 12px 24px !important;
    }
    
    .navbar-brand img {
        height: 44px !important;
    }
    
    .navbar-center {
        gap: 24px !important;
    }
    
    .navbar-center a {
        font-size: 0.9rem !important;
    }
    
    .navbar-right {
        gap: 16px !important;
    }
    
    /* 页面容器 */
    .page-container, .container {
        padding: 0 24px !important;
    }
    
    /* Hero区域 */
    .hero-section, .page-hero {
        padding: 100px 24px 60px !important;
    }
    
    .hero-title, .page-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle, .page-subtitle {
        font-size: 1.1rem !important;
    }
    
    /* 卡片网格 */
    .cards-grid, .pricing-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
    
    /* 内容区块 */
    .content-section {
        padding: 60px 24px !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}

/* ========================================
   手机设备 (小于768px)
   ======================================== */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar, .top-navbar {
        padding: 10px 16px !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand img {
        height: 36px !important;
    }
    
    .navbar-center,
    .nav-links {
        display: none !important;
    }
    
    .navbar-right {
        gap: 12px !important;
    }
    
    .btn-nav-primary, .btn-primary, .btn-nav {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .btn-nav-login {
        display: none !important;
    }
    
    /* 用户区域 */
    .user-name {
        display: none !important;
    }
    
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* 下拉菜单 - 底部弹出 */
    .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 20px 16px 32px !important;
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
        /* 不使用 !important，让 JS 可以控制 */
        transform: translateY(100%);
        opacity: 1;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s !important;
        background: #fff !important;
        border: none !important;
        box-shadow: 0 -10px 50px rgba(0,0,0,0.2) !important;
        z-index: 2000 !important;
    }
    
    .dropdown-menu.active {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* 下拉菜单顶部拖动条 */
    .dropdown-menu::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #E0E0E0;
        border-radius: 2px;
        margin: 0 auto 16px;
    }
    
    .dropdown-item {
        padding: 16px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .dropdown-item:active {
        background: #f0f0f0 !important;
    }
    
    /* 下拉菜单遮罩层 */
    .dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .dropdown-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero区域 */
    .hero-section, .page-hero {
        padding: 80px 16px 40px !important;
        min-height: auto !important;
    }
    
    .hero-title, .page-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle, .page-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .hero-actions a, .hero-actions button {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* 页面容器 */
    .page-container, .container {
        padding: 0 16px !important;
    }
    
    /* 内容区块 */
    .content-section {
        padding: 40px 16px !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 16px !important;
    }
    
    .section-subtitle {
        font-size: 0.95rem !important;
    }
    
    /* 卡片网格 - 单列 */
    .cards-grid, .pricing-grid, .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* 定价卡片 */
    .pricing-card {
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }
    
    .pricing-card .price {
        font-size: 2rem !important;
    }
    
    .pricing-card .plan-name {
        font-size: 1.2rem !important;
    }
    
    .pricing-card .feature-list {
        font-size: 0.9rem !important;
    }
    
    .pricing-card .feature-list li {
        padding: 8px 0 !important;
    }
    
    /* 功能卡片 */
    .feature-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }
    
    .feature-card h3 {
        font-size: 1.1rem !important;
    }
    
    .feature-card p {
        font-size: 0.9rem !important;
    }
    
    .feature-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.5rem !important;
    }
    
    /* 团队成员 */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .team-member {
        padding: 16px !important;
    }
    
    .team-member img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .team-member h4 {
        font-size: 1rem !important;
    }
    
    .team-member p {
        font-size: 0.85rem !important;
    }
    
    /* FAQ */
    .faq-item {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    .faq-question {
        font-size: 1rem !important;
    }
    
    .faq-answer {
        font-size: 0.9rem !important;
    }
    
    /* CTA区域 */
    .cta-section {
        padding: 40px 16px !important;
        border-radius: 16px !important;
        margin: 40px 16px !important;
    }
    
    .cta-title {
        font-size: 1.5rem !important;
    }
    
    .cta-subtitle {
        font-size: 0.95rem !important;
    }
    
    /* Footer */
    footer {
        padding: 40px 16px 30px !important;
    }
    
    .footer-content {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .footer-brand {
        max-width: 100% !important;
    }
    
    .footer-logo {
        font-size: 1.3rem !important;
    }
    
    .footer-desc {
        font-size: 0.9rem !important;
    }
    
    .footer-nav {
        flex-direction: column !important;
        gap: 24px !important;
        width: 100% !important;
    }
    
    .footer-column {
        gap: 12px !important;
    }
    
    .footer-column h4 {
        font-size: 0.9rem !important;
    }
    
    .footer-column a {
        font-size: 0.9rem !important;
    }
    
    .social-links {
        gap: 16px !important;
    }
    
    .social-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ========================================
   小屏手机 (小于480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-title, .page-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle, .page-subtitle {
        font-size: 0.9rem !important;
    }
    
    .section-title {
        font-size: 1.3rem !important;
    }
    
    .pricing-card .price {
        font-size: 1.75rem !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cta-title {
        font-size: 1.3rem !important;
    }
}

/* ========================================
   横屏模式优化
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section, .page-hero {
        padding: 60px 24px 30px !important;
        min-height: auto !important;
    }
    
    .hero-title, .page-title {
        font-size: 1.75rem !important;
    }
    
    .hero-actions {
        flex-direction: row !important;
    }
    
    .hero-actions a, .hero-actions button {
        width: auto !important;
    }
    
    .cards-grid, .pricing-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


/* ========================================
   视频详情页面特定样式
   ======================================== */
@media (max-width: 768px) {
    /* 视频详情页面 */
    .video-detail-container {
        flex-direction: column !important;
        padding: 16px !important;
        gap: 20px !important;
    }
    
    .video-player-section {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .video-player {
        border-radius: 16px !important;
    }
    
    .video-info-section {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .video-title {
        font-size: 1.3rem !important;
    }
    
    .video-meta {
        font-size: 0.85rem !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .video-actions {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .video-actions button {
        flex: 1 !important;
        min-width: 100px !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .video-description {
        font-size: 0.9rem !important;
        padding: 16px !important;
    }
    
    /* 相关视频 */
    .related-videos {
        padding: 16px !important;
    }
    
    .related-videos h3 {
        font-size: 1.1rem !important;
    }
    
    .related-video-item {
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    .related-video-thumbnail {
        width: 120px !important;
        height: 68px !important;
        flex-shrink: 0 !important;
    }
    
    .related-video-info h4 {
        font-size: 0.9rem !important;
    }
    
    .related-video-info p {
        font-size: 0.8rem !important;
    }
}

/* ========================================
   账户设置页面特定样式
   ======================================== */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column !important;
        padding: 16px !important;
        gap: 20px !important;
    }
    
    .settings-sidebar {
        width: 100% !important;
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e5ea !important;
        padding-bottom: 16px !important;
    }
    
    .settings-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .settings-menu-item {
        white-space: nowrap !important;
        padding: 10px 16px !important;
        border-radius: 20px !important;
        background: #f5f5f7 !important;
        font-size: 0.9rem !important;
    }
    
    .settings-menu-item.active {
        background: #000 !important;
        color: #fff !important;
    }
    
    .settings-content {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .settings-section {
        padding: 20px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .settings-section h2 {
        font-size: 1.2rem !important;
    }
    
    .form-group {
        margin-bottom: 16px !important;
    }
    
    .form-group label {
        font-size: 0.9rem !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }
    
    .avatar-upload {
        width: 100px !important;
        height: 100px !important;
    }
    
    .btn-save {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1rem !important;
    }
}

/* ========================================
   积分历史页面特定样式
   ======================================== */
@media (max-width: 768px) {
    .credits-container {
        padding: 16px !important;
    }
    
    .credits-header {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: flex-start !important;
    }
    
    .credits-balance {
        width: 100% !important;
        padding: 20px !important;
        border-radius: 16px !important;
    }
    
    .balance-value {
        font-size: 2rem !important;
    }
    
    .balance-label {
        font-size: 0.9rem !important;
    }
    
    .credits-actions {
        width: 100% !important;
    }
    
    .credits-actions button {
        width: 100% !important;
        padding: 14px !important;
    }
    
    .history-list {
        padding: 0 !important;
    }
    
    .history-item {
        padding: 16px !important;
        border-radius: 12px !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    
    .history-item-info {
        width: 100% !important;
    }
    
    .history-item-amount {
        font-size: 1.1rem !important;
    }
    
    .history-item-desc {
        font-size: 0.9rem !important;
    }
    
    .history-item-date {
        font-size: 0.8rem !important;
    }
    
    /* 筛选器 */
    .filter-bar {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .filter-bar select {
        width: 100% !important;
        padding: 12px !important;
    }
}

/* ========================================
   管理员面板特定样式
   ======================================== */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column !important;
    }
    
    .admin-sidebar {
        width: 100% !important;
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e5ea !important;
        padding: 12px 16px !important;
    }
    
    .admin-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .admin-menu-item {
        white-space: nowrap !important;
        padding: 10px 16px !important;
        border-radius: 20px !important;
        font-size: 0.85rem !important;
    }
    
    .admin-content {
        padding: 16px !important;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .admin-stat-card {
        padding: 16px !important;
    }
    
    .admin-stat-value {
        font-size: 1.5rem !important;
    }
    
    .admin-table {
        font-size: 0.85rem !important;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px !important;
    }
    
    /* 表格横向滚动 */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .admin-table {
        min-width: 600px !important;
    }
}


/* ========================================
   图片详情页面特定样式
   ======================================== */
@media (max-width: 768px) {
    /* 图片详情页面 */
    .detail-container {
        padding: 80px 16px 40px !important;
    }
    
    /* 图片预览区域 */
    .image-preview-section {
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }
    
    .image-wrapper {
        min-height: 280px !important;
        max-height: 50vh !important;
        padding: 16px !important;
    }
    
    .image-wrapper img {
        max-height: 45vh !important;
        border-radius: 10px !important;
    }
    
    /* 操作按钮 */
    .action-buttons {
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 16px !important;
    }
    
    .action-btn {
        flex: 1 !important;
        min-width: 120px !important;
        padding: 14px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
        justify-content: center !important;
    }
    
    /* 信息卡片 */
    .info-section {
        padding: 20px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .info-header {
        margin-bottom: 16px !important;
    }
    
    .info-title {
        font-size: 1rem !important;
    }
    
    /* 标题 */
    .image-title-section {
        margin-bottom: 16px !important;
    }
    
    .image-title {
        font-size: 1.2rem !important;
    }
    
    /* 参数网格 */
    .params-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .param-item {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .param-label {
        font-size: 0.75rem !important;
    }
    
    .param-value {
        font-size: 0.9rem !important;
    }
    
    /* 提示词区域 */
    .prompt-section {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    .prompt-text {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .copy-btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* 返回按钮 */
    .btn-back {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .detail-container {
        padding: 70px 12px 30px !important;
    }
    
    .image-wrapper {
        min-height: 220px !important;
        padding: 12px !important;
    }
    
    .action-buttons {
        flex-direction: column !important;
    }
    
    .action-btn {
        width: 100% !important;
    }
    
    .params-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .image-title {
        font-size: 1.1rem !important;
    }
}
