/* ============================================
   送花常识 - 首页 + 详情页 共用样式
   ============================================ */

   .main-content {
    padding: 0 0 40px;
    background: #f8f9fa;
    min-height: 500px;
}

.container {
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
    padding: 10px 0 20px;
    font-size: 14px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    padding: 4px 6px;
    border-radius: 4px;
}

.breadcrumb a:hover {
    color: #DD302D;
    background: rgba(221, 48, 45, 0.06);
}

.breadcrumb .separator {
    margin: 0 6px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* ============================================
   文章内容主体
   ============================================ */
.content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 45px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

/* ============================================
   文章列表页样式
   ============================================ */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    padding-left: 8px;
}

.article-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #DD302D;
}

.article-meta {
    font-size: 14px;
    color: #999;
    margin: 0 0 10px 0;
}

.article-meta .sep {
    margin: 0 8px;
    color: #ddd;
}

.article-summary {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.article-summary a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.article-summary a:hover {
    color: #DD302D;
}

/* ============================================
   文章详情页样式
   ============================================ */
.content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.article-meta.text-center {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding: 12px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.article-meta.text-center a {
    color: #DD302D;
    text-decoration: none;
}

.article-meta.text-center a:hover {
    text-decoration: underline;
}

.article-meta.text-center .sep {
    margin: 0 8px;
    color: #ddd;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.9;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 32px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px 0;
}

.article-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: #444;
    margin: 20px 0 10px 0;
}

.article-content ul,
.article-content ol {
    margin: 12px 0 18px 24px;
    padding-left: 8px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.article-content a {
    color: #DD302D;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #DD302D;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.article-content table tr:nth-child(even) {
    background: #fafafa;
}

.article-content table tr:hover {
    background: #f5f5f5;
}

/* ============================================
   返回按钮
   ============================================ */
.back-link {
    display: inline-block;
    margin-top: 28px;
    padding: 10px 28px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.back-link:hover {
    background: #DD302D;
    color: #fff;
    border-color: #DD302D;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(221, 48, 45, 0.3);
}

/* ============================================
   分页导航
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.pagination a,
.pagination .active,
.pagination .disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.pagination a {
    color: #555;
}

.pagination a:hover {
    border-color: #DD302D;
    color: #DD302D;
    background: #fdf6f5;
}

.pagination .active {
    background: #DD302D;
    border-color: #DD302D;
    color: #fff;
    font-weight: 600;
    cursor: default;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #e8e8e8;
}

.pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #999;
    font-size: 14px;
}

/* ============================================
   最新文章列表（详情页）
   ============================================ */
.latestposts {
    margin-top: 0;
    padding-bottom: 40px;
}

.latestposts .posts-hd {
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 0 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.latestposts .posts-hd h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.latestposts .posts-hd a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.latestposts .posts-hd a:hover {
    color: #DD302D;
}

.latestposts .posts-bd {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    padding: 8px 24px 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    border-top: none;
}

.latestposts .posts-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.latestposts .posts-item {
    flex: 0 1 33.33%;
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
}

.latestposts .posts-item:last-child {
    border-bottom: none;
}

.latestposts .posts-item a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latestposts .posts-item a:hover {
    color: #DD302D;
}

.latestposts .posts-item::before {
    position: absolute;
    content: "";
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #DD302D;
}

/* ============================================
   空状态
   ============================================ */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ============================================
   响应式 - 平板 (≤992px)
   ============================================ */
@media (max-width: 992px) {
    .content {
        padding: 30px 30px;
    }

    .content h1 {
        font-size: 24px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content p {
        font-size: 15px;
    }

    .article-content img {
        max-width: 100%;
    }

    .latestposts .posts-item {
        flex: 0 1 50%;
    }
}

/* ============================================
   响应式 - 手机 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .main-content {
        padding: 0 0 30px;
    }

    /* ===== 面包屑导航 - 减小顶部内边距 ===== */
    .breadcrumb {
        font-size: 12px;
        padding: 14px 0 12px;
        margin-top: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        line-height: 1.6;
    }

    .breadcrumb a {
        padding: 2px 4px;
        font-size: 12px;
    }

    .breadcrumb .separator {
        margin: 0 4px;
        font-size: 12px;
    }

    .breadcrumb .current {
        font-size: 12px;
    }

    /* ===== 内容区 ===== */
    .content {
        padding: 20px 18px;
        border-radius: 12px;
        margin-top: 0;
    }

    .content h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-meta {
        font-size: 12px;
    }

    .article-meta.text-center {
        font-size: 12px;
        padding: 8px 0 14px;
        margin-bottom: 16px;
    }

    .article-summary {
        font-size: 14px;
        line-height: 1.7;
    }

    .article-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .article-content p {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .article-content h2 {
        font-size: 19px;
        margin: 24px 0 12px 0;
    }

    .article-content h3 {
        font-size: 17px;
        margin: 18px 0 10px 0;
    }

    .article-content h4 {
        font-size: 15px;
    }

    .article-content ul,
    .article-content ol {
        margin: 10px 0 14px 16px;
    }

    .article-content li {
        margin-bottom: 6px;
    }

    .article-content img {
        border-radius: 8px;
        margin: 14px auto;
    }

    .article-content blockquote {
        padding: 12px 16px;
        margin: 12px 0;
    }

    .article-content table {
        font-size: 12px;
    }

    .article-content table th,
    .article-content table td {
        padding: 6px 10px;
    }

    .back-link {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* ===== 分页 ===== */
    .pagination {
        gap: 4px;
        margin-top: 20px;
        padding-top: 16px;
    }

    .pagination a,
    .pagination .active,
    .pagination .disabled {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 10px;
        border-radius: 6px;
    }

    .pagination .ellipsis {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }

    /* ===== 最新文章 ===== */
    .latestposts .posts-hd {
        padding: 0 16px;
        min-height: 44px;
    }

    .latestposts .posts-hd h4 {
        font-size: 16px;
    }

    .latestposts .posts-bd {
        padding: 4px 16px 12px;
    }

    .latestposts .posts-item {
        flex: 0 1 100%;
        font-size: 13px;
        padding: 8px 0 8px 24px;
    }

    .latestposts .posts-item::before {
        top: 14px;
        width: 5px;
        height: 5px;
    }
}

/* ============================================
   响应式 - 小屏手机 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .main-content {
        padding: 0 0 20px;
    }

    /* ===== 面包屑导航 - 减小顶部内边距 ===== */
    .breadcrumb {
        font-size: 11px;
        padding: 12px 0 10px;
        margin-top: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        line-height: 1.6;
    }

    .breadcrumb a {
        font-size: 11px;
        padding: 2px 3px;
    }

    .breadcrumb .separator {
        font-size: 11px;
        margin: 0 3px;
    }

    .breadcrumb .current {
        font-size: 11px;
    }

    /* ===== 内容区 ===== */
    .content {
        padding: 16px 14px;
        border-radius: 10px;
    }

    .content h1 {
        font-size: 18px;
    }

    .article-title {
        font-size: 16px;
    }

    .article-meta {
        font-size: 11px;
    }

    .article-meta.text-center {
        font-size: 11px;
        padding: 6px 0 12px;
    }

    .article-meta.text-center .sep {
        margin: 0 4px;
    }

    .article-summary {
        font-size: 13px;
        line-height: 1.6;
    }

    .article-content {
        font-size: 13px;
        line-height: 1.7;
    }

    .article-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .article-content h2 {
        font-size: 17px;
        margin: 20px 0 10px 0;
    }

    .article-content h3 {
        font-size: 15px;
        margin: 16px 0 8px 0;
    }

    .article-content h4 {
        font-size: 14px;
    }

    .article-content ul,
    .article-content ol {
        margin: 8px 0 12px 12px;
    }

    .article-content li {
        margin-bottom: 4px;
    }

    .article-content blockquote {
        padding: 10px 14px;
        margin: 10px 0;
    }

    .article-content table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content table th,
    .article-content table td {
        padding: 4px 8px;
    }

    .back-link {
        padding: 6px 16px;
        font-size: 12px;
        margin-top: 20px;
    }

    /* ===== 分页 ===== */
    .pagination {
        gap: 3px;
        margin-top: 16px;
        padding-top: 12px;
    }

    .pagination a,
    .pagination .active,
    .pagination .disabled {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
        border-radius: 5px;
    }

    /* 手机端隐藏首页/尾页，节省空间 */
    .pagination a:first-child,
    .pagination a:last-child,
    .pagination .disabled:first-child,
    .pagination .disabled:last-child {
        display: none;
    }

    .pagination .ellipsis {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* ===== 最新文章 ===== */
    .latestposts .posts-hd {
        padding: 0 12px;
        min-height: 40px;
    }

    .latestposts .posts-hd h4 {
        font-size: 14px;
    }

    .latestposts .posts-hd a {
        font-size: 12px;
    }

    .latestposts .posts-bd {
        padding: 4px 12px 10px;
    }

    .latestposts .posts-item {
        font-size: 12px;
        padding: 6px 0 6px 20px;
    }

    .latestposts .posts-item::before {
        top: 12px;
        width: 4px;
        height: 4px;
        left: 6px;
    }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .main-content {
        background: #fff;
        padding: 20px 0;
    }

    .content {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .breadcrumb {
        display: none !important;
    }

    .back-link {
        display: none !important;
    }

    .latestposts {
        display: none !important;
    }

    .pagination {
        display: none !important;
    }
}