/* 主体样式 - 简化版 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0f0f15;
    color: #e0e0e0;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 导航间距样式 */
.pc-nav-spacing {
    margin: 0 15px 15px 15px;
}

.mobile-nav-spacing {
    margin: 0 10px 15px 10px;
}

@media (min-width: 768px) {
    .pc-nav-spacing {
        margin: 0 20px 20px 20px;
    }
}

/* 手机端导航栏优化 */
@media (max-width: 767px) {
    /* 导航栏上下间距优化 */
    .bg-dark.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* 导航项间距优化 */
    .mobile-nav-spacing {
        margin: 0 8px 12px 8px;
    }
    
    /* 导航容器间距优化 */
    .d-flex.justify-content-center.flex-wrap {
        gap: 2px !important;
    }
    
    /* 导航图标优化 */
    .nav-item-custom .rounded-circle {
        width: 55px !important;
        height: 55px !important;
    }
    
    /* 图标与文字间距优化 */
    .nav-item-custom .rounded-circle.mb-2 {
        margin-bottom: 0.5rem !important;
    }
    
    /* 导航文字大小优化 */
    .nav-item-custom .small {
        font-size: 0.75rem !important;
    }
}

/* 超小屏导航优化 */
@media (max-width: 480px) {
    /* 导航栏上下间距进一步优化 */
    .bg-dark.py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* 导航项间距进一步优化 */
    .mobile-nav-spacing {
        margin: 0 6px 10px 6px;
    }
    
    /* 导航容器间距进一步优化 */
    .d-flex.justify-content-center.flex-wrap {
        gap: 1px !important;
    }
    
    /* 导航图标进一步优化 */
    .nav-item-custom .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* 图标与文字间距进一步优化 */
    .nav-item-custom .rounded-circle.mb-2 {
        margin-bottom: 0.4rem !important;
    }
    
    /* 导航文字大小进一步优化 */
    .nav-item-custom .small {
        font-size: 0.7rem !important;
    }
}

