/* ============================================================
   topic.html 独有样式
   用于信息详情页
   ============================================================ */

/* ============================================================
   主容器 (详情页独有)
   ============================================================ */
   #hao2 {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
    min-height: 100vh;
}

/* ============================================================
   顶部导航 (详情页独有，深蓝渐变)
   ============================================================ */
nav {
    background: linear-gradient(135deg, #1a3a6b, #2d5aa0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
nav .logo {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
nav .logo img {
    height: 30px;
    width: auto;
    vertical-align: middle;
}
nav .menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
}
nav .menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}
nav .right-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
nav .right-actions a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}
nav .right-actions a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

nav .right-actions .user-avatar {
    width: 26px !important;      /* 强制宽度 */
    height: 26px !important;     /* 强制高度 */
    border-radius: 50%;
    background: #e0e0e0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    min-width: 26px;             /* 防止被压缩 */
    min-height: 26px;            /* 防止被压缩 */
}

nav .right-actions .user-avatar img {
    width: 26px !important;      /* 强制图片宽度 */
    height: 26px !important;     /* 强制图片高度 */
    object-fit: cover;
    min-width: 26px;
    min-height: 26px;
}

/* ============================================================
   面包屑 (详情页独有)
   ============================================================ */
.mianbaoxie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 8px;
    font-size: 16px;
    color: #999;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}
.mianbaoxie .bread-left a {
    color: #666;
}
.mianbaoxie .bread-left a:hover {
    color: #1a73e8;
}
.mianbaoxie .bread-left .sep {
    color: #ccc;
    margin: 0 2px;
}
.mianbaoxie .top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}
.mianbaoxie .top-actions a {
    color: #666;
    transition: color 0.2s;
}
.mianbaoxie .top-actions a:hover {
    color: #1a73e8;
}
.mianbaoxie .top-actions .report-link {
    color: #e74c3c;
}
.mianbaoxie .top-actions .report-link:hover {
    color: #c0392b;
}
.mianbaoxie .top-actions .unread-badge {
    color: #e74c3c;
    font-weight: 700;
}
.mianbaoxie .top-actions .view-count {
    color: #905858;
}
.mianbaoxie .top-actions .view-count strong {
    color: #333;
}

/* ============================================================
   信息主体
   ============================================================ */
.info-main {
    padding: 0 10px 10px;
}

/* 标题 */
.c-title {
    font-size: 22px;
    font-weight: 560;
    line-height: 1.5;
    padding: 14px 0 8px;
    color: #222;
    word-break: break-word;
}
.top-badge {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    font-size: 12px;
    padding: 1px 14px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
}

/* 信息属性条 */
.info-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 0 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #888;
}
.info-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.info-meta .meta-item .label {
    color: #bbb;
}
.info-meta .meta-item a {
    color: #1a73e8;
}
.info-meta .meta-item a:hover {
    text-decoration: underline;
}
.info-meta .expiry-tag {
    display: inline-block;
    padding: 1px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.info-meta .expiry-tag.soon {
    color: #fff;
    background: #e74c3c;
}
.info-meta .expiry-tag.valid {
    color: #fff;
    background: #27ae60;
}
.info-meta .expiry-tag.long {
    color: #fff;
    background: #3498db;
}
.info-meta .cate-tag {
    display: inline-block;
    background: #fef3e2;
    color: #e67e22;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 24px;
}
.info-meta .cate-tag a {
    color: #e67e22;
}
.info-meta .region-tag {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 24px;
}
.info-meta .region-tag a {
    color: #1a73e8;
}
.info-meta .town-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #388e3c;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 24px;
}
.info-meta .town-tag a {
    color: #388e3c;
}
.info-meta .author-link {
    color: #555;
    font-weight: 500;
}
.info-meta .author-link:hover {
    color: #1a73e8;
}

/* 正文 */
.infobody {
    font-size: 16px;
    line-height: 1.9;
    padding: 6px 0;
    color: #333;
    word-break: break-word;
}
.infobody img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 6px 0;
    display: block;
}

/* ============================================================
   联系方式卡片
   ============================================================ */
.contact-card {
    background: #fdf6ed;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 4px 0 6px;
    border-left: 4px solid #e67e22;
    border-right: 1px solid #f0e0cc;
    border-top: 1px solid #f0e0cc;
    border-bottom: 1px solid #f0e0cc;
}
.contact-card .contact-title {
    font-size: 13px;
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-card .contact-body {
    font-size: 15px;
    color: #222;
    line-height: 1.7;
}
.contact-card .contact-body .phone-number {
    font-size: 20px;
    font-weight: 700;
    color: #d35400;
    letter-spacing: 1px;
}
.contact-card .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.contact-card .contact-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.contact-card .contact-actions .btn-phone {
    background: #e67e22;
    color: #fff;
}
.contact-card .contact-actions .btn-phone:hover {
    background: #d35400;
}
.contact-card .contact-actions .btn-outline {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
}
.contact-card .contact-actions .btn-outline:hover {
    background: #f5f0e8;
}
.contact-card .contact-actions .btn-login {
    background: #1a73e8;
    color: #fff;
}
.contact-card .contact-actions .btn-login:hover {
    background: #1557b0;
}

/* ============================================================
   互动栏
   ============================================================ */
.interact-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 3px 0 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #999;
}
.interact-bar .stat {
    display: flex;
    align-items: center;
    gap: 3px;
}
.interact-bar .stat .num {
    font-weight: 600;
    color: #333;
}
.interact-bar .stat a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}
.interact-bar .stat a:hover {
    color: #e67e22;
    text-decoration: underline;
}
.interact-bar .action-link {
    color: #e31c1c;
    padding: 4px 10px;
    border-radius: 16px;
    transition: background 0.2s, color 0.2s;
    background: #f5f5f5;
}
.interact-bar .action-link:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

/* ============================================================
   标签
   ============================================================ */
.tag-section {
    padding: 6px 0 2px;
    font-size: 12px;
    color: #bbb;
}
.tag-section a {
    display: inline-block;
    background: #f5f5f5;
    color: #888;
    font-weight: 400;
    padding: 1px 1px;
    border-radius: 10px;
    margin: 1px 4px 1px 0;
    font-size: 12px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.tag-section a:hover {
    background: #e8e8e8;
    color: #555;
}

/* ============================================================
   信息卡片 (米黄色背景)
   ============================================================ */
.info-card {
    background: #eaead1;
    border: 1px solid #dcd5be;
    border-radius: 8px;
    font-size: 14px;
    line-height: 28px;
    margin: 14px 0 10px;
    padding: 2px 0;
}
.info-card ul {
    padding: 4px 12px;
    margin: 0;
}
.info-card ul li {
    background-image: url(/static/gqinfo/img/i2.png);
    background-repeat: no-repeat;
    background-position: 0 10px;
    padding-left: 18px;
    line-height: 34px;
    border-bottom: 1px dashed #d5c8b8;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info-card ul li:last-child {
    border-bottom: none;
}
.info-card ul li a {
    color: #1a73e8;
}
.info-card ul li a:hover {
    text-decoration: underline;
}
.xxdbtscss {
    color: #7c1717;
    font-size: 14px;
    font-weight: 600;
}
.ydcs {
    color: #39395d;
    font-size: 14px;
    float: right;
}
.ydcs .expiry-number {
    color: #e43131;
    font-size: 17px;
    font-weight: 700;
}
.bjzdcss a {
    text-decoration: none;
}
.bjzdcss a:hover {
    text-decoration: underline;
}
.bjzdcss .edit-link {
    color: #08129c;
}
.bjzdcss .delete-link {
    color: #08129c;
}
.bjzdcss .style-link {
    color: #9c0830;
    font-weight: 600;
}
.bjzdcss .refresh-link {
    color: #08129c;
}
.bjzdcss .top-link {
    color: #08129c;
}

/* ============================================================
   评论区
   ============================================================ */
.comment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 12px;
}
.comment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e0d4;
}
.comment-divider .title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.comment-divider .count {
    font-size: 13px;
    color: #999;
}

.reply-form-wrap {
    background: #f7f5f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #e8e0d4;
}
.reply-form-wrap textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    background: #fff;
}
.reply-form-wrap textarea:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.08);
}
.reply-form-wrap .submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.reply-form-wrap .submit-row button {
    background: #e67e22;
    color: #fff;
    padding: 8px 28px;
    border-radius: 20px;
    font-size: 15px;
    transition: background 0.2s;
}
.reply-form-wrap .submit-row button:hover {
    background: #d35400;
}
.reply-form-wrap .submit-row button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reply-list {
    padding: 0;
    margin: 0;
}
.reply-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f0ece3;
}
.reply-list li:last-child {
    border-bottom: none;
}
.reply-list .reply-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}
.reply-list .reply-header .floor {
    color: #bbb;
    font-weight: 500;
}
.reply-list .reply-header .reply-jump {
    color: #e67e22;
    cursor: pointer;
    font-size: 13px;
    margin-left: 6px;
}
.reply-list .reply-header .reply-jump:hover {
    text-decoration: underline;
}
.reply-list .reply-header .reply-jump img {
    vertical-align: middle;
    width: 16px;
}
.reply-list .reply-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
    padding-left: 4px;
}
.reply-list .reply-body img {
    max-width: 100%;
    border-radius: 4px;
}
.reply-list .reply-admin-action {
    font-size: 12px;
}
.reply-list .reply-admin-action a {
    color: #e74c3c;
}
.reply-list .reply-admin-action a:hover {
    text-decoration: underline;
}
.empty-reply {
    text-align: center;
    padding: 30px 0;
    color: #bbb;
    font-size: 14px;
}

