/* ========================================
 * responsive.css - 移动端响应式适配
 * 断点：1024px（平板） | 768px（大屏手机） | 480px（小屏手机）
 * ======================================== */

/* =============================================
 * 1024px 以下 —— 平板 / 小屏笔记本
 * ============================================= */
@media screen and (max-width: 1024px) {
    /* ---- Header ---- */
    .header .naver {
        margin-left: 30px;
    }
    .header .naver li {
        margin-right: 24px;
    }
    .header .naver a {
        font-size: 15px;
    }
    .header-download {
        font-size: 14px;
        padding: 7px 12px;
        border-radius: 8px;
    }

    /* ---- Footer ---- */
    .footer {
        padding: 40px 40px 0;
    }
    .footer .text h5 {
        font-size: 32px;
    }
    .footer .text h6 {
        font-size: 24px;
        line-height: 40px;
    }
    .footer-weixin-img {
        width: 120px;
        height: 120px;
    }
    .footer-weixin+.footer-weixin {
        margin-left: 24px;
    }
    .footer-weixin span {
        font-size: 14px;
    }

    /* ---- 新闻列表 ---- */
    .news-sidebar {
        width: 260px;
    }
    .news-card .news-thumb {
        width: 220px;
        min-width: 220px;
        height: 150px;
    }
    .news-card .news-content {
        padding: 18px 20px;
    }
    .news-card .news-title {
        font-size: 17px;
    }

    /* ---- 文章页 ---- */
    .article-layout {
        gap: 20px;
    }
    .article-sidebar {
        width: 260px;
    }
    .article-main {
        padding: 30px 32px;
    }
    .article-title {
        font-size: 26px;
    }

    /* ---- 首页 ---- */
    .data3 { padding-left: 20px; padding-right: 20px; }
    .about-banner, .contact-banner { padding: 30px 20px; }
    .about-data-wrap { padding: 40px 20px; }
    .about-data2 { padding-left: 20px; padding-right: 20px; }
}

/* =============================================
 * 768px 以下 —— 平板竖屏 / 大屏手机
 * ============================================= */