/* 广告位样式优化 */
.ad-section {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.ad-section:hover .ad-banner {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 广告位标准尺寸 - 统一按照顶部横幅广告样式 */
.ad-banner {
    transition: all 0.3s ease;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(78, 236, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* GIF图片支持 */
.ad-banner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.ad-banner:hover img {
    transform: scale(1.02);
}

.ad-banner a img {
    text-decoration: none;
    border: none;
    outline: none;
}

.ad-banner .card-body {
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner .bg-gradient-to-r {
    background: linear-gradient(135deg, #4eecff, #3498db);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem; /* 统一使用与顶部横幅相同的内边距 */
}

.ad-section:hover .ad-banner .bg-gradient-to-r {
    background: linear-gradient(135deg, #3498db, #4eecff);
}

/* 响应式广告位 */
@media (max-width: 768px) {
    .ad-section {
        margin-bottom: 1.5rem !important;
    }
    
    .ad-banner {
        border-radius: 8px;
    }
    
    .ad-banner h6,
    .ad-banner h5 {
        font-size: 0.9rem;
    }
    
    .ad-banner p {
        font-size: 0.75rem;
    }
    
    .ad-banner .bg-gradient-to-r {
        padding: 1.25rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .ad-section {
        margin-bottom: 1.25rem !important;
    }
    
    .ad-banner h6,
    .ad-banner h5 {
        font-size: 0.85rem;
    }
    
    .ad-banner p {
        font-size: 0.7rem;
    }
    
    .ad-banner .bg-gradient-to-r {
        padding: 1rem 0.5rem;
    }
}

/* 文章卡片布局 - 每排3个 */
.card-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.card-group .col {
    width: 100%;
    padding: 0;
}

/* 响应式文章布局 */
@media (max-width: 1024px) {
    .card-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .card-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .card-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 文章卡片尺寸适配 */
.home-icon-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 236, 255, 0.2);
    background: rgba(26, 26, 26, 0.7);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 内容区块样式 */
.content-section {
    transition: all 0.3s ease;
}

/* 广告位主题色变化 */
.ad-section:nth-child(2) .bg-gradient-to-r {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.ad-section:nth-child(2):hover .bg-gradient-to-r {
    background: linear-gradient(135deg, #ff8c00, #ffd700);
}

.ad-section:nth-child(4) .bg-gradient-to-r {
    background: linear-gradient(135deg, #4eecff, #ff4e4e);
}

.ad-section:nth-child(4):hover .bg-gradient-to-r {
    background: linear-gradient(135deg, #ff4e4e, #4eecff);
}

/* 广告位动画效果 */
@keyframes adPulse {
    0% { opacity: 1; }
    50% { opacity: 0.95; }
    100% { opacity: 1; }
}

.ad-section {
    animation: adPulse 4s ease-in-out infinite;
}

/* 加载状态样式 */
.ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* 确保广告位与整体风格一致 */
.ad-section {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    /* 移动端优化广告位 */
    .ad-section {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .ad-banner {
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .ad-section:hover .ad-banner {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
}

/* 动态背景 - 移动端简化 */
#dynamicBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
}

/* 移动端禁用动态背景动画以提高性能 */
@media (max-width: 768px) {
    #dynamicBackground {
        animation: none;
        background-size: 100% 100%;
        background-position: center;
    }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 粒子动画容器 - 移动端简化 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 移动端禁用复杂动画以提高性能 */
@media (max-width: 768px) {
    #particles-js {
        display: none;
    }
}

/* 页面标题 */
.display-4 {
    font-weight: bold;
    color: #4eecff;
    text-shadow: 0 0 5px rgba(78, 236, 255, 0.5);
    word-wrap: break-word;
}

/* 移动端标题大小调整 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.85rem;
    }
}

.lead {
    color: #a0a0c0;
}

/* 卡片样式 - 简化版 */
.card {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(78, 236, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem;
    }
}

.card-title {
    color: #4eecff;
}

.card-text {
    color: #c0c0d0;
}

/* 按钮样式 - 简化版 */
.btn-primary {
    background: #4eecff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.btn-info {
    background: #3498db;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.btn-warning {
    background: #f39c12;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* 首页内容图标样式 */
.home-icon-card {
    text-align: center;
    padding: 15px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(78, 236, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    height: 100%;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .home-icon-card {
        padding: 12px;
    }
}

.home-icon-title {
    color: #4eecff;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .home-icon-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}

.home-icon-text {
    color: #c0c0d0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 60px;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .home-icon-text {
        font-size: 0.8rem;
        margin-bottom: 10px;
        min-height: 50px;
    }
}

/* 广告位样式 */
.ad-banner .card,
.ad-bottom .card,
.ad-sidebar .card {
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* 首页网格容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* 卡片组 */
.card-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* 页脚样式 */
footer {
    background: rgba(15, 15, 25, 0.9);
    border-top: 1px solid rgba(78, 236, 255, 0.2);
    margin-top: auto;
    padding: 1rem 0;
}

/* 移动端综合优化 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .mt-4 {
        margin-top: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .pt-5 {
        padding-top: 2rem !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

    /* 移动端优化 */
    will-change: box-shadow;
}

/* 移动端禁用动画 */
@media (max-width: 768px) {
    .home-icon-badge {
        animation: none;
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* 广告位样式 */
.ad-banner,
.ad-bottom {
    grid-column: span 2;
}

.ad-sidebar {
    grid-column: span 2;
}

.ad-banner .card,
.ad-bottom .card,
.ad-sidebar .card {
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .ad-banner .card,
    .ad-bottom .card,
    .ad-sidebar .card {
        transition: none;
    }
    
    .ad-banner .card:hover,
    .ad-bottom .card:hover,
    .ad-sidebar .card:hover {
        transform: none;
        border-color: rgba(255, 215, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

.ad-banner .card:hover,
.ad-bottom .card:hover,
.ad-sidebar .card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

/* 首页网格容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 卡片组 - 实现双栏对称布局 */
.card-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* 页脚样式 */
footer {
    background: rgba(15, 15, 25, 0.9) !important;
    /* 移动端移除backdrop-filter以提高性能 */
    border-top: 1px solid rgba(78, 236, 255, 0.2);
    margin-top: auto;
}

/* 移动端综合优化 - 合并所有768px以下的媒体查询 */
@media (max-width: 768px) {
    /* 基础元素优化 */
    #dynamicBackground {
        animation-duration: 30s;
    }
    
    #particles-js {
        display: none;
    }
    
    .display-4 {
        font-size: 2rem;
        text-shadow: 0 0 5px rgba(78, 236, 255, 0.5);
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* 导航栏优化 */
    .navbar {
        backdrop-filter: none;
    }
    
    /* 卡片系统优化 */
    .card {
        transition: none;
    }
    
    .card::before {
        display: none;
    }
    
    .card:hover {
        transform: none;
        border-color: rgba(78, 236, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    /* 按钮系统优化 */
    .btn-primary {
        transition: none;
    }
    
    .btn-primary::after {
        display: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(78, 236, 255, 0.4);
    }
    
    .btn-info {
        transition: none;
    }
    
    .btn-info:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    }
    
    /* 徽章和动画优化 */
    .new-badge {
        animation: none;
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .home-icon-badge {
        animation: none;
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    /* 图标和卡片系统优化 */
    .play-button {
        transition: none;
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .play-button:hover {
        transform: translate(-50%, -50%);
        box-shadow: 0 0 20px rgba(78, 236, 255, 0.5);
    }
    
    .home-icon-card {
        transition: none;
        padding: 15px;
    }
    
    .home-icon-card:hover {
        transform: none;
        border-color: rgba(78, 236, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .home-icon {
        width: 100px;
        height: 100px;
        transition: none;
        margin-bottom: 10px;
    }
    
    .home-icon:hover {
        transform: scale(1);
        border-color: rgba(78, 236, 255, 0.3);
        box-shadow: 0 0 20px rgba(78, 236, 255, 0.3);
    }
    
    .home-icon-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .home-icon-text {
        font-size: 0.8rem;
        margin-bottom: 10px;
        min-height: 50px;
    }
    
    /* 广告系统优化 */
    .ad-banner .card,
    .ad-bottom .card,
    .ad-sidebar .card {
        transition: none;
    }
    
    .ad-banner .card:hover,
    .ad-bottom .card:hover,
    .ad-sidebar .card:hover {
        transform: none;
        border-color: rgba(255, 215, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    /* 页脚优化 */
    footer {
        backdrop-filter: none;
    }
    
    /* 布局系统优化 */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .ad-banner,
    .ad-bottom,
    .ad-sidebar {
        grid-column: span 1;
    }
    
    /* 间距和容器优化 */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .mt-4 {
        margin-top: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .pt-5 {
        padding-top: 2rem !important;
    }
    
    /* 文章图标系统优化 */
    .article-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .article-icon:hover,
    .category-icon:hover,
    .card:hover .card-article-icon {
        transform: none;
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(78, 236, 255, 0.3);
    }
    
    .card-article-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: -15px;
        left: 15px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    /* 众筹系统优化 */
    .payment-method {
        margin-bottom: 15px;
    }
    
    .reward-tier {
        margin-bottom: 15px;
    }
    
    .upload-area {
        padding: 15px;
    }
    
    .preview-image {
        max-height: 150px;
    }
    
    /* 超小屏幕优化 */
    @media (max-width: 480px) {
        .article-icon {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }
        
        .card-article-icon {
            width: 40px;
            height: 40px;
            font-size: 1rem;
            top: -10px;
            left: 10px;
        }
        
        .category-icon {
            width: 45px;
            height: 45px;
            font-size: 1.1rem;
        }
        
        .home-icon {
            width: 80px;
            height: 80px;
        }
        
        .home-icon-title {
            font-size: 0.9rem;
        }
        
        .home-icon-text {
            font-size: 0.75rem;
            min-height: 40px;
        }
        
        .btn-sm {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .home-icon {
        width: 80px;
        height: 80px;
    }
    
    .home-icon-title {
        font-size: 0.9rem;
    }
    
    .home-icon-text {
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* iOS设备优化 */
.ios-device .home-icon-card,
.ios-device .card,
.ios-device .btn {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    -webkit-transform: translate3d(0,0,0);
}

.ios-device .navbar {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Android设备优化 */
.android-device .home-icon-card,
.android-device .card,
.android-device .btn {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    will-change: transform;
}

.android-device .play-button {
    -webkit-transform: translate(-50%, -50%) translateZ(0);
    -webkit-transform: translate3d(-50%,-50%,0);
}

/* 鸿蒙系统优化 */
.harmony-device .home-icon-card,
.harmony-device .card,
.harmony-device .btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    will-change: transform;
}

.harmony-device .play-button {
    transform: translate(-50%, -50%) translateZ(0);
    transform: translate3d(-50%,-50%,0);
}

/* 针对不同设备的优化类 */
.ios-optimized,
.android-optimized,
.harmony-optimized {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

/* 针对触摸设备的优化 */
@media (hover: none) and (pointer: coarse) {
    .home-icon-card:hover,
    .card:hover,
    .btn:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .btn-primary:hover,
    .btn-info:hover,
    .btn-warning:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(78, 236, 255, 0.4);
    }
    
    .home-icon:hover {
        transform: scale(1);
        border-color: rgba(78, 236, 255, 0.3);
        box-shadow: 0 0 20px rgba(78, 236, 255, 0.3);
    }
    
    .play-button:hover {
        transform: translate(-50%, -50%);
        box-shadow: 0 0 20px rgba(78, 236, 255, 0.5);
    }
    
    /* 触摸设备上的动画优化 */
    .home-icon-card,
    .card,
    .btn {
        transition: none;
        animation-duration: 0s !important;
    }
}

/* 会员套餐卡片样式 */
.pricing-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 236, 255, 0.2);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 236, 255, 0.5);
    box-shadow: 0 12px 40px rgba(78, 236, 255, 0.3);
}

.pricing-card.featured::before {
    content: "推荐";
    position: absolute;
    top: 15px;
    right: -30px;
    background: #4eecff;
    color: #0f0f15;
    padding: 3px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card .btn {
    border-radius: 30px;
}

/* 打赏金额选择样式 */
.reward-amount {
    cursor: pointer;
    transition: all 0.2s ease;
}

.reward-amount:hover {
    transform: scale(1.05);
}

.reward-amount.active {
    border-color: #4eecff !important;
    box-shadow: 0 0 15px rgba(78, 236, 255, 0.5);
}

/* 二维码容器样式 */
.qr-code-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.qr-code-container.show {
    display: block;
}

/* 广告管理样式 */
.ad-management .nav-tabs .nav-link.active {
    background-color: #0f0f15;
    border-color: #4e4e5e #4e4e5e #0f0f15;
    color: #4eecff;
}

.ad-management .tab-pane {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(78, 236, 255, 0.2);
    border-top: none;
    padding: 20px;
    border-radius: 0 0 12px 12px;
}

.ad-management .form-control,
.ad-management .form-select {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(78, 236, 255, 0.2);
    color: #e0e0e0;
}

.ad-management .form-control:focus,
.ad-management .form-select:focus {
    background: rgba(15, 15, 25, 0.8);
    border-color: #4eecff;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.25rem rgba(78, 236, 255, 0.25);
}

/* 针对不同设备型号的特定优化 */

/* Android设备特定优化 */
@media screen and (min-width: 360px) and (max-width: 480px) {
    .android-device .home-icon {
        width: 90px;
        height: 90px;
    }
    
    .android-device .home-icon-title {
        font-size: 1rem;
    }
    
    .android-device .home-icon-text {
        font-size: 0.85rem;
        min-height: 45px;
    }
}

/* 针对大屏Android设备优化 */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .android-device .home-icon {
        width: 110px;
        height: 110px;
    }
    
    .android-device .grid-container {
        gap: 12px;
    }
}

/* iOS设备特定优化 */
@media screen and (min-width: 375px) and (max-width: 414px) {
    .ios-device .home-icon {
        width: 95px;
        height: 95px;
    }
    
    .ios-device .home-icon-title {
        font-size: 1rem;
    }
}

/* 针对大屏iPhone优化 (iPhone Plus系列) */
@media screen and (min-width: 415px) and (max-width: 768px) {
    .ios-device .home-icon {
        width: 110px;
        height: 110px;
    }
    
    .ios-device .grid-container {
        gap: 12px;
    }
}

/* 鸿蒙系统特定优化 */
@media screen and (min-width: 360px) and (max-width: 500px) {
    .harmony-device .home-icon {
        width: 90px;
        height: 90px;
    }
    
    .harmony-device .home-icon-title {
        font-size: 1rem;
    }
    
    .harmony-device .home-icon-text {
        font-size: 0.85rem;
        min-height: 45px;
    }
}

/* 针对鸿蒙大屏设备优化 */
@media screen and (min-width: 501px) and (max-width: 768px) {
    .harmony-device .home-icon {
        width: 110px;
        height: 110px;
    }
    
    .harmony-device .grid-container {
        gap: 12px;
    }
}

/* 文章图标系统 */
.article-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4eecff, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(78, 236, 255, 0.3);
    transition: all 0.3s ease;
    will-change: transform, box-shadow, border-color;
}

.article-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 30px rgba(78, 236, 255, 0.5);
}

/* 卡片文章图标样式 */
.card-article-icon {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4eecff, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(78, 236, 255, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
    will-change: transform, box-shadow, border-color;
}

.card:hover .card-article-icon {
    transform: scale(1.1) rotate(10deg);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 25px rgba(78, 236, 255, 0.5);
}

/* 分类页面图标样式 */
.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b59b6, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
    transition: all 0.3s ease;
    will-change: transform, box-shadow, border-color;
}

.category-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.5);
}

/* 图标容器样式 */
.icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* 现代化UI改进 - 新添加的样式 */

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 现代化卡片阴影 */
.card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* 现代化按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 渐变背景效果 */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 现代化导航栏 */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(15, 15, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 现代化输入框 */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4eecff;
    box-shadow: 0 0 0 3px rgba(78, 236, 255, 0.1);
}

/* 现代化进度条 */
.progress {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #4eecff, #3498db);
}

/* 现代化加载动画 */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #4eecff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 现代化卡片网格布局 */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* 现代化阴影效果 */
.shadow-custom {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 现代化滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 236, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 236, 255, 0.8);
}

/* 现代化悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 现代化渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #4eecff 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端图标优化 */
@media (max-width: 768px) {
    .article-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .card-article-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: -15px;
        left: 15px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    /* 移动端简化动画 */
    .article-icon:hover,
    .category-icon:hover,
    .card:hover .card-article-icon {
        transform: none;
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(78, 236, 255, 0.3);
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .article-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .card-article-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -10px;
        left: 10px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* 移动端性能优化 */

/* 针对低端Android设备的优化 */
@media screen and (max-width: 480px) {
    /* 禁用复杂阴影和渐变以提高渲染性能 */
    .android-device .card,
    .android-device .home-icon-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        background: #1e1e2e;
        border: 1px solid #4e4e5e;
    }
    
    .android-device .btn-primary,
    .android-device .btn-info {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    /* 简化动画 */
    .android-device .home-icon:hover,
    .android-device .home-icon-card:hover {
        transform: none;
        transition: none;
    }
}

/* 针对iOS设备的优化 */
@media screen and (max-width: 768px) {
    /* 强制硬件加速 */
    .ios-device .home-icon-card,
    .ios-device .card,
    .ios-device .btn {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000;
        -webkit-transform: translate3d(0,0,0);
    }
    
    /* 优化iOS上的固定定位 */
    .ios-device .navbar.fixed-top {
        position: sticky;
        position: -webkit-sticky;
    }
}

/* 针对鸿蒙系统的优化 */
@media screen and (max-width: 768px) {
    .harmony-device .home-icon-card,
    .harmony-device .card,
    .harmony-device .btn {
        transform: translateZ(0);
        backface-visibility: hidden;
        transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    /* 简化复杂效果 */
    .harmony-device .card::before {
        display: none;
    }
}

/* 加载性能优化 */
.progressive-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progressive-load.loaded {
    opacity: 1;
}

/* 关键资源预加载提示 */
.resource-preloading::before {
    content: "正在优化加载...";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4eecff, #3498db);
    z-index: 9999;
    animation: preloadProgress 1s infinite linear;
}

@keyframes preloadProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 众筹页面样式 */
.crowdfunding-progress {
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.crowdfunding-progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #4eecff, #3498db);
    border-radius: 15px;
    transition: width 0.5s ease;
}

.payment-method {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(78, 236, 255, 0.3);
}

.payment-method:hover {
    border-color: #4eecff;
    box-shadow: 0 0 15px rgba(78, 236, 255, 0.3);
}

.payment-method.active {
    border-color: #4eecff;
    background: rgba(78, 236, 255, 0.1);
}

.upload-area {
    border: 2px dashed rgba(78, 236, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #4eecff;
    background: rgba(78, 236, 255, 0.05);
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

.reward-tier {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(78, 236, 255, 0.2);
}

.reward-tier:hover, .reward-tier.active {
    border-color: #4eecff;
    box-shadow: 0 0 15px rgba(78, 236, 255, 0.2);
    transform: translateY(-5px);
}

/* 移动端众筹页面优化 */
@media (max-width: 768px) {
    .payment-method {
        margin-bottom: 15px;
    }
    
    .reward-tier {
        margin-bottom: 15px;
    }
    
    .upload-area {
        padding: 15px;
    }
    
    .preview-image {
        max-height: 150px;
    }
}

/* 服务卡片样式 */
.service-card {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(78, 236, 255, 0.2);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(78, 236, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 236, 255, 0.5);
    box-shadow: 0 12px 40px rgba(78, 236, 255, 0.3);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #4eecff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(78, 236, 255, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(78, 236, 255, 0.5);
}

.service-card h5 {
    color: #4eecff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-card p {
    color: #a0a0c0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 移动端优化服务卡片 */
@media (max-width: 768px) {
    .service-card {
        transition: none;
        margin-bottom: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card::before {
        display: none;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-icon:hover {
        transform: none;
    }
    
    .service-card h5 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
}

/* 移动端全面优化 */
@media (max-width: 768px) {
    /* 基础布局优化 */
    body {
        font-size: 14px;
        line-height: 1.5;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* 导航栏优化 */
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        font-weight: bold;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(78, 236, 255, 0.1);
    }
    
    /* 卡片优化 */
    .card {
        margin-bottom: 1rem;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* 按钮优化 - 触摸友好 */
    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }
    
    /* 表单优化 - 触摸友好 */
    .form-control {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    /* 图片优化 */
    img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* 模态框优化 */
    .modal-dialog {
        margin: 0.5rem;
        max-width: 100%;
    }
    
    .modal-content {
        border-radius: 12px;
        border: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    
    .modal-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    /* 文本优化 */
    h1 {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        font-weight: 700;
    }
    
    h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    h4 {
        font-size: 1.25rem;
        font-weight: 600;
    }
    
    h5 {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* 页脚优化 */
    footer {
        font-size: 0.85rem;
        padding: 1.5rem 0;
        text-align: center;
    }
    
    /* 表格优化 */
    .table {
        font-size: 0.85rem;
        overflow-x: auto;
        display: block;
    }
    
    /* 禁用部分动画以提高性能 */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* 禁用所有复杂动画 */
    .service-card::before,
    .service-card:hover .service-icon,
    .card::before,
    .btn::after,
    .home-icon-card:hover,
    .home-icon:hover,
    .play-button:hover,
    .article-icon:hover,
    .category-icon:hover,
    .card:hover .card-article-icon {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* 优化滚动性能 */
    .container, .row, .col {
        will-change: auto;
    }
    
    /* 触摸优化 */
    .btn, .nav-link, .form-control, .card, .service-card, .payment-method, .reward-tier {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }
    
    /* 减少重绘区域 */
    .fixed-top, .sticky-top {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    /* 优化字体渲染 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 优化点击区域 */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 优化导航项 */
    .nav-item-custom {
        margin: 0.5rem;
    }
    
    .nav-item-custom a {
        display: block;
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    /* 优化卡片组布局 */
    .card-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* 优化网格布局 */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 优化广告位 */
    .ad-banner, .ad-bottom, .ad-sidebar {
        grid-column: span 1;
    }
    
    /* 优化间距 */
    .mt-4 { margin-top: 1.5rem !important; }
    .mb-4 { margin-bottom: 1.5rem !important; }
    .pt-5 { padding-top: 2rem !important; }
    
    /* 优化加载状态 */
    .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    /* 优化图片懒加载 */
    .lazy-image {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    /* 优化输入框焦点样式 */
    .form-control:focus {
        box-shadow: 0 0 0 3px rgba(78, 236, 255, 0.15);
    }
    
    /* 优化复选框和单选框 */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        cursor: pointer;
    }
    
    /* 优化链接样式 */
    a {
        color: #4eecff;
        text-decoration: none;
    }
    
    a:hover {
        color: #3498db;
        text-decoration: underline;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3.5rem;
    }
}

/* 性能优化相关样式 */

/* 图片懒加载样式 */
.lazy-image {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.lazy-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.lazy-image.loaded::before {
    display: none;
}

/* 优化滚动性能 */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 减少重排 */
.static-element {
    transform: translateZ(0);
    will-change: transform;
}

/* 触摸优化 */
.touch-optimized {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 字体优化 */
.font-optimized {
    font-display: swap;
}

/* 动画性能优化 */
.performant-animation {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 移动端横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        min-height: 50px;
    }
    
    .container {
        padding-top: 60px;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .form-control {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* 打印样式优化 */
@media print {
    .navbar,
    footer,
    .btn,
    .modal,
    .card.shadow {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* 移动端全面优化 */
@media (max-width: 768px) {
    /* 基础布局优化 */
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 导航栏优化 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* 卡片优化 */
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 按钮优化 */
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 6px;
    }
    
    /* 表单优化 */
    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 图片优化 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 模态框优化 */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    /* 文本优化 */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    /* 页脚优化 */
    footer {
        font-size: 0.8rem;
        padding: 1rem 0;
    }
    
    /* 表格优化 */
    .table {
        font-size: 0.8rem;
    }
    
    /* 禁用部分动画以提高性能 */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* 禁用某些复杂动画 */
    .service-card::before,
    .service-card:hover .service-icon {
        animation: none !important;
        transform: none !important;
    }
    
    /* 优化滚动性能 */
    .container, .row, .col {
        will-change: auto;
    }
    
    /* 触摸优化 */
    .btn, .nav-link, .form-control {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 减少重绘区域 */
    .fixed-top {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* 优化字体渲染 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3.5rem;
    }
}

/* 性能优化相关样式 */

/* 图片懒加载样式 */
.lazy-image {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.lazy-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.lazy-image.loaded::before {
    display: none;
}

/* 优化滚动性能 */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 减少重排 */
.static-element {
    transform: translateZ(0);
    will-change: transform;
}

/* 触摸优化 */
.touch-optimized {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 字体优化 */
.font-optimized {
    font-display: swap;
}

/* 动画性能优化 */
.performant-animation {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 移动端横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        min-height: 50px;
    }
    
    .container {
        padding-top: 60px;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .form-control {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* 打印样式优化 */
@media print {
    .navbar,
    footer,
    .btn,
    .modal,
    .card.shadow {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}