/* ============================================================
   评论分页 (与列表页分页不同)
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0 8px;
    flex-wrap: wrap;
    gap: 4px;
}
.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
}
.pagination ul li {
    display: inline-block;
}
.pagination ul li a,
.pagination ul li .active {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}
.pagination ul li a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}
.pagination ul li .active {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}
.pagination ul li.disabled .active {
    background: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: default;
}

/* ============================================================
   相关推荐
   ============================================================ */
.related-section {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f0ece3;
}
.related-section .related-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.related-section ul {
    padding: 0;
    margin: 0;
}
.related-section ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f1ea;
    overflow: hidden;
    text-overflow: ellipsis;
    /*white-space: nowrap;*/
}
.related-section ul li a {
    color: #0f0cbf;
    font-size: 16px;
}
.related-section ul li a:hover {
    text-decoration: underline;
    color: #1a73e8;
}
.related-section ul li .date {
    color: #c75656;
    font-size: 13px;
    margin-left: 4px;
}

/* ============================================================
   页脚
   ============================================================ */
footer {
    padding: 20px 12px 16px;
    border-top: 1px solid #e8e0d4;
    margin-top: 3px;
    text-align: center;
    font-size: 14px;
    color: #666;
}
footer a {
    color: #888;
    margin: 0 6px;
}
footer a:hover {
    color: #333;
}

/* ============================================================
   工具类
   ============================================================ */
.text-center {
    text-align: center;
}
.hidden {
    display: none;
}
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ============================================================
   topic.html 响应式
   ============================================================ */
@media (min-width: 769px) {
    #hao2 {
        border-radius: 8px;
    }
    .c-title {
        font-size: 20px;
    }
    .info-meta {
        font-size: 14px;
        gap: 8px 16px;
    }
    .contact-card .contact-body .phone-number {
        font-size: 24px;
    }
    nav .right-actions a {
        font-size: 14px;
        padding: 4px 14px;
    }
}

@media (max-width: 768px) {
    #hao2 {
        border-radius: 0;
        box-shadow: none;
    }
    nav {
        height: 44px;
        padding: 0 10px;
    }
    nav .logo {
        font-size: 16px;
    }
    nav .logo img {
        height: 26px;
    }
    nav .right-actions a {
        font-size: 12px;
        padding: 3px 8px;
    }
    .c-title {
        font-size: 17px;
        padding: 10px 0 6px;
    }
    .info-meta {
        font-size: 14px;
        gap: 4px 8px;
        padding: 6px 0 10px;
    }
    .info-meta .expiry-tag,
    .info-meta .cate-tag,
    .info-meta .region-tag,
    .info-meta .town-tag {
        font-size: 14px;
        line-height: 20px;
        padding: 0 10px;
    }
    .infobody {
        font-size: 15px;
        padding: 5px 0;
    }
    .contact-card {
        padding: 12px 14px;
    }
    .contact-card .contact-body .phone-number {
        font-size: 18px;
    }
    .contact-card .contact-actions .btn {
        padding: 5px 16px;
        font-size: 13px;
    }
    .interact-bar {
        font-size: 14px;
        gap: 5px;
        padding: 5px 0 5px;
    }
    .interact-bar .action-link {
        padding: 3px 6px;
        font-size: 13px;
    }
    .info-card {
        font-size: 14px;
    }
    .info-card ul li {
        line-height: 30px;
        padding-left: 16px;
    }
    .xxdbtscss {
        font-size: 13px;
    }
    .ydcs {
        font-size: 13px;
    }
    .ydcs .expiry-number {
        font-size: 15px;
    }
    .reply-list .reply-body {
        font-size: 14px;
    }
    .mianbaoxie {
        padding: 8px 10px 6px;
        font-size: 16px;
    }
    .mianbaoxie .top-actions {
        font-size: 14px;
        gap: 6px;
    }
    .pagination ul li a,
    .pagination ul li .active {
        padding: 4px 10px;
        font-size: 12px;
    }
    .related-section ul li a {
        font-size: 14px;
    }
    footer {
        font-size: 14px;
        padding: 14px 10px;
    }
}

@media (max-width: 400px) {
    .c-title {
        font-size: 17px;
    }
    .info-meta {
        font-size: 14px;
        gap: 3px 4px;
    }
    .info-meta .expiry-tag,
    .info-meta .cate-tag,
    .info-meta .region-tag,
    .info-meta .town-tag {
        font-size: 14px;
        line-height: 18px;
        padding: 0 8px;
    }
    .infobody {
        font-size: 14px;
    }
    .contact-card .contact-body .phone-number {
        font-size: 16px;
    }
    .contact-card .contact-actions .btn {
        padding: 4px 14px;
        font-size: 12px;
    }
}