/*
 * 移动端视觉增强样式 - 专业版
 * 大气、上档次、技术感
 */

/* ========================================
   移动端导航栏 - 极致紧凑优化
   ======================================== */

@media (max-width: 768px) {
    /* 导航栏容器 - 极致紧凑 */
    #header {
        background: #ffffff;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
        padding: 4px 10px 4px 10px !important;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    /* 导航区域紧凑 */
    #header .wens-prova-nav {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    
    /* Logo和标题 - 极小 */
    .wp-block-site-logo {
        max-width: 28px;
        max-height: 28px;
    }
    
    .wp-block-site-logo img {
        max-height: 28px;
        width: auto;
    }
    
    .wp-block-site-title {
        font-size: 13px !important;
        font-weight: 700;
        color: #091057;
        margin: 0;
        line-height: 1.2;
    }
    
    /* 汉堡菜单按钮 - 极小 */
    .wp-block-navigation__responsive-container-open {
        background: #091057 !important;
        color: white !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        border: none !important;
        box-shadow: 0 1px 4px rgba(9, 16, 87, 0.3);
        font-size: 11px !important;
        min-height: 28px;
    }
    
    /* 移动端菜单 */
    .wp-block-navigation__responsive-container.is-menu-open {
        background: #ffffff;
        padding: 16px 12px;
    }
    
    .wp-block-navigation__responsive-container .wp-block-navigation__container {
        gap: 0;
    }
    
    .wp-block-navigation-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .wp-block-navigation-item a {
        padding: 12px 0 !important;
        font-size: 14px !important;
        font-weight: 600;
        color: #1a1a1a !important;
        display: block;
    }
    
    .wp-block-navigation-item a:hover {
        color: #024caa !important;
    }
}

/* ========================================
   移动端卡片系统 - 紧凑设计
   ======================================== */

@media (max-width: 768px) {
    /* 主内容区域 */
    body {
        background: #f8f9fa;
        color: #333333;
    }
    
    main {
        background: #f8f9fa;
        padding: 12px 0;
    }
    
    /* 卡片容器 - 减少间距 */
    .wp-block-group {
        margin: 0 0 12px 0 !important;
        padding: 20px 16px !important;
    }
    
    /* 白色内容卡片 - 减少内边距 */
    .wp-block-group[style*="background"] {
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin: 0 0 12px 0 !important;
        padding: 20px 16px !important;
        border: 1px solid #f0f0f0;
    }
    
    /* 减少卡片底部空白 */
    .wp-block-group > *:last-child {
        margin-bottom: 0 !important;
    }
    
    /* 段落间距优化 */
    .wp-block-group p:last-child {
        margin-bottom: 0 !important;
    }
}

/* ========================================
   移动端图片展示 - 大尺寸优化
   ======================================== */

@media (max-width: 768px) {
    /* 内容区域的图片 - 大尺寸显示 */
    main img:not(.wp-block-site-logo img):not(.custom-logo):not([src*="/L01"]):not([src*="/L02"]):not([src*="/L03"]):not([src*="/L04"]):not([src*="/L05"]) {
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* 特色图片 - 更大更突出 */
    .wp-block-post-featured-image img,
    .wp-block-image img {
        min-height: 240px;
        max-height: 350px;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        margin-bottom: 24px !important;
    }
    
    /* 卡片内图片 */
    .wp-block-group img:not([src*="/L01"]):not([src*="/L02"]):not([src*="/L03"]):not([src*="/L04"]):not([src*="/L05"]) {
        width: 100% !important;
        min-height: 220px;
        max-height: 300px;
        object-fit: cover;
        border-radius: 12px;
        margin: 0 0 20px 0 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    
    /* 网站Logo保持原样 */
    .wp-block-site-logo img,
    .custom-logo,
    #header img {
        min-height: auto !important;
        max-height: 50px !important;
        width: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        object-fit: contain !important;
    }
}

/* ========================================
   移动端文字排版 - 专业级
   ======================================== */

@media (max-width: 768px) {
    /* 大标题 - 醒目 */
    h1 {
        font-size: 28px !important;
        font-weight: 700;
        line-height: 1.3;
        color: #091057;
        margin-bottom: 16px;
        letter-spacing: -0.3px;
    }
    
    /* 二级标题 */
    h2 {
        font-size: 24px !important;
        font-weight: 700;
        line-height: 1.4;
        color: #091057;
        margin-bottom: 14px;
    }
    
    /* 三级标题 */
    h3 {
        font-size: 20px !important;
        font-weight: 600;
        line-height: 1.4;
        color: #1a1a1a;
        margin-bottom: 12px;
    }
    
    /* 正文 - 易读 */
    p {
        font-size: 16px !important;
        line-height: 1.8;
        color: #4a4a4a;
        margin-bottom: 16px;
    }
    
    /* 小号文字 */
    small,
    .wp-block-post-date {
        font-size: 14px !important;
        color: #8a8a8a;
    }
    
    /* 链接颜色 */
    a {
        color: #024caa;
        text-decoration: none;
    }
    
    a:hover {
        color: #f59e0b;
    }
}

/* ========================================
   移动端卡片内容布局 - 图文协调
   ======================================== */

@media (max-width: 768px) {
    /* 图文卡片 */
    .image-text-card {
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        margin: 0 16px 20px 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    /* 卡片图片 - 大尺寸显示 */
    .image-text-card img:not([src*="/L01"]):not([src*="/L02"]):not([src*="/L03"]):not([src*="/L04"]):not([src*="/L05"]) {
        width: 100%;
        height: 240px;
        object-fit: cover;
        border-radius: 0;
        margin: 0 !important;
    }
    
    /* 卡片内容 - 下半部分 */
    .image-text-card .content {
        padding: 24px 20px;
    }
    
    .image-text-card h3 {
        font-size: 22px !important;
        font-weight: 700;
        color: #091057;
        margin-bottom: 12px;
    }
    
    .image-text-card p {
        font-size: 15px;
        line-height: 1.7;
        color: #4a4a4a;
        margin-bottom: 0;
    }
    
    /* 数字标签 */
    .image-text-card .stat {
        font-size: 14px;
        color: #024caa;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }
}

/* ========================================
   移动端全屏卡片 - 沉浸式
   ======================================== */

@media (max-width: 768px) {
    /* 全屏卡片 */
    .fullscreen-card {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 40px 20px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    

}

/* ========================================
   移动端数据展示 - 专业化
   ======================================== */

@media (max-width: 768px) {
    /* 数据卡片 */
    .stat-card {
        background: linear-gradient(135deg, #091057 0%, #024caa 100%);
        border-radius: 16px;
        padding: 32px 24px;
        text-align: center;
        margin: 16px;
        box-shadow: 0 8px 24px rgba(9, 16, 87, 0.25);
    }
    
    .stat-card .number {
        font-size: 48px !important;
        font-weight: 800;
        color: #ffffff;
        line-height: 1;
        margin-bottom: 8px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .stat-card .unit {
        font-size: 20px;
        color: #fbbf24;
        font-weight: 600;
    }
    
    .stat-card .label {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
        margin-top: 12px;
    }
}

/* ========================================
   移动端按钮 - 专业设计
   ======================================== */

@media (max-width: 768px) {
    .wp-block-button__link,
    .wp-element-button {
        width: 100%;
        padding: 16px 32px !important;
        font-size: 16px !important;
        font-weight: 600;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #024caa 0%, #091057 100%);
        color: #ffffff !important;
        box-shadow: 0 4px 16px rgba(2, 76, 170, 0.25);
        border: none;
        text-align: center;
        transition: all 0.3s ease;
        display: block;
    }
    
    .wp-block-button__link:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(2, 76, 170, 0.3);
    }
    
    /* 次要按钮 */
    .wp-block-button.is-style-outline .wp-block-button__link {
        background: transparent !important;
        border: 2px solid #024caa !important;
        color: #024caa !important;
        box-shadow: none;
    }
}

/* ========================================
   移动端间距系统 - 呼吸感
   ======================================== */

@media (max-width: 768px) {
    /* 区块间距 */
    .wp-block-group + .wp-block-group {
        margin-top: 16px;
    }
    
    /* 内容间距 */
    .wp-block-group > * + * {
        margin-top: 16px;
    }
    
    /* 大区块间距 */
    section,
    [class*="section"] {
        padding: 40px 0;
    }
    
    /* 页面内边距 */
    main {
        padding: 20px 16px;
    }
}

/* ========================================
   移动端列表 - 专业展示
   ======================================== */

@media (max-width: 768px) {
    /* 特色列表 */
    ul:not([class]) {
        list-style: none;
        padding: 0;
    }
    
    ul:not([class]) li {
        background: #ffffff;
        padding: 16px 20px;
        margin-bottom: 12px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border-left: 4px solid #024caa;
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ========================================
   移动端背景图 - 优化显示
   ======================================== */

@media (max-width: 768px) {
    [style*="background-image"] {
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }
    
    /* 背景图上的文字 */
    [style*="background-image"] h1,
    [style*="background-image"] h2,
    [style*="background-image"] p {
        color: #ffffff !important;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }
}

/* ========================================
   移动端阴影系统 - 层次感
   ======================================== */

@media (max-width: 768px) {
    .shadow-sm {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .shadow-md {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    
    .shadow-lg {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .shadow-xl {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    }
}

/* ========================================
   移动端页脚优化 - 修复文字颜色
   ======================================== */

@media (max-width: 768px) {
    #footer {
        background: #091057;
        padding: 35px 16px 20px !important;
    }
    
    #footer h1,
    #footer h2,
    #footer h3 {
        color: #ffffff !important;
        font-size: 17px !important;
        margin-bottom: 14px;
        font-weight: 600;
    }
    
    #footer p,
    #footer a,
    #footer li,
    #footer span,
    #footer div {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 14px;
        line-height: 1.8;
    }
    
    #footer a:hover {
        color: #fbbf24 !important;
    }
    
    /* 联系方式特别强调 */
    #footer [class*="contact"],
    #footer [class*="phone"],
    #footer [class*="email"],
    #footer [class*="address"] {
        color: #ffffff !important;
    }
}

/* ========================================
   移动端返回顶部按钮
   ======================================== */

@media (max-width: 768px) {
    .back-to-top {
        position: fixed;
        bottom: 24px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #024caa 0%, #091057 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        box-shadow: 0 6px 20px rgba(9, 16, 87, 0.3);
        z-index: 999;
        border: none;
        cursor: pointer;
    }
}

/* ========================================
   移动端公司Logo专属优化（仅针对L01-L05图片）
   ======================================== */

@media (max-width: 768px) {
    /* 只针对L开头的Logo文件 */
    img[src*="/L01"],
    img[src*="/L02"],
    img[src*="/L03"],
    img[src*="/L04"],
    img[src*="/L05"],
    img[src*="/L01-"],
    img[src*="/L02-"],
    img[src*="/L03-"],
    img[src*="/L04-"],
    img[src*="/L05-"] {
        width: auto !important;
        max-width: 100% !important;
        height: 60px !important;
        object-fit: contain !important;
        padding: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
        margin: 8px !important;
    }
}

/* ========================================
   移动端卡片系统
   ======================================== */

@media (max-width: 768px) {
    /* 基础卡片 */
    .wp-block-group[class*="alignfull"],
    .wp-block-group[class*="alignwide"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* 白色内容卡片 */
    .content-card {
        background: #ffffff;
        border-radius: 16px;
        padding: 24px 20px;
        margin: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    /* 图片卡片 */
    .image-card {
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        margin: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    
    .image-card img:not([src*="/L01"]):not([src*="/L02"]):not([src*="/L03"]):not([src*="/L04"]):not([src*="/L05"]) {
        width: 100%;
        height: auto;
        min-height: 220px;
        object-fit: cover;
        display: block;
        border-radius: 0;
    }
    
    .image-card-content {
        padding: 20px;
    }
    
    /* 渐变卡片 */
    .gradient-card {
        background: linear-gradient(135deg, #091057 0%, #024caa 100%);
        color: white;
        border-radius: 16px;
        padding: 32px 24px;
        margin: 16px;
        box-shadow: 0 8px 24px rgba(9, 16, 87, 0.2);
    }
    
    .gradient-card h2,
    .gradient-card h3,
    .gradient-card p {
        color: white !important;
    }
}

/* ========================================
   移动端图片展示优化
   ======================================== */

@media (max-width: 768px) {

}

/* ========================================
   移动端文字排版增强
   ======================================== */

@media (max-width: 768px) {
    /* 大标题 */
    .hero-title {
        font-size: 32px !important;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 16px;
        color: #091057;
        text-align: center;
    }
    
    /* 副标题 */
    .subtitle {
        font-size: 18px !important;
        line-height: 1.6;
        color: #666;
        text-align: center;
        margin-bottom: 24px;
    }
    
    /* 章节标题 */
    .section-title {
        font-size: 24px !important;
        font-weight: 700;
        color: #091057;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
        padding-bottom: 12px;
    }
    
    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #024caa, #f59e0b);
        border-radius: 2px;
    }
    
    /* 正文段落 */
    .body-text {
        font-size: 16px;
        line-height: 1.8;
        color: #333;
        margin-bottom: 16px;
    }
    
    /* 强调文本 */
    .emphasis-text {
        font-size: 18px;
        font-weight: 600;
        color: #024caa;
        line-height: 1.6;
    }
    
    /* 小号说明文字 */
    .caption-text {
        font-size: 14px;
        color: #888;
        line-height: 1.6;
    }
}

/* ========================================
   移动端按钮美化
   ======================================== */

@media (max-width: 768px) {
    /* 主按钮 */
    .wp-block-button__link,
    .wp-element-button {
        width: 100%;
        padding: 16px 32px !important;
        font-size: 16px !important;
        font-weight: 600;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        transition: all 0.3s ease;
    }
    
    .wp-block-button__link:active,
    .wp-element-button:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    }
    
    /* 次要按钮 */
    .wp-block-button.is-style-outline .wp-block-button__link {
        background: transparent !important;
        border: 2px solid #024caa !important;
        color: #024caa !important;
        box-shadow: none;
    }
    
    /* 按钮组 */
    .wp-block-buttons {
        gap: 12px;
        margin: 24px 0;
    }
}

/* ========================================
   移动端数据展示
   ======================================== */

@media (max-width: 768px) {
    /* 数据卡片 */
    .data-card {
        background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
        border-radius: 16px;
        padding: 24px;
        text-align: center;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
    }
    
    .data-card .number {
        font-size: 36px !important;
        font-weight: 700;
        color: #024caa;
        line-height: 1;
        margin-bottom: 8px;
    }
    
    .data-card .unit {
        font-size: 18px;
        color: #f59e0b;
        font-weight: 600;
    }
    
    .data-card .label {
        font-size: 15px;
        color: #666;
        margin-top: 8px;
    }
    
    /* 数据网格 */
    .data-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 24px 0;
    }
}

/* ========================================
   移动端列表美化
   ======================================== */

@media (max-width: 768px) {
    /* 特色列表 */
    .feature-list {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }
    
    .feature-list li {
        background: #ffffff;
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .feature-list li::before {
        content: '✓';
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, #024caa, #091057);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 16px;
    }
    
    /* 步骤列表 */
    .step-list {
        counter-reset: step;
        list-style: none;
        padding: 0;
    }
    
    .step-list li {
        counter-increment: step;
        position: relative;
        padding-left: 60px;
        margin-bottom: 24px;
    }
    
    .step-list li::before {
        content: counter(step);
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #024caa, #091057);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 18px;
    }
}

/* ========================================
   移动端分隔线
   ======================================== */

@media (max-width: 768px) {
    .divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
        margin: 32px 0;
    }
    
    .divider-thick {
        height: 8px;
        background: #f5f7fa;
        margin: 40px -16px;
    }
}

/* ========================================
   移动端标签/徽章
   ======================================== */

@media (max-width: 768px) {
    .badge {
        display: inline-block;
        padding: 6px 14px;
        background: linear-gradient(135deg, #024caa, #091057);
        color: white;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        margin: 4px;
    }
    
    .badge-outline {
        background: transparent;
        border: 2px solid #024caa;
        color: #024caa;
    }
    
    .badge-success {
        background: linear-gradient(135deg, #28a745, #20c997);
    }
    
    .badge-warning {
        background: linear-gradient(135deg, #f59e0b, #fbbf24);
    }
}

/* ========================================
   移动端阴影系统
   ======================================== */

@media (max-width: 768px) {
    .shadow-sm {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }
    
    .shadow-md {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .shadow-lg {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .shadow-xl {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    }
}

/* ========================================
   移动端动画效果
   ======================================== */

@media (max-width: 768px) {
    /* 淡入动画 */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .animate-fade-in {
        animation: fadeInUp 0.6s ease-out;
    }
    
    /* 卡片点击反馈 */
    .card-interactive {
        transition: all 0.2s ease;
    }
    
    .card-interactive:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
}

/* ========================================
   移动端辅助类
   ======================================== */

@media (max-width: 768px) {
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-left {
        text-align: left !important;
    }
    
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-padding {
        padding: 20px 16px !important;
    }
    
    .mobile-margin {
        margin: 20px 16px !important;
    }
}
