/**
 * GOV 主题 - 响应式样式
 * 村委会官网专用
 */

/* 平板 */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }

    .header-main {
        flex-wrap: wrap;
    }

    .logo-area {
        flex: 1;
    }

    .search-area {
        width: 100%;
        margin-top: 15px;
    }

    .nav-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-list::-webkit-scrollbar {
        display: none;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 14px;
    }
}

/* 手机 */
@media screen and (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .logo-img {
        height: 45px;
    }

    .logo-subtitle {
        font-size: 12px;
    }

    .main-nav {
        position: relative;
    }

    .nav-item > a {
        padding: 10px 12px;
        flex-direction: row;
        gap: 6px;
    }

    .nav-icon {
        font-size: 16px;
        margin-bottom: 0;
    }

    .nav-text {
        font-size: 12px;
        white-space: nowrap;
    }

    .banner-item img {
        height: 200px;
    }

    .banner-caption {
        padding: 15px;
    }

    .banner-caption h3 {
        font-size: 16px;
    }

    .banner-caption p {
        font-size: 12px;
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-list {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 180px;
    }

    .footer-nav {
        padding: 25px 0;
    }

    .service-bar {
        padding: 12px 0;
    }

    .service-list {
        flex-direction: column;
        gap: 12px;
    }

    .service-item {
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        right: 15px;
        bottom: 60px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .breadcrumb-bar {
        padding: 8px 0;
    }

    .breadcrumb {
        font-size: 12px;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    .top-bar {
        display: none;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .search-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .banner-item img {
        height: 150px;
    }

    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .banner-dots {
        bottom: 10px;
        right: 10px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .quick-item {
        padding: 15px 10px;
    }

    .quick-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .quick-item h4 {
        font-size: 13px;
    }

    .quick-item p {
        font-size: 11px;
    }

    .section-title h3 {
        font-size: 15px;
    }

    .article-list .date {
        width: 50px;
        font-size: 11px;
        padding: 3px 5px;
        margin-right: 10px;
    }

    .article-list .title {
        font-size: 13px;
    }

    .card-img {
        height: 140px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-desc {
        font-size: 11px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-col {
        text-align: center;
    }

    .qrcode-box img {
        width: 80px;
        height: 80px;
    }

    .column-header {
        padding: 20px;
    }

    .column-header h2 {
        font-size: 20px;
    }

    .post-content {
        font-size: 14px;
    }

    .page-nav a,
    .page-nav span {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-item > a:hover {
        background: transparent;
        color: #333;
    }

    .nav-item.active > a {
        color: #2c5aa0;
        border-bottom-color: #2c5aa0;
    }

    .quick-item:hover {
        transform: none;
    }

    .card-item:hover {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .top-bar,
    .main-nav,
    .footer,
    .back-to-top,
    .search-area,
    .banner-arrows,
    .banner-dots {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .section-block {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
