﻿/* ===== 造价吐槽板块样式（tc- 前缀避免与站点样式冲突） ===== */
:root {
    --tc-primary: #2b6cb0;
    --tc-bg: #f4f6f9;
    --tc-card: #ffffff;
    --tc-border: #e3e8ef;
    --tc-text: #2d3748;
    --tc-text-light: #718096;
    --tc-like: #e05656;
}

.tc-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 10px;
}

/* ===== 横幅 ===== */
.tc-banner {
    background: linear-gradient(135deg, #2b6cb0 0%, #3b82c4 60%, #4ba3c7 100%);
    border-radius: 12px;
    color: #fff;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tc-banner h1 { font-size: 22px; margin: 0 0 6px; }
.tc-banner p { font-size: 13px; opacity: .92; margin: 0; }

/* ===== 工具栏 ===== */
.tc-toolbar { display: flex; gap: 12px; margin: 14px 0; align-items: center; flex-wrap: wrap; }
.tc-search { flex: 1; min-width: 260px; display: flex; }
.tc-search input {
    flex: 1; border: 1px solid var(--tc-border); border-right: none;
    border-radius: 8px 0 0 8px; padding: 10px 14px; font-size: 14px; outline: none; background: var(--tc-card);
}
.tc-search input:focus { border-color: var(--tc-primary); }
.tc-search button {
    border: none; background: var(--tc-primary); color: #fff; padding: 0 22px;
    border-radius: 0 8px 8px 0; cursor: pointer; font-size: 14px;
}
.tc-sort { display: flex; border: 1px solid var(--tc-border); border-radius: 8px; overflow: hidden; background: var(--tc-card); }
.tc-sort button { border: none; background: transparent; padding: 10px 18px; cursor: pointer; font-size: 14px; color: var(--tc-text-light); }
.tc-sort button.tc-active { background: var(--tc-primary); color: #fff; }
.tc-btn-post {
    border: none; background: linear-gradient(135deg, #e05656, #d63f3f); color: #fff;
    padding: 10px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
    box-shadow: 0 2px 8px rgba(224,86,86,.35);
}
.tc-btn-post:hover { filter: brightness(1.06); }

/* ===== 双栏布局 ===== */
.tc-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .tc-layout { grid-template-columns: 1fr; } }

/* ===== 左侧列表 ===== */
.tc-list-panel { background: var(--tc-card); border: 1px solid var(--tc-border); border-radius: 10px; overflow: hidden; }
.tc-panel-head {
    padding: 12px 16px; font-size: 14px; font-weight: 600;
    border-bottom: 1px solid var(--tc-border); display: flex; justify-content: space-between;
}
.tc-count { color: var(--tc-text-light); font-weight: 400; font-size: 12px; }
.tc-item { padding: 13px 16px; border-bottom: 1px solid #f0f3f7; cursor: pointer; transition: background .15s; }
.tc-item:hover { background: #f7fafc; }
.tc-item.tc-current { background: #eef5fc; border-left: 3px solid var(--tc-primary); padding-left: 13px; }
.tc-item-title {
    font-size: 14px; font-weight: 600; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-item-meta { margin-top: 6px; font-size: 12px; color: var(--tc-text-light); display: flex; gap: 14px; }
.tc-pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; font-size: 13px; color: var(--tc-text-light); }
.tc-pager button {
    border: 1px solid var(--tc-border); background: #fff; padding: 6px 14px;
    border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--tc-text);
}
.tc-pager button:disabled { opacity: .4; cursor: default; }
.tc-loading { text-align: center; color: var(--tc-text-light); font-size: 13px; padding: 26px 0; }

/* ===== 右侧信息流（全部吐槽卡片） ===== */
.tc-feed { display: flex; flex-direction: column; gap: 14px; }
.tc-card {
    background: var(--tc-card); border: 1px solid var(--tc-border);
    border-radius: 10px; padding: 20px 24px;
}
.tc-card.tc-flash { border-color: var(--tc-primary); box-shadow: 0 0 0 3px rgba(43,108,176,.18); transition: all .4s; }
.tc-card-title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.tc-card-meta {
    margin: 8px 0 0; padding-bottom: 10px; border-bottom: 1px dashed var(--tc-border);
    font-size: 13px; color: var(--tc-text-light); display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.tc-card-content { padding-top: 12px; font-size: 15px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.tc-mask { background: #fff3cd; padding: 0 2px; border-radius: 3px; }
.tc-card-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tc-btn-like {
    border: 1px solid #f3c4c4; background: #fff5f5; color: var(--tc-like);
    padding: 6px 18px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all .15s;
}
.tc-btn-like:hover { background: #ffecec; }
.tc-btn-like.tc-liked { background: var(--tc-like); color: #fff; border-color: var(--tc-like); }
.tc-btn-share {
    border: 1px solid var(--tc-border); background: #fff; color: var(--tc-primary);
    padding: 6px 18px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all .15s;
}
.tc-btn-share:hover { background: #eef5fc; border-color: var(--tc-primary); }
.tc-btn-comment {
    border: 1px solid var(--tc-border); background: #fff; color: var(--tc-text);
    padding: 6px 18px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all .15s;
}
.tc-btn-comment:hover { background: #f7fafc; border-color: #cbd5e0; }
.tc-caret { display: inline-block; margin-left: 4px; font-size: 11px; color: var(--tc-text-light); }

/* ===== 卡片内评论（折叠区） ===== */
.tc-comments-box {
    margin-top: 14px; border-top: 1px solid var(--tc-border); padding-top: 14px;
    background: #fbfcfe; border-radius: 0 0 10px 10px;
}
.tc-comments-inner { padding: 0 2px; }
.tc-empty-cmt { color: var(--tc-text-light); font-size: 13px; padding: 4px 0 10px; }
.tc-comment { background: #f2f5f9; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.tc-comment-meta { font-size: 12px; color: var(--tc-text-light); margin-bottom: 4px; display: flex; justify-content: space-between; }
.tc-comment-text { font-size: 14px; line-height: 1.7; word-break: break-word; }
.tc-comment-form { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.tc-cmt-wrap { flex: 1; position: relative; }
.tc-comment-form textarea {
    width: 100%; border: 1px solid var(--tc-border); border-radius: 8px;
    padding: 9px 14px; font-size: 14px; font-family: inherit; outline: none; background: #fff;
    line-height: 1.7; resize: none; overflow-y: auto; min-height: 38px; max-height: 140px;
}
.tc-comment-form textarea:focus { border-color: var(--tc-primary); }
.tc-emoji-btn {
    border: 1px solid var(--tc-border); background: #fff; color: var(--tc-text);
    width: 38px; height: 38px; border-radius: 8px; cursor: pointer; font-size: 17px; flex: 0 0 auto;
}
.tc-emoji-btn:hover { background: #f7fafc; border-color: #cbd5e0; }
.tc-emoji-panel {
    position: absolute; left: 0; bottom: 46px; z-index: 20;
    background: #fff; border: 1px solid var(--tc-border); border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20,30,45,.14); padding: 8px;
    display: grid; grid-template-columns: repeat(10, 30px); gap: 2px;
}
.tc-emoji-item {
    border: none; background: transparent; font-size: 19px; line-height: 30px;
    height: 30px; border-radius: 6px; cursor: pointer; padding: 0;
}
.tc-emoji-item:hover { background: #f0f4f9; }
.tc-comment-form > button:last-child {
    border: none; background: var(--tc-primary); color: #fff; border-radius: 8px;
    padding: 0 22px; height: 38px; cursor: pointer; font-size: 14px; flex: 0 0 auto;
}

/* ===== 发帖弹层 ===== */
.tc-modal-mask {
    display: none; position: fixed; inset: 0; background: rgba(20,30,45,.55);
    z-index: 1000; align-items: center; justify-content: center; padding: 16px;
}
.tc-modal-mask.tc-show { display: flex; }
.tc-modal { background: #fff; border-radius: 12px; width: 640px; max-width: 100%; max-height: 90vh; overflow-y: auto; padding: 26px 30px; }
.tc-modal h2 { font-size: 19px; margin: 0 0 14px; }
.tc-warn {
    background: #fff8e1; border: 1px solid #f6c344; border-radius: 8px;
    padding: 12px 16px; font-size: 13px; line-height: 1.8; color: #8a6116; margin-bottom: 18px;
}
.tc-warn b { color: #c05621; }
.tc-modal label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.tc-modal input[type=text], .tc-modal textarea {
    width: 100%; border: 1px solid var(--tc-border); border-radius: 8px;
    padding: 10px 14px; font-size: 14px; font-family: inherit; outline: none;
}
.tc-modal textarea { height: 170px; resize: vertical; line-height: 1.8; }
.tc-modal input:focus, .tc-modal textarea:focus { border-color: var(--tc-primary); }
.tc-field-tip { font-size: 12px; color: var(--tc-text-light); margin-top: 6px; line-height: 1.7; }
.tc-modal-btns { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.tc-modal-btns button { padding: 10px 26px; border-radius: 8px; font-size: 14px; cursor: pointer; border: 1px solid var(--tc-border); background: #fff; }
.tc-modal-btns .tc-ok { background: var(--tc-primary); color: #fff; border-color: var(--tc-primary); font-weight: 600; }
.tc-submit-tip { display: none; background: #e6f4ea; color: #2f855a; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-top: 16px; }
.tc-submit-tip.tc-show { display: block; }

/* ===== 提示浮层 ===== */
.tc-toast {
    display: none; position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%);
    background: rgba(30,40,55,.92); color: #fff; font-size: 14px;
    padding: 10px 24px; border-radius: 24px; z-index: 1100; max-width: 86vw; text-align: center;
}
.tc-toast.tc-show { display: block; }
