/* 移动端响应式样式 */
@media screen and (max-width: 768px) {
    main {
        margin-top: 10px;
        margin-bottom: 40px;
    }

    .content-container {
        width: 100%;
        flex-direction: column;
        padding: 20px 15px;
        background-size: cover;
        background: none;
    }

    /* 左侧边栏 */
    .left-sidebar {
        width: 100%;
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .gazette-info {
        height: auto;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .gazette-info nav{
        position: relative;
    }
    .gazette-info nav ul li {
        margin-bottom: 15px;
    }
    .gazette-info nav ul li:last-child {
        margin-bottom: 0;
    }
    .gazette-info nav ul li:nth-child(2),
    .gazette-info nav ul li:nth-child(4) {
        margin-left: 15px;
    }

    .gazette-info nav ul li a {
        height: 28px;
        font-size: 14px;
    }
	.gazette-info{
		width: 100%;
	}
    .gazette-info img {
        width: 100%;
        position: relative;
    }

    .public-intro h2 {
        font-size: 18px;
        padding: 8px 30px;
    }

    .public-intro p {
        font-size: 14px;
        line-height: 22px;
        margin-top: 15px;
    }

    .free-query {
        margin-top: 15px;
    }

    .free-query h3 {
        font-size: 18px;
    }

    .free-query h3:before {
        left: 20px;
    }

    .free-query h3:after {
        right: 20px;
    }

    .free-query p {
        font-size: 14px;
        line-height: 22px;
        margin-top: 15px;
    }

    .reading-points li {
        font-size: 14px;
        line-height: 1.5;
    }

    .map-container img {
        width: 100%;
        height: auto;
    }

    .survey-banner {
        width: 100%;
    }

    .qr-code-img {
        width: 140px;
        padding-bottom: 30px;
        margin-top: 20px;
    }

    /* 主内容区 */
    .gazette-header-title {
        margin-bottom: 20px;
    }

    .gazette-header-title h1 {
        width: 280px;
        height: 74px;
    }

    /* 搜索区域 */
    .search-box {
        width: 100%;
        margin-bottom: 30px;
        background: none;
        padding:15px 0 50px 0;
    }

    .search-form .form-row {
        flex-direction: column;
    }
    .search-form .form-row:first-child,
    .search-form .form-row:nth-child(2),
    .search-form .form-row:nth-child(3) {
        margin-bottom: 0px; 
    }
    .form-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group select {
        width: calc(100% - 35px);
        font-size: 14px;
    }

    .doc-type {
        flex-direction: column;
    }

    .doc-type select,
    .doc-type input {
        width: 100%;
    }
    .doc-type .form-group:last-child input {
        width: 100%; 
    }
    .date-range-group {
        width: 100%; 
    }
    .date-range input {
        width: calc(100% - 35px); 
        font-size: 14px;
    }
    .issue-info{
        flex-direction: column;
    }
    .issue-info .form-group input{
        width: calc(100% - 35px);
    }
    .issue-info .form-group:last-child label{
        letter-spacing: 5px;
        line-height: 1.5;
    }

    /* 公报列表 */
    .gazette-list {
        width: 100%;
        margin-bottom: 30px;
    }

    .tabs .tab-header {
        margin-left: 0;
        justify-content: center;
    }

    .tab-item {
        padding: 8px 15px;
        font-size: 16px;
    }

    .tab-content {
        padding: 15px;
        min-height: 400px;
    }

    .latest-gazette-header {
        flex-direction: column;
        gap: 10px;
    }

    .latest-gazette-header .year-select {
        font-size: 14px;
        height: 32px;
        line-height: 20px;
    }

    .gazette-title span {
        font-size: 16px;
        margin-right: 10px;
        word-break:keep-all;
        white-space:nowrap;
    }

    .gazette-title .status {
        padding: 8px 15px;
    }

    .gazette-sections {
        height: 400px;
    }

    .section-title {
        font-size: 16px;
        padding: 4px 15px;
    }

    .section ul {
        padding: 5px 0 5px 15px;
    }

    .section ul li a {
        font-size: 14px;
        max-width: 100%;
    }

    /* 历史公报表格 */
    .gazette-table {
        display: block;
        overflow-x: auto;
    }

    .gazette-table th,
    .gazette-table td {
        font-size: 14px;
        padding: 5px;
    }

    .gazette-table th:nth-child(1) {
        padding-left: 10px;
    }

    .gazette-table tbody .doc-title {
        max-width: 200px;
    }

    .gazette-table tbody .doc-type {
        font-size: 12px;
        padding: 4px 8px;
        max-width: 70px;
    }

    .gazette-table tbody .doc-name {
        font-size: 14px;
        max-width: 130px;
    }

    /* 分页 */
    .pagination {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* 历史公报轮播 */
    .history-section .section-header{
        flex-direction: column;
    }
    .history-section h3 {
        font-size: 18px;
        width: 250px;
    }

    .history-section h3:before {
        left: 20px;
    }

    .history-section h3:after {
        right: 20px;
    }

    .history-section .year-select-wrapper {
        position: static;
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .history-section .year-select {
        width: 160px;
        font-size: 14px;
    }

    .gazette-carousel {
        margin-top: 30px;
    }

    .carousel-container {
        width: calc(100% - 60px);
    }

    .carousel-item {
        width: 140px;
        min-width: 140px;
        height: 200px;
        padding: 10px;
    }

    .carousel-item img {
        margin-bottom: 30px;
    }

    .carousel-year {
        font-size: 18px;
    }

    .carousel-name {
        font-size: 12px;
    }

    .prev-arrow i,
    .next-arrow i {
        width: 18px;
        height: 32px;
        background-size: contain;
    }
    .history-section::after{
        display: none;
    }
    
}

/* 平板响应式样式 */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .content-container {
        width: 100%;
        padding: 40px;
        background: none;
    }

    .left-sidebar {
        width: 280px;
        min-width: 280px;
        margin-right: 30px;
    }
    .free-query h3:before{
        left: 0;
    }
    .free-query h3:after{
        right: 0;
    }
    .gazette-info img {
        width: 180px;
    }

    .search-box {
        width: 100%;
    }

    .gazette-list {
        width: 100%;
    }

    .carousel-container {
        width: 520px;
    }

    .carousel-item {
        width: 160px;
        min-width: 160px;
        height: 220px;
    }
}
