@media (max-width: 768px) {

    html,
    body {
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .app-layout {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .h1e2a3d4e5 {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 46px !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        height: 56px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        z-index: 1002;
        box-sizing: border-box;
    }

    .h1e2a3d4e5 .hamburger {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .h1e2a3d4e5 .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 8px;
        max-width: calc(100vw - 120px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .h1e2a3d4e5 .header-nav {
        display: none;
    }

    .h1e2a3d4e5 .user-btn,
    .h1e2a3d4e5 .user-dropdown {
        flex-shrink: 0;
    }

    .s1i2d3e4b5 {
        position: fixed;
        top: 46px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 46px);
        background: #fff;
        z-index: 200;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 24px;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .s1i2d3e4b5.active {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 46px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-top: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        height: auto !important;
    }

    .community-header-mobile {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 102px !important;
        z-index: 99 !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        transition: transform 0.3s ease-in-out !important;
    }

    .community-header-mobile.nav-up {
        transform: translateY(-100%) !important;
    }

    .category-tabs-wrapper-mobile {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 1px solid var(--border);
        position: relative;
    }

    .category-tabs-wrapper-mobile::-webkit-scrollbar {
        display: none;
    }

    .category-tabs-scroll {
        display: flex;
        gap: 8px;
        padding: 10px 16px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: white;
    }

    .category-tab.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .category-tab i {
        font-size: 14px;
    }

    .content-container {
        padding: 32px 0 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .stat-card {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    .stat-info p {
        font-size: 12px;
    }

    .community-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .search-filter-group {
        flex-direction: row;
        padding: 6px;
        gap: 8px;
        align-items: center;
    }

    .search-input-wrapper {
        flex: 1;
        min-width: 0;
    }

    .search-input-wrapper i {
        left: 10px;
        font-size: 14px;
    }

    .search-input {
        padding: 8px 8px 8px 32px;
        font-size: 13px;
    }

    .sort-dropdown-wrapper {
        flex-shrink: 0;
    }

    .btn-filter {
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .btn-filter span {
        display: none;
    }

    .btn-filter i:first-child {
        margin-right: 0;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-main {
        padding: 20px;
        border-radius: 16px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-meta-row {
        gap: 12px;
    }

    .detail-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 16px;
        border-top: 1px solid var(--border);
        padding-top: 16px;
    }

    .detail-sidebar {
        display: none;
    }


    .comments-wrapper {
        padding: 16px;
        border-radius: 16px;
    }

    .comment-item {
        flex-direction: column;
        gap: 8px;
    }

    .comment-bubble {
        border-radius: 12px;
    }

    .post-card:hover {
        transform: none;
    }

    .posts-section {
        margin-bottom: 32px;
    }

    .loading-spinner {
        padding: 30px 16px;
        min-height: 150px;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .empty-state i {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .empty-state p {
        font-size: 14px;
    }

    .error-state {
        padding: 40px 16px;
    }

    .error-state i {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .error-state p {
        font-size: 14px;
    }

    .pagination {
        margin-top: 24px;
        gap: 6px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .page-link.prev,
    .page-link.next {
        padding: 0 12px;
    }

    .notice-section {
        margin-bottom: 24px;
    }

    .notice-list {
        gap: 8px;
    }

    .notice-item {
        padding: 16px;
        gap: 12px;
    }

    .notice-title {
        font-size: 14px;
    }

    .notice-meta {
        font-size: 11px;
    }

    .section-header {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-title i {
        font-size: 16px;
    }

    .featured-section {
        margin-bottom: 32px;
    }

    .community-header {
        position: sticky !important;
        top: 102px !important;
        background: white !important;
        z-index: 99 !important;
        padding: 16px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .community-header > div:first-child {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .community-header .btn-filter {
        flex-shrink: 0 !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .community-header h1 {
        flex: 1 !important;
        font-size: 18px !important;
        margin: 0 !important;
        text-align: right !important;
        padding: 0 !important;
    }

    .community-header #submitBtn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        justify-content: center !important;
        margin-top: 0 !important;
    }

    .write-layout {
        max-width: 100%;
    }

    .write-form-card {
        padding: 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-select,
    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .editor-container {
        min-height: 300px;
    }

    .editor-container .ck-editor__editable {
        min-height: 300px;
        padding: 16px;
        font-size: 14px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .detail-sidebar {
        display: none;
    }

    .detail-header {
        padding: 20px 16px;
    }

    .detail-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .detail-meta-row {
        flex-direction: column;
        gap: 12px;
    }

    .detail-author-large {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .detail-author-info {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .detail-author-info .btn-reaction {
        margin-left: auto;
        padding: 6px 10px;
        min-width: auto;
        gap: 4px;
        flex-shrink: 0;
    }

    .detail-author-info .btn-reaction i {
        font-size: 15px;
    }

    .detail-author-info .btn-reaction span {
        font-size: 11px;
    }

    .detail-footer-actions {
        padding: 12px 16px 16px;
        border-top: 1px solid #f1f3f5;
        display: flex;
        justify-content: flex-end;
    }

    .detail-actions {
        justify-content: flex-end;
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    .detail-body {
        padding: 20px 16px;
        font-size: 15px;
    }

    .reaction-container {
        padding: 0 16px 20px;
    }

    .comments-wrapper {
        padding: 20px 16px;
    }

    .comment-form-large {
        padding: 12px;
    }

    .comment-form-large textarea {
        min-height: 60px;
        font-size: 14px;
    }

    .comments-list {
        gap: 12px;
        margin-bottom: 20px;
    }

    .comment-item {
        padding: 12px;
        gap: 10px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .comment-author {
        font-size: 13px;
    }

    .comment-date {
        font-size: 11px;
    }

    .comment-content {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .comment-actions {
        gap: 6px;
        flex-wrap: wrap;
    }

    .btn-comment-like,
    .btn-comment-edit,
    .btn-comment-delete,
    .btn-comment-report {
        padding: 5px 10px;
        font-size: 12px;
    }

    .btn-comment-like i {
        font-size: 12px;
    }

    .comment-like-count {
        font-size: 11px;
    }

    .comment-meta {
        font-size: 12px;
    }

    .comment-text {
        font-size: 13px;
    }

    .content-container {
        margin: 0 !important;
        padding: 32px 0 0;
    }

    .community-hero {
        padding: 20px 16px 16px;
        margin-bottom: 12px;
    }

    .hero-content {
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.4;
    }

    .category-tabs-wrapper {
        display: none !important;
    }

    .sort-dropdown {
        right: 0;
        min-width: 140px;
    }

    .sort-option {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-filter {
        padding: 8px 12px;
        font-size: 13px;
    }

    .community-description {
        padding: 16px 0;
        margin-bottom: 16px;
    }

    .community-description p {
        font-size: 14px;
    }

    .table-sections {
        gap: 16px;
        margin-top: 16px;
    }

    .table-section {
        border-radius: var(--radius-sm);
    }

    .table-header {
        padding: 10px 12px;
    }

    .table-title {
        font-size: 16px;
    }

    .table-title i {
        font-size: 16px;
    }

    .table-wrapper {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .community-table {
        font-size: 12px;
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
        box-sizing: border-box;
    }

    .community-table thead {
        display: none;
    }

    .community-table tbody tr {
        display: block;
        height: auto;
        border-bottom: 1px solid var(--border);
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .community-table tbody td {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-post-cell {
        display: block;
        padding: 14px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-post-header {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        flex-wrap: nowrap;
    }

    .mobile-title-wrapper {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .mobile-post-title {
        flex: 1;
        min-width: 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-dark);
        text-decoration: none;
        line-height: 1.4;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    .mobile-post-title:hover {
        color: var(--primary);
    }

    .mobile-comment-count {
        color: var(--text-gray);
        font-size: 13px;
        font-weight: 500;
        margin-left: 4px;
        display: inline;
    }

    .mobile-post-author {
        font-size: 13px;
        color: var(--text-gray);
        margin-left: auto;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .mobile-post-author::before {
        content: '';
        width: 16px;
        height: 16px;
        background: var(--bg-gray);
        border-radius: 50%;
        display: inline-block;
        flex-shrink: 0;
    }

    .mobile-post-meta {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: var(--text-light);
        flex-wrap: wrap;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .mobile-post-date {
        color: var(--text-light);
        flex-shrink: 0;
        white-space: nowrap;
    }

    .mobile-post-meta .mobile-post-author {
        font-size: 11px;
        color: var(--text-gray);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }

    .mobile-post-views,
    .mobile-post-likes {
        display: flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .mobile-post-views i,
    .mobile-post-likes i {
        font-size: 13px;
        color: var(--text-light);
    }

    .mobile-post-likes i {
        color: var(--primary);
    }

    .mobile-post-row.notice-row .mobile-post-cell {
        background: #fff8f3;
    }

    .mobile-post-row.popular-row .mobile-post-cell {
        background: linear-gradient(90deg, #fff8f3 0%, #fff 100%);
        border-left: 3px solid var(--primary);
    }

    .mobile-post-row:hover .mobile-post-cell {
        background: var(--bg-gray);
    }

    .mobile-post-row.notice-row:hover .mobile-post-cell {
        background: #fff0e6;
    }

    .mobile-post-row.popular-row:hover .mobile-post-cell {
        background: linear-gradient(90deg, #fff0e6 0%, #f9f9f9 100%);
    }

    .col-number,
    .col-title,
    .col-author,
    .col-date,
    .col-views,
    .col-likes {
        display: none;
    }

    .empty-state {
        padding: 30px 15px;
    }

    .empty-state i {
        font-size: 36px;
    }

    .empty-state p {
        font-size: 14px;
    }

    .main-content {
        align-items: center;
    }

    .content-container {
        margin: 0;
        width: 1200px;
    }

    .related-post-author {
        color: var(--primary);
        font-weight: 500;
    }
}