/* ===================================
   首页移动端特殊样式
   index.html 专用移动端优化
   =================================== */

/* === 平板尺寸优化 (992px以下) === */
@media screen and (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    .platform-grid, 
    .payment-methods {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

/* === 中等屏幕优化 (1200px以下) === */
@media screen and (max-width: 1200px) {
    /* 中等屏幕下保持较大字体，移动端768px以下才使用策略文档规范 */
    .hero-content h1 {
        font-size: 3.5rem !important;
    }
    
    .section-title {
        font-size: 2.2rem !important;
    }
}

@media screen and (max-width: 768px) {
    
    /* === 首页字体大小强制重置（优先级最高） === */
    /* 覆盖PC端的所有字体设置，确保移动端使用策略文档规范 */
    
    /* Hero标题强制重置 */
    .hero-title,
    .hero h1,
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    /* Section标题强制重置 */
    .section-title,
    h2 {
        font-size: 1.3rem !important;
    }
    
    /* h3标题强制重置 */
    h3 {
        font-size: 1.0rem !important;
    }
    
    /* h4标题强制重置 */
    h4 {
        font-size: 1.0rem !important;
    }
    
    /* 内容文本强制重置 */
    p {
        font-size: 0.8rem !important;
    }
    
    /* === 首页Hero区域特殊优化 === */
    
    .hero {
        background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    }
    
    .hero-title {
        background: linear-gradient(135deg, #E0B8A0, #C09A82);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
        /* 字体大小已在上方统一设置 */
    }
    
    /* === 首页图片内容区域优化 === */
    
    /* 确保首页content-section图片不会超出屏幕 */
    .content-section .content-image-box .image-placeholder {
        border-radius: 8px !important; /* 移动端使用较小的圆角 */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        transition: transform 0.3s ease !important;
    }
    
    /* 移动端禁用复杂的悬停效果 */
    .content-image-box:hover .image-placeholder {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    }
    
    .content-image-box:hover .image-placeholder::before {
        opacity: 0 !important;
        transform: none !important;
    }

    /* === 品牌对比区域优化 === */
    
    #brand-comparison {
        background: #050505;
        position: relative;
    }
    
    #brand-comparison::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, rgba(224, 184, 160, 0.03) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .comparison-grid {
        gap: 2rem !important;
    }
    
    .brand-card {
        position: relative;
        background: linear-gradient(145deg, #1c1c1c, #111) !important;
        border: 1px solid rgba(224, 184, 160, 0.2) !important;
        padding: 2rem !important;
        overflow: hidden;
    }
    
    .brand-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(224, 184, 160, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .brand-card[data-brand="2028"] .brand-logo {
        color: var(--primary-color, #E0B8A0);
        font-size: 1.3rem !important; /* 遵循Section标题规范 */
        margin-bottom: 1rem;
    }
    
    .brand-card[data-brand="qiusu"] .brand-logo {
        color: var(--secondary-color, #b0a497);
        font-size: 1.3rem !important; /* 遵循Section标题规范 */
        margin-bottom: 1rem;
    }
    
    .brand-card ul {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0;
        text-align: left;
    }
    
    .brand-card ul li {
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        padding-left: 0;
    }
    
    .brand-card ul li i {
        color: var(--primary-color, #E0B8A0);
        margin-right: 10px;
        font-size: 0.9rem;
        width: 16px;
        flex-shrink: 0;
    }
    
    .brand-card[data-brand="qiusu"] ul li i {
        color: var(--secondary-color, #b0a497);
    }
    
    /* === 特色功能区域优化 === */
    
    #features {
        background: #000;
        position: relative;
    }
    
    .features-grid-vertical {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .feature-card-vertical {
        width: 100% !important;
        max-width: 350px;
        height: auto !important;
        padding: 2rem 1.5rem !important;
        background: linear-gradient(145deg, #1c1c1c, #111);
        border: 1px solid rgba(224, 184, 160, 0.15);
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .feature-content {
        text-align: center;
    }
    
    .feature-icon-circle {
        width: 80px !important;
        height: 80px !important;
        background: rgba(224, 184, 160, 0.1);
        border: 2px solid rgba(224, 184, 160, 0.3);
        align-self: center;
        margin: 0;
    }
    
    .feature-icon-circle i {
        font-size: 2.5rem !important;
        color: var(--primary-color, #E0B8A0);
    }
    
    .feature-card-vertical:hover .feature-icon-circle {
        background: var(--primary-color, #E0B8A0);
        border-color: var(--primary-color, #E0B8A0);
        transform: scale(1.1);
    }
    
    .feature-card-vertical:hover .feature-icon-circle i {
        color: #000;
    }
    
    /* === 产品标签区域优化 === */
    
    #products {
        background: #050505;
    }
    
    .product-tabs-container {
        max-width: 100%;
        margin: 0;
    }
    
    /* 移动端产品标签导航 - 横向单排4个按钮 */
    .product-tabs-nav {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 25px;
        padding: 0.5rem;
        display: flex;
        flex-wrap: nowrap !important;
        gap: 0.4rem;
        justify-content: space-between;
        margin-bottom: 2rem;
    }
    
    .tab-link {
        background: transparent;
        border: none;
        color: #ccc;
        padding: 0.6rem 0.5rem !important;
        border-radius: 20px;
        transition: all 0.3s ease;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: auto;
        max-width: none;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .tab-link.active,
    .tab-link:hover {
        background: var(--primary-color, #E0B8A0) !important;
        color: #000 !important;
        box-shadow: 0 0 15px rgba(224, 184, 160, 0.3);
        transform: translateY(-2px);
    }
    
    .product-tabs-content {
        background: linear-gradient(145deg, #1c1c1c, #111) !important;
        border: 1px solid rgba(224, 184, 160, 0.2);
        border-radius: 15px;
        padding: 2rem 1.5rem !important;
        min-height: auto;
    }
    
    .tab-content-inner {
        display: flex;
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    
    .tab-media {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        order: 1;
    }
    
    .tab-media img {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: 250px;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .tab-description {
        order: 2;
        text-align: center;
    }
    
    .tab-description h3 {
        color: var(--primary-color, #E0B8A0) !important;
        margin-bottom: 1rem;
    }
    
    .tab-description p {
        margin-bottom: 2rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* === 技术优势区域优化 === */
    
    #tech {
        background: #000;
        position: relative;
    }
    
    #tech::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 70% 30%, rgba(224, 184, 160, 0.04) 0%, transparent 60%);
        pointer-events: none;
    }
    
    .tech-grid {
        gap: 2rem !important;
    }
    
    .tech-item {
        background: linear-gradient(145deg, #1c1c1c, #111) !important;
        border: 1px solid rgba(224, 184, 160, 0.15);
        padding: 2rem !important;
        position: relative;
        overflow: hidden;
    }
    
    .tech-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(224, 184, 160, 0.03) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .tech-item .icon {
        font-size: 3rem !important;
        color: var(--primary-color, #E0B8A0);
        margin-bottom: 1.5rem;
        display: block;
        text-shadow: 0 0 20px rgba(224, 184, 160, 0.3);
    }
    
    .tech-item h3 {
        color: #fff !important;
        margin-bottom: 1rem;
    }
    
    .tech-item p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* === 社会责任区域优化 === */
    
    .dark-section {
        background: #000 !important;
        position: relative;
    }
    
    .dark-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, rgba(224, 184, 160, 0.02) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .large-text {
        max-width: 100%;
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    /* === 首页新闻区域移动端优化 === */
    
    /* 首页新闻网格 - 移动端2x2布局 */
    #latest-news .news-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-bottom: 2rem;
    }
    
    /* 首页新闻项目样式优化 */
    #latest-news .news-item {
        background: linear-gradient(145deg, #1c1c1c, #111) !important;
        border: 1px solid rgba(224, 184, 160, 0.15) !important;
        border-radius: 12px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 180px !important;
        overflow: hidden !important;
        position: relative !important;
        cursor: pointer !important;
    }
    
    
    /* 新闻内容区域 */
    #latest-news .news-item .news-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 0.75rem !important;
    }
    
    /* 新闻标题 */
    #latest-news .news-item h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.3rem !important;
        color: #fff !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    #latest-news .news-item .news-image {
        flex: 0 0 120px !important;
        width: 180px !important;
        height: 120px !important;
        margin-right: 0;
        border-radius: 12px 0 0 12px;
        overflow: hidden;
        position: relative;
    }
    
    #latest-news .news-item .news-image img {
        width: 180px;
        height: 120px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    #latest-news .news-item:hover .news-image img {
        transform: scale(1.05);
    }
    
    /* 新闻摘要 */
    #latest-news .news-item p:not(.date) {
        font-size: 0.6rem !important;
        line-height: 1.3 !important;
        color: rgba(255, 255, 255, 0.6) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 0.5rem !important;
        flex: 1 !important;
    }
    
    /* 阅读更多按钮 */
    #latest-news .news-item .read-more {
        font-size: 0.6rem !important;
        color: var(--primary-color, #E0B8A0) !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        align-self: flex-start !important;
        padding: 0.2rem 0.5rem !important;
        border: 1px solid rgba(224, 184, 160, 0.3) !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
        margin-top: auto !important;
    }
    
    #latest-news .news-item .read-more:hover {
        background: var(--primary-color, #E0B8A0) !important;
        color: #000 !important;
        transform: translateY(-1px) !important;
    }
    
    /* 新闻覆盖层 */
    #latest-news .news-item-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 10 !important;
        text-decoration: none !important;
        color: transparent !important;
    }
    
    /* 新闻项目悬停效果 */
    #latest-news .news-item:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(224, 184, 160, 0.2) !important;
        border-color: rgba(224, 184, 160, 0.3) !important;
    }
    
    /* === 优势展示区域移动端优化 === */
    
    /* 优势展示容器优化 */
    .advantage-showcase {
        padding: 2rem 1.5rem !important;
        gap: 2rem !important;
        margin: 0 -1rem !important; /* 扩展到容器边缘 */
        border-radius: 15px !important;
    }
    
    /* 优势项目移动端优化 - 更宽的显示 */
    .advantage-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
        padding: 2rem 1rem !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(224, 184, 160, 0.1) !important;
        border-radius: 12px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 优势项目图标优化 */
    .advantage-item .icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 2.8rem !important;
        margin: 0 auto !important;
        background: rgba(224, 184, 160, 0.15) !important;
        border: 2px solid rgba(224, 184, 160, 0.3) !important;
    }
    
    /* 优势项目内容区域 */
    .advantage-item .content {
        width: 100% !important;
    }
    
    .advantage-item .content h3 {
        margin-bottom: 1rem !important;
        color: #fff !important;
    }
    
    .advantage-item .content p {
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.6 !important;
        margin: 0 !important;
    }
    
    /* 优势项目悬停效果调整 */
    .advantage-item:hover {
        transform: translateY(-3px) !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(224, 184, 160, 0.3) !important;
        box-shadow: 0 6px 20px rgba(224, 184, 160, 0.15) !important;
    }
    
    .advantage-item:hover .icon {
        background: var(--primary-color, #E0B8A0) !important;
        color: #000 !important;
        transform: scale(1.1) !important;
        box-shadow: 0 0 20px rgba(224, 184, 160, 0.4) !important;
    }
    
    /* === 响应式图片优化 === */
    
    .hero img {
        object-position: center center;
        filter: brightness(0.7);
    }
    
    .tab-media img,
    .content-image img,
    .brand-image img {
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* === 小屏手机特殊优化 (480px以下) === */
@media screen and (max-width: 480px) {
    
    .hero-title {
        font-size: 1.5rem !important; /* 严格遵循Hero标题规范 */
        line-height: 1.2;
    }
    
    .brand-card {
        padding: 1.5rem !important;
    }
    
    .feature-card-vertical {
        padding: 1.5rem 1rem !important;
        max-width: 100%;
    }
    
    .feature-icon-circle {
        width: 70px !important;
        height: 70px !important;
    }
    
    .feature-icon-circle i {
        font-size: 2rem !important;
    }
    
    /* 小屏手机产品标签导航优化 - 保持横向单排显示 */
    .product-tabs-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        padding: 0.4rem !important;
        justify-content: space-between !important;
    }
    
    .tab-link {
        flex: 1 !important;
        min-width: auto !important;
        max-width: none !important;
        margin-bottom: 0 !important;
        padding: 0.5rem 0.3rem !important;
        font-size: 0.7rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .product-tabs-content {
        padding: 1.5rem 1rem !important;
    }
    
    .tab-media img {
        min-height: 180px;
        max-height: 200px;
    }
    
    .tech-item {
        padding: 1.5rem !important;
    }
    
    .tech-item .icon {
        font-size: 2.5rem !important;
    }
    
    /* === 小屏手机新闻区域优化 === */
    
    /* 小屏手机保持2x2布局，但调整间距和尺寸 */
    #latest-news .news-grid {
        gap: 0.75rem !important;
    }
    
    #latest-news .news-item {
        min-height: 160px !important;
        padding: 0 !important;
    }
    
    #latest-news .news-item img {
        height: auto !important;
        aspect-ratio: 16/9 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #latest-news .news-item h3 {
        font-size: 0.7rem !important;
    }
    
    #latest-news .news-item .date,
    #latest-news .news-item p:not(.date) {
        font-size: 0.55rem !important;
    }
    
    #latest-news .news-item .news-content {
        padding: 0.5rem !important;
    }
    
    #latest-news .news-item .read-more {
        font-size: 0.55rem !important;
        padding: 0.15rem 0.4rem !important;
    }
    
    /* === 小屏手机优势展示区域优化 === */
    
    /* 优势展示容器进一步优化 */
    .advantage-showcase {
        padding: 1.5rem 1rem !important;
        gap: 1.5rem !important;
        margin: 0 -0.5rem !important;
    }
    
    /* 优势项目小屏优化 */
    .advantage-item {
        padding: 1.5rem 0.75rem !important;
        gap: 1.25rem !important;
    }
    
    .advantage-item .icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 2.5rem !important;
    }
    
    .advantage-item .content h3 {
        margin-bottom: 0.75rem !important;
        font-size: 0.95rem !important;
    }
    
    .advantage-item .content p {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }
}

/* === 横屏模式特殊优化 === */
@media screen and (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        min-height: 80vh !important;
    }
    
    .features-grid-vertical {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-card-vertical {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    /* 横屏模式产品标签导航优化 */
    .product-tabs-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    .tab-link {
        flex: 1 !important;
        min-width: auto !important;
        max-width: none !important;
        font-size: 0.85rem !important;
        padding: 0.6rem 0.8rem !important;
    }
}