@media screen and (max-width: 768px) {
    /* ============ Header 移动端适配 ============ */

    .header {
        padding: 0 16px;
        box-sizing: border-box;
    }

    /* 汉堡菜单按钮 */
    .hamburger,
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 110;
        gap: 5px;
        flex-shrink: 0;
        margin-right: 12px;
    }
    .hamburger span,
    .mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: #252629;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .hamburger.active span:nth-child(1),
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2),
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3),
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* 移动端导航 */
    .naver {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 0;
        margin-left: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    .naver.mobile-open {
        transform: translateY(0);
    }
    .naver li {
        margin-right: 0 !important;
        padding: 12px 24px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .naver a {
        display: block;
        font-size: 16px;
        padding: 4px 0;
    }
    .naver li a.active::after {
        bottom: -2px;
    }
    .header .naver ul {
        display: block;
    }

    /* Header logo */
    .header .logo {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .header .logo img {
        width: auto;
        height: 28px;
    }

    /* 下载按钮 */
    .header-download {
        font-size: 13px;
        padding: 6px 10px;
    }
    .header-download img,
    .header-download svg {
        width: 16px;
        height: 16px;
    }

    /* 遮罩层 */
    .nav-overlay,
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 98;
    }
    .nav-overlay.show,
    .mobile-nav-overlay.show {
        display: block;
    }

    /* ============ Footer 移动端 ============ */
    .footer {
        padding: 32px 20px 0;
    }
    .footer-message {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer .text {
        margin-bottom: 0;
    }
    .footer .text h5 {
        font-size: 28px;
    }
    .footer .text h6 {
        font-size: 20px;
        line-height: 32px;
    }
    .footer-weixin {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }
    .footer-weixin+.footer-weixin {
        margin-left: 0;
    }
    .footer-weixin-img {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
        font-size: 10px;
    }
    .footer-weixin span {
        font-size: 14px;
    }
    .footer .beian {
        margin-top: 40px;
        font-size: 11px;
    }
    .friendship-link {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        font-size: 11px;
    }
    .friendship-link a {
        margin-left: 0;
    }

    /* ============ 页面Banner ============ */
    .page-banner {
        padding: 30px 20px 40px;
    }
    .page-banner h1 {
        font-size: 28px;
    }
    .page-banner p {
        font-size: 14px;
    }

    /* ============ 新闻列表 移动端 ============ */
    .category-bar {
        top: 60px;
    }
    .category-list {
        padding: 0 16px;
        height: 48px;
        gap: 4px;
    }
    .category-item {
        padding: 6px 14px;
        font-size: 13px;
        border-radius: 16px;
    }
    .search-box {
        height: 32px;
    }
    .search-box input {
        font-size: 13px;
        width: 140px;
        padding: 0 10px;
    }
    .search-box button {
        padding: 0 10px;
    }

    .news-section {
        padding: 24px 0 40px;
    }

    /* 布局改为单列 */
    .news-layout {
        flex-direction: column;
        gap: 32px;
    }
    .news-main {
        width: 100%;
    }

    /* 侧边栏移到下方 */
    .news-sidebar {
        width: 100%;
        position: static;
    }

    /* 新闻卡片竖排 */
    .news-card {
        flex-direction: column;
    }
    .news-card .news-thumb {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    .news-card .news-content {
        padding: 16px 18px;
    }
    .news-card .news-title {
        font-size: 17px;
        -webkit-line-clamp: 2;
    }
    .news-card .news-summary {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    .news-card .news-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
    }
    .news-card .news-meta .read-more {
        margin-left: 0;
    }

    /* 分页 */
    ul.pages {
        margin-top: 24px;
        flex-wrap: wrap;
        gap: 4px;
    }
    ul.pages li a {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 6px;
    }

    /* ============ 文章内页 移动端 ============ */
    .article-layout {
        flex-direction: column;
        gap: 32px;
    }
    .article-sidebar {
        width: 100%;
        position: static;
    }
    .article-main {
        padding: 24px 20px;
        border-radius: 8px;
    }

    /* 文章头部 */
    .article-header {
        padding-bottom: 18px;
        margin-bottom: 24px;
    }
    .article-title {
        font-size: 22px;
        line-height: 1.4;
    }
    .article-subtitle {
        font-size: 14px;
    }
    .article-meta {
        gap: 12px;
        font-size: 12px;
        flex-wrap: wrap;
    }
    .article-meta .share-buttons {
        margin-left: 0;
        margin-top: 4px;
        width: 100%;
    }

    /* 文章正文 */
    .article-body {
        font-size: 15px;
        line-height: 1.8;
    }
    .article-body h2 {
        font-size: 20px;
        margin: 28px 0 14px;
    }
    .article-body h3 {
        font-size: 17px;
    }
    .article-body blockquote {
        padding: 12px 18px;
        font-size: 14px;
    }
    .article-body table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    .article-body table th,
    .article-body table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* 标签 */
    .article-tags {
        gap: 8px;
    }
    .article-tags .tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* 操作按钮 */
    .article-actions {
        gap: 24px;
        padding: 24px 0;
    }
    .action-btn .action-icon {
        width: 44px;
        height: 44px;
    }
    .action-btn .action-icon svg {
        width: 20px;
        height: 20px;
    }

    /* 上下篇 */
    .article-nav {
        flex-direction: column;
        gap: 12px;
    }
    .article-nav .nav-item {
        padding: 14px 18px;
    }
    .article-nav .nav-title {
        font-size: 14px;
    }

    /* ---- 面包屑 ---- */
    .breadcrumb {
        font-size: 13px;
        margin-top: 0 !important;
        padding: 10px 20px !important;
        background: #FFF6D4;
    }

    /* ---- 返回顶部 ---- */
    .back-to-top {
        right: 16px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* ---- 首页 ---- */
    .body-wrap { height: auto; }
    .body { flex-direction: column; height: auto; padding: 20px 16px; }
    .body-title { position: static; transform: none; text-align: center; margin-bottom: 20px; }
    .title1 { font-size: 28px; }
    .title2 { font-size: 18px; line-height: 30px; margin-top: 16px; }
    .index-banner { height: auto; max-width: 100%; margin-top: 0; }
    .data { flex-direction: column; height: auto; padding: 20px; gap: 16px; transform: none; margin: 0 16px; }
    .data-item-line { width: 60px; height: 1px; }
    .data2-item { width: 100%; margin: 0 0 12px 0 !important; padding: 16px; }
    .data2-title { font-size: 18px; }
    .data2-img { width: 100px; height: 100px; }
    .data2-img img { width: 80px; height: 80px; }
    .data3 { flex-direction: column; padding: 0 16px 40px; }
    .data3-item { width: 100%; margin: 0 0 16px 0 !important; }
    .data4 { flex-direction: column; padding: 0 16px; }
    .data4-item { margin: 0 0 16px 0 !important; }
    .section-title, .data3-title, .data4-title { font-size: 24px; margin-top: 40px; margin-bottom: 30px; padding-top: 40px; }

    /* ---- 关于安心 ---- */
    .about-banner { flex-direction: column; padding: 20px 16px; }
    .about-banner-imgs { margin-right: 0; margin-bottom: 20px; }
    .about-banner-txt h3 { font-size: 24px; }
    .about-data-wrap { padding: 30px 16px; }
    .about-data-title { font-size: 24px; }
    .about-data ul { flex-direction: column; gap: 20px; }
    .about-data li:last-child { margin-left: 0; }
    .about-data ul img { width: 100%; max-width: 452px; }
    .about-data2 { padding: 20px 16px 60px; }
    .about-data2-title { font-size: 24px; padding-top: 30px; padding-bottom: 40px; }
    .about-data2-wrap { flex-direction: column; }
    .about-data2-year { font-size: 16px; width: 60px; }
    .about-data2-content { font-size: 15px; }
    .about-data2-imgs { display: flex; gap: 16px; margin-top: 20px; }
    .about-data2-imgs div { padding: 10px; }
    .about-data2-imgs img { width: 100%; max-width: 200px; }

    /* ---- 联系我们 ---- */
    .contact-banner { flex-direction: column; padding: 20px 16px; }
    .contact-banner-list { margin-left: 0; margin-top: 16px; }
    .contact-banner-item { height: auto !important; }
    .contact-banner-big .contact-banner-img { height: 200px; }
    .contact-banner-small { width: calc(50% - 8px); margin: 8px 0 0 0 !important; }
    .contact-banner-small:nth-child(2n) { margin-left: 16px !important; }
    .contact-banner-small:nth-child(2) { margin-top: 0; }
}

/* =============================================
 * 480px 以下 —— 小屏手机
 * ============================================= */
@media screen and (max-width: 480px) {
    /* Header */
    .header .logo .logo-text {
        font-size: 14px;
    }
    .header-download {
        font-size: 12px;
        padding: 5px 8px;
    }
    .header-download svg {
        width: 14px;
        height: 14px;
        margin-right: 2px;
    }

    /* Banner */
    .page-banner {
        padding: 24px 16px 32px;
    }
    .page-banner h1 {
        font-size: 24px;
    }

    /* 分类栏 */
    .category-item {
        padding: 5px 10px;
        font-size: 12px;
    }
    .search-box input {
        width: 100px;
        font-size: 12px;
    }

    /* 新闻卡片 */
    .news-card .news-thumb {
        height: 160px;
    }
    .news-card .news-title {
        font-size: 15px;
    }
    .news-card .news-summary {
        font-size: 13px;
    }

    /* 侧边栏 */
    .sidebar-block {
        padding: 16px;
    }

    /* 文章页 */
    .article-title {
        font-size: 20px;
    }
    .article-body {
        font-size: 14px;
    }
    .article-body h2 {
        font-size: 18px;
    }
    .article-body blockquote {
        font-size: 13px;
        padding: 10px 14px;
    }
    .article-actions {
        gap: 20px;
    }
    .action-btn .action-icon {
        width: 40px;
        height: 40px;
    }

    /* Footer */
    .footer .text h5 {
        font-size: 24px;
    }
    .footer .text h6 {
        font-size: 16px;
        line-height: 26px;
    }
    .footer-weixin-img {
        width: 64px;
        height: 64px;
    }
    .footer-weixin span {
        font-size: 12px;
    }

    /* ---- 首页 ---- */
    .title1 { font-size: 22px; }
    .title2 { font-size: 15px; line-height: 24px; }
    .data-item { font-size: 13px; }
    .data-value b { font-size: 22px; }
    .data-label { font-size: 13px; }
    .data2-item { padding: 12px; }
    .data2-title { font-size: 16px; }
    .data2-title2 { font-size: 13px; }
    .data2-button { font-size: 12px; margin-top: 16px; }
    .data3-img img { height: 140px; }
    .data3-title1 { font-size: 18px; padding-left: 14px; }
    .data3-title2 { font-size: 13px; padding-left: 14px; }
    .data4-item h5 { font-size: 16px; }
    .data4-item p { font-size: 13px; }
    .section-title, .data3-title, .data4-title { font-size: 20px; }

    /* ---- 关于安心 ---- */
    .about-banner-txt h3 { font-size: 20px; }
    .about-banner-txt p { font-size: 13px; }
    .about-data-title { font-size: 20px; }
    .about-data li { font-size: 16px; }
    .about-data2-title { font-size: 20px; }
    .about-data2-content { font-size: 13px; line-height: 24px; }
    .about-data2-year { font-size: 14px; }

    /* ---- 联系我们 ---- */
    .contact-banner-small { width: 100%; margin-left: 0 !important; }
    .contact-banner-item h5 { font-size: 16px; padding: 0 14px; }
    .contact-banner-big .contact-banner-img { height: 150px; }
    .contact-banner-small .contact-banner-img { height: 100px; }
    .contact-banner-item a { font-size: 14px; }

    /* ---- 资质页 ---- */
    .image-page h2 { font-size: 20px; }
}
