/* ============================================================
   TorchLink 前台主题样式
   源文件: public/assets/less/torchlink.less（改动请同步，后续可用 grunt 构建压缩版）
   ============================================================ */

body {
    background: #f7f7f7;
    padding-top: 85px;
}

/* ---------- 导航 ---------- */
.tl-navbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.tl-navbar .tl-brand {
    color: #e8721c;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 15px;
    height: auto !important;
}
.tl-navbar {
    min-height: 85px;
}
.tl-navbar .tl-brand .tl-logo {
    height: 65px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.tl-navbar .navbar-nav > li > a {
    padding-top: 28px;
    padding-bottom: 28px;
    line-height: 18px;
}
.tl-navbar .navbar-toggle {
    margin-top: 22px;
    margin-bottom: 22px;
}
.tl-navbar .nav > li > a {
    color: #444;
}
.tl-navbar .nav > li > a:hover,
.tl-navbar .nav > li > a:focus {
    color: #e8721c;
}

/* ---------- Hero ---------- */
.tl-hero {
    margin-top: -20px;
    padding: 70px 0 60px;
    background: linear-gradient(135deg, #e8721c 0%, #f0a03c 60%, #f6c05e 100%);
    color: #fff;
    text-align: center;
}
.tl-hero h1 {
    font-size: 34px;
    margin-top: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.tl-hero .lead {
    font-size: 17px;
    opacity: .95;
}
.tl-hero-actions {
    margin-top: 28px;
}
.tl-btn-ghost {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}
.tl-btn-ghost:hover,
.tl-btn-ghost:focus {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

/* Hero 改版：左文右图 */
.tl-hero-new {
    background: linear-gradient(120deg, #e8721c 0%, #f08c2e 55%, #f6b35e 100%);
    text-align: left;
}
.tl-hero-row {
    display: flex;
    align-items: center;
}
.tl-hero-text h1 {
    font-size: 36px;
    line-height: 1.35;
}
.tl-hero-search {
    margin-top: 25px;
    display: flex;
    max-width: 460px;
}
.tl-hero-search .form-control {
    border: 0;
    border-radius: 4px 0 0 4px;
    height: 44px;
    box-shadow: none;
}
.tl-hero-search .btn {
    border-radius: 0 4px 4px 0;
    height: 44px;
    white-space: nowrap;
}
.tl-hero-visual {
    position: relative;
    padding: 10px 0;
}
.tl-hero-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    transform: rotate(2deg);
}
.tl-hero-photo img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.tl-hero-badge {
    position: absolute;
    left: -14px;
    bottom: 22px;
    background: #fff;
    color: #e8721c;
    font-weight: bold;
    border-radius: 20px;
    padding: 7px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.tl-hero-badge i {
    margin-right: 5px;
}
.tl-hero-page {
    padding: 45px 0 40px;
    text-align: center;
}
.tl-hero-page h1 {
    font-size: 28px;
}

/* ---------- 主容器 / 面板 ---------- */
.tl-main {
    padding-bottom: 50px;
}
.tl-panel {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    padding: 20px;
    margin-bottom: 20px;
}
.tl-panel-head {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}
.tl-panel-head h3 {
    margin: 0;
    font-size: 17px;
    color: #333;
}
.tl-panel-head h3 i {
    color: #e8721c;
    margin-right: 6px;
}
.tl-more {
    font-size: 13px;
    float: right;
    margin-top: 2px;
    color: #999;
}
.tl-more:hover {
    color: #e8721c;
}

/* ---------- 数据条 ---------- */
.tl-stats {
    margin-top: -34px;
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
}
.tl-stat-tile {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    text-align: center;
    padding: 16px 8px;
    margin-bottom: 10px;
}
.tl-stat-tile .num {
    font-size: 26px;
    font-weight: bold;
    color: #e8721c;
    line-height: 1.2;
}
.tl-stat-tile .label {
    color: #999;
    font-size: 13px;
    margin-top: 3px;
}
.tl-stat-tile .label i {
    margin-right: 4px;
}

/* ---------- 版块标题 ---------- */
.tl-section-head {
    margin: 28px 0 16px;
    overflow: hidden;
}
.tl-section-head h2 {
    display: inline;
    font-size: 20px;
    color: #333;
    margin: 0;
}
.tl-section-head h2 i {
    color: #e8721c;
    margin-right: 8px;
}
.tl-section-head > span {
    color: #aaa;
    font-size: 13px;
    margin-left: 12px;
}
.tl-more-link {
    float: right;
    color: #999;
    font-size: 13px;
    margin-top: 6px;
}
.tl-more-link:hover {
    color: #e8721c;
}

/* ---------- 栏目图文卡（渐变版） ---------- */
.tl-columns {
    margin-bottom: 10px;
}
.tl-columns .tl-column-card {
    background: linear-gradient(135deg, #f6a13c 0%, #e8721c 100%);
    border-left: 0;
    color: #fff;
    padding: 22px 18px 16px;
    min-height: 118px;
    display: block;
}
.tl-columns .tl-column-card i {
    display: block;
    margin-bottom: 10px;
    opacity: .95;
}
.tl-columns .tl-column-card .tl-column-name {
    font-size: 17px;
    display: block;
    font-weight: bold;
}
.tl-columns .tl-column-card .tl-column-count {
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
.tl-columns .tl-column-card:hover {
    transform: translateY(-3px);
    transition: all .2s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.tl-columns .tl-column-card .tl-column-more {
    display: none;
}

/* ---------- 角色入口卡 ---------- */
.tl-roles {
    margin-bottom: 10px;
}
.tl-role-card {
    display: block;
    background: #fff;
    border: 1px solid #f0e4d8;
    border-radius: 6px;
    padding: 22px 20px 18px;
    color: #444;
    text-align: center;
    margin-bottom: 15px;
    transition: all .2s;
}
.tl-role-card:hover {
    text-decoration: none;
    border-color: #e8721c;
    box-shadow: 0 6px 18px rgba(232, 114, 28, .18);
    transform: translateY(-3px);
}
.tl-role-card i {
    font-size: 34px;
    color: #e8721c;
    display: block;
    margin-bottom: 10px;
}
.tl-role-card h4 {
    margin: 0 0 8px;
    color: #333;
}
.tl-role-card p {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 20px;
}
.tl-role-more {
    color: #e8721c;
    font-size: 13px;
}

/* ---------- 热门大卡 / 自动封面 ---------- */
.tl-hot-card {
    display: block;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    margin-bottom: 20px;
    color: #444;
    transition: all .2s;
    height: 100%;
}
.tl-hot-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}
.tl-hot-cover {
    height: 170px;
    overflow: hidden;
    position: relative;
}
.tl-hot-cover .tl-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tl-hot-cover .tl-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.tl-cover-fallback i {
    opacity: .9;
}
.tl-cover-fallback span {
    margin-top: 8px;
    font-size: 14px;
    letter-spacing: 2px;
    opacity: .95;
}
.tl-hot-body {
    padding: 14px 16px 16px;
}
.tl-hot-body h4 {
    margin: 8px 0 6px;
    font-size: 16px;
    line-height: 1.45;
    color: #333;
}
.tl-hot-card:hover .tl-hot-body h4 {
    color: #e8721c;
}
.tl-hot-body .tl-excerpt {
    margin-bottom: 8px;
}

/* 缩略图（列表/相关文章里的自动封面） */
.tl-thumb-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}
.tl-thumb-img.tl-cover-fallback {
    width: 120px;
    height: 80px;
}
.tl-thumb-img.tl-cover-fallback i {
    font-size: 18px !important;
}
.tl-thumb-img.tl-cover-fallback span {
    display: none;
}

/* ---------- CTA 横幅 ---------- */
.tl-cta-banner {
    background: linear-gradient(135deg, #e8721c 0%, #f0a03c 100%);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    padding: 24px 18px;
    margin-bottom: 20px;
}
.tl-cta-banner .tl-cta-icon {
    font-size: 30px;
    margin-bottom: 8px;
    display: inline-block;
}
.tl-cta-banner h4 {
    margin: 0 0 6px;
    font-weight: bold;
}
.tl-cta-banner p {
    font-size: 13px;
    opacity: .92;
    margin-bottom: 14px;
}

/* ---------- 侧栏关于块 ---------- */
.tl-about-mini h4 {
    margin-top: 0;
    color: #333;
    font-size: 15px;
}
.tl-about-mini h4 i {
    color: #e8721c;
    margin-right: 5px;
}
.tl-about-mini p {
    color: #888;
    font-size: 13px;
    line-height: 1.7;
}
.tl-about-mini a {
    color: #e8721c;
    font-size: 13px;
}

/* ---------- 关于我们页 ---------- */
.tl-about-body h3 {
    font-size: 18px;
    color: #333;
    margin: 26px 0 12px;
    padding-left: 10px;
    border-left: 4px solid #e8721c;
}
.tl-about-body h3:first-child {
    margin-top: 0;
}
.tl-about-body p {
    color: #555;
    line-height: 1.9;
    font-size: 14px;
}
.tl-torch-steps {
    margin: 5px 0 10px;
}
.tl-step-card {
    background: #fffaf3;
    border: 1px solid #f5e3cc;
    border-radius: 6px;
    padding: 18px 10px;
    text-align: center;
    height: 100%;
}
.tl-step-card i {
    font-size: 26px;
    color: #e8721c;
    display: block;
    margin-bottom: 8px;
}
.tl-step-card h5 {
    margin: 0 0 6px;
    color: #333;
    font-weight: bold;
}
.tl-step-card p {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.6;
}
.tl-about-list {
    padding-left: 20px;
    color: #555;
    line-height: 2;
    font-size: 14px;
}
.tl-about-actions {
    margin-top: 25px;
}
.tl-about-photo img {
    border-radius: 6px;
}
.tl-photo-note {
    color: #999;
    font-size: 12px;
    text-align: center;
    margin: 8px 0 0;
}

/* ---------- 文章列表 ---------- */
.tl-article-list {
    margin-top: 10px;
}
.tl-article-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tl-article-item:last-child {
    border-bottom: 0;
}
.tl-article-thumb {
    flex: 0 0 120px;
    margin-right: 15px;
}
.tl-article-thumb img,
.tl-article-thumb .tl-thumb-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
.tl-article-thumb .tl-cover-fallback {
    width: 120px;
    height: 80px;
}
.tl-article-info {
    flex: 1;
    min-width: 0;
}
.tl-article-info h4 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.4;
}
.tl-article-info h4 a {
    color: #333;
}
.tl-article-info h4 a:hover {
    color: #e8721c;
    text-decoration: none;
}
.tl-excerpt {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}
.tl-meta {
    color: #aaa;
    font-size: 12px;
    margin: 0;
}
.tl-meta > span {
    margin-right: 12px;
}
.tl-meta i {
    margin-right: 3px;
}
.tl-tag {
    display: inline-block;
    background: #f2f2f2;
    color: #888;
    border-radius: 2px;
    padding: 1px 6px;
    font-size: 12px;
}
.tl-tag-column {
    background: #fdf1e3;
    color: #e8721c;
}
.tl-tag-role {
    background: #e8f4fd;
    color: #3a87ad;
}
.tl-tag-src {
    background: #fdeaea;
    color: #d9534f;
}
.tl-empty {
    color: #999;
    text-align: center;
    padding: 30px 0;
}

/* ---------- 相关文章（详情页侧栏） ---------- */
.tl-related-list {
    display: block;
}
.tl-related-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    color: #555;
}
.tl-related-item:last-child {
    border-bottom: 0;
}
.tl-related-item:hover {
    text-decoration: none;
}
.tl-related-thumb {
    flex: 0 0 90px;
    margin-right: 10px;
}
.tl-related-thumb .tl-thumb-img {
    width: 90px;
    height: 60px;
}
.tl-related-thumb .tl-cover-fallback {
    width: 90px;
    height: 60px;
}
.tl-related-info {
    flex: 1;
    min-width: 0;
}
.tl-related-info strong {
    display: block;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    color: #444;
}
.tl-related-item:hover .tl-related-info strong {
    color: #e8721c;
}
.tl-related-info em {
    font-style: normal;
    color: #bbb;
    font-size: 12px;
}

/* ---------- 大卡行 ---------- */
.tl-featured-row {
    margin-bottom: 10px;
}

/* ---------- 筛选栏 ---------- */
.tl-filter {
    background: #fff;
    border-radius: 4px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    margin-bottom: 15px;
}
.tl-filter-row .form-group {
    margin-right: 15px;
    margin-bottom: 5px;
}
.tl-filter-row label {
    font-weight: normal;
    color: #999;
    margin-right: 5px;
}

/* ---------- 详情页 ---------- */
.tl-detail-title {
    margin-top: 0;
    font-size: 24px;
    line-height: 1.4;
}
.tl-detail-meta {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 18px;
}
.tl-detail-cover {
    max-width: 100%;
    border-radius: 4px;
}
.tl-detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    word-wrap: break-word;
}
.tl-detail-content img {
    max-width: 100%;
    height: auto;
}
.tl-detail-actions {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.tl-source-note {
    background: #fafafa;
    border-left: 3px solid #ddd;
    padding: 10px 15px;
    margin-top: 25px;
    color: #888;
    font-size: 13px;
}
.tl-source-note p {
    margin: 3px 0;
}

/* ---------- 问答 ---------- */
.tl-question-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tl-question-item:last-child {
    border-bottom: 0;
}
.tl-q-stats {
    flex: 0 0 110px;
    text-align: center;
    margin-right: 15px;
}
.tl-q-stat {
    display: inline-block;
    margin: 0 6px;
}
.tl-q-stat strong {
    display: block;
    font-size: 16px;
    color: #e8721c;
}
.tl-q-stat span {
    font-size: 12px;
    color: #aaa;
}
.tl-q-info h4 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.4;
}
.tl-q-info h4 a {
    color: #333;
}
.tl-q-info h4 a:hover {
    color: #e8721c;
    text-decoration: none;
}
.tl-solved {
    color: #5cb85c;
}
.tl-answer {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tl-answer:last-child {
    border-bottom: 0;
}
.tl-answer-foot {
    margin-top: 8px;
}
.tl-best {
    border-left: 3px solid #5cb85c;
}

/* ---------- 侧栏 / CTA ---------- */
.tl-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tl-side-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    overflow: hidden;
}
.tl-side-list li:last-child {
    border-bottom: 0;
}
.tl-side-list a {
    color: #555;
}
.tl-side-list a:hover {
    color: #e8721c;
    text-decoration: none;
}
.tl-side-meta {
    float: right;
    color: #bbb;
    font-size: 12px;
}
.tl-cta {
    text-align: center;
}
.tl-cta p {
    color: #777;
}
.tl-notice {
    padding-left: 18px;
    color: #888;
    font-size: 13px;
}
.tl-notice li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ---------- 表单 ---------- */
.tl-form-panel label {
    font-weight: normal;
    color: #555;
}
.tl-req {
    color: #d9534f;
}
.tl-form-tip {
    color: #aaa;
    font-size: 12px;
    margin-left: 10px;
}
.tl-reject-reason {
    color: #d9534f;
    font-size: 12px;
    margin: 5px 0 0;
}

/* ---------- 表格 / 分页 ---------- */
.tl-table td {
    vertical-align: middle !important;
}
.tl-pagination {
    text-align: center;
    padding: 15px 0 0;
}
.tl-pagination .pagination {
    margin: 0;
}

/* ---------- 站内消息 ---------- */
.tl-message-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tl-message-list .tl-message-item {
    border-bottom: 1px solid #f0f1f3;
}
.tl-message-list .tl-message-item:last-child {
    border-bottom: 0;
}
.tl-message-list .tl-message-link {
    display: block;
    padding: 14px 16px;
    color: #555;
}
.tl-message-list .tl-message-link:hover {
    background: #fafbfc;
    color: #e8721c;
    text-decoration: none;
}
.tl-message-list .tl-message-head {
    display: block;
    margin-bottom: 6px;
}
.tl-message-list .tl-message-title {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}
.tl-message-list .tl-message-time {
    float: right;
    color: #aaa;
    font-size: 12px;
}
.tl-message-list .tl-message-content {
    display: block;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- 页脚（独立中性配色，与站点橙色调区隔） ---------- */
.tl-footer {
    background: #1e232b;
    color: #a6aeb8;
    font-size: 14px;
    line-height: 1.8;
}
.tl-footer a {
    color: #b6bec9;
}
.tl-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}
.tl-footer .tl-footer-main {
    padding: 42px 0 30px;
}
.tl-footer .tl-footer-logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}
.tl-footer .tl-footer-logo i {
    color: #d7dbe1;
    margin-right: 6px;
}
.tl-footer .tl-footer-logo .tl-logo-footer {
    height: 70px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.tl-footer .tl-slogan {
    color: #c6ccd4;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
}
.tl-footer .tl-footer-desc {
    font-size: 13px;
    margin-bottom: 14px;
    color: #7e8794;
}
.tl-footer .tl-footer-tags {
    margin: 0;
    padding: 0;
}
.tl-footer .tl-footer-tags li {
    display: inline-block;
    list-style: none;
    background: rgba(255, 255, 255, .05);
    color: #aeb6c0;
    font-size: 12px;
    border-radius: 20px;
    padding: 3px 12px;
    margin: 0 6px 6px 0;
}
.tl-footer .tl-footer-cell h5 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    position: relative;
}
.tl-footer .tl-footer-cell h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, .3);
}
.tl-footer .tl-footer-cell ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tl-footer .tl-footer-cell ul li {
    margin-bottom: 8px;
    font-size: 13px;
}
.tl-footer .tl-footer-cell ul li .fa {
    color: #a6aeb8;
    margin-right: 6px;
    font-size: 12px;
}
.tl-footer .tl-footer-bottom {
    background: #191d24;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 16px 0;
}
.tl-footer .tl-footer-bottom .copyright {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: #737c88;
}
.tl-footer .tl-footer-bottom .copyright a {
    color: #737c88;
}
.tl-footer .tl-footer-bottom .copyright a:hover {
    color: #ffffff;
}
/* 页脚响应式 */
@media (max-width: 767px) {
    .tl-footer .tl-footer-main {
        padding-top: 34px;
    }
    .tl-footer .tl-footer-cell h5 {
        margin-top: 14px;
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .tl-hero-row {
        display: block;
    }
}
@media (max-width: 767px) {
    .tl-hero h1 {
        font-size: 24px;
    }
    .tl-hero {
        padding: 45px 0 40px;
    }
    .tl-hero-text h1 {
        font-size: 26px;
    }
    .tl-hero-search {
        max-width: 100%;
    }
    .tl-hot-cover {
        height: 150px;
    }
    .tl-stat-tile .num {
        font-size: 20px;
    }
    .tl-section-head h2 {
        font-size: 18px;
    }
    .tl-article-item {
        display: block;
    }
    .tl-article-thumb {
        margin-bottom: 10px;
    }
    .tl-q-stats {
        flex: 0 0 80px;
    }
    .tl-detail-title {
        font-size: 20px;
    }
}
