:root{
  --paper:#f6f2e9;
  --paper2:#fbf9f3;
  --ink:#263632;
  --muted:#69766f;
  --green:#245b50;
  --green2:#3d7568;
  --line:rgba(48,78,70,.16);
  --seal:#9b3028;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--ink);
  background:
    linear-gradient(rgba(248,245,237,.96),rgba(248,245,237,.96)),
    repeating-linear-gradient(
      0deg,
      rgba(70,83,73,.025) 0,
      rgba(70,83,73,.025) 1px,
      transparent 1px,
      transparent 5px
    );
  font-family:
    "Songti SC","STSong","SimSun","Noto Serif CJK SC",serif;
  line-height:1.75;
}

a{
  color:inherit;
  text-decoration:none;
}

.site-header{
  position:relative;
  z-index:20;
  background:rgba(249,247,240,.94);
  border-bottom:1px solid rgba(40,70,62,.10);
  box-shadow:0 2px 12px rgba(40,60,52,.04);
}

.header-inner{
  width:min(1460px,94%);
  min-height:76px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:42px;
}

.brand{
  display:flex;
  align-items:center;
  min-width:230px;
}

.brand-name{
  font-family:"STKaiti","KaiTi","FangSong",serif;
  font-size:30px;
  font-weight:700;
  letter-spacing:4px;
}

.brand-seal{
  margin-left:7px;
  width:24px;
  height:30px;
  border:1px solid var(--seal);
  color:var(--seal);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  line-height:1;
}

.main-nav{
  display:flex;
  gap:38px;
  align-items:center;
  flex:1;
  justify-content:center;
}

.main-nav a{
  position:relative;
  padding:26px 2px 22px;
  font-size:16px;
  letter-spacing:2px;
}

.main-nav a:hover{
  color:var(--green);
}

.main-nav a:hover:after,
.main-nav a.active:after{
  content:"";
  position:absolute;
  left:5px;
  right:5px;
  bottom:15px;
  height:2px;
  background:var(--green);
}

.admin-link{
  font-size:13px;
  color:#78847f;
  white-space:nowrap;
}

.page-wrap{
  width:min(1460px,94%);
  margin:auto;
}

.hero{
  min-height:470px;
  background:
    linear-gradient(
      90deg,
      rgba(246,244,235,.03),
      rgba(250,248,241,.18) 46%,
      rgba(246,244,235,.03)
    ),
    url("/static/img/tinglan-hero.svg") center/cover no-repeat;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(43,72,65,.10);
}

.hero-center{
  position:absolute;
  left:50%;
  top:44%;
  transform:translate(-50%,-50%);
  width:min(700px,88%);
  text-align:center;
  text-shadow:0 1px 0 rgba(255,255,255,.5);
}

.hero-title-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
}

.hero h1{
  margin:0;
  font-family:"STKaiti","KaiTi","FangSong",serif;
  font-size:76px;
  line-height:1.05;
  letter-spacing:12px;
  color:#183f38;
  font-weight:700;
}

.hero-seal{
  width:34px;
  height:44px;
  border:2px solid var(--seal);
  color:var(--seal);
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:12px;
  line-height:1.15;
  font-weight:700;
  transform:rotate(-2deg);
  background:rgba(250,244,231,.48);
}

.hero-tagline{
  margin:26px 0 13px;
  font-size:23px;
  letter-spacing:7px;
  color:#294e47;
}

.hero-rule{
  width:72px;
  height:1px;
  background:#547b72;
  margin:18px auto;
}

.hero-sub{
  margin:0;
  font-size:15px;
  letter-spacing:3px;
  color:#526a64;
}

.category-band{
  background:rgba(250,248,241,.94);
  border-top:1px solid rgba(53,82,74,.08);
  border-bottom:1px solid var(--line);
}

.category-grid{
  width:min(1460px,94%);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
}

.category-card{
  min-height:158px;
  padding:29px 28px 22px;
  border-right:1px solid var(--line);
  transition:.2s ease;
}

.category-card:first-child{
  border-left:1px solid var(--line);
}

.category-card:hover{
  background:rgba(230,239,234,.54);
  transform:translateY(-2px);
}

.category-head{
  display:flex;
  gap:15px;
  align-items:center;
  margin-bottom:9px;
}

.category-icon{
  width:37px;
  height:37px;
  border:1.5px solid var(--green2);
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-family:"STKaiti","KaiTi",serif;
  font-size:19px;
}

.category-name{
  font-size:23px;
  font-weight:700;
  letter-spacing:3px;
}

.category-desc{
  color:#68756f;
  font-size:14px;
  line-height:1.85;
}

.category-arrow{
  display:block;
  margin-top:7px;
  color:var(--green);
  font-size:21px;
}

.main-section{
  width:min(1460px,94%);
  margin:0 auto;
  padding:34px 0 62px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 315px;
  gap:52px;
}

.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:13px;
  margin-bottom:7px;
}

.section-title{
  margin:0;
  font-size:22px;
  letter-spacing:3px;
  display:flex;
  align-items:center;
  gap:13px;
}

.section-title:before{
  content:"";
  width:5px;
  height:25px;
  background:var(--green);
}

.post-list{
  display:flex;
  flex-direction:column;
}

.post-card{
  display:grid;
  grid-template-columns:290px 1fr;
  gap:28px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
}

.post-thumb{
  height:155px;
  overflow:hidden;
  border-radius:5px;
  background:
    linear-gradient(rgba(31,72,63,.06),rgba(31,72,63,.12)),
    url("/static/img/tinglan-hero.svg") center/cover no-repeat;
  box-shadow:0 7px 18px rgba(41,65,58,.08);
}

.post-card:nth-child(2n) .post-thumb{
  background-position:25% 50%;
}

.post-card:nth-child(3n) .post-thumb{
  background-position:75% 50%;
}

.post-content{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.post-title{
  margin:0 0 7px;
  font-size:22px;
  font-weight:700;
  letter-spacing:1px;
}

.post-title:hover{
  color:var(--green);
}

.post-excerpt{
  margin:0;
  color:#68736e;
  font-size:15px;
  line-height:1.9;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.post-meta{
  margin-top:auto;
  display:flex;
  gap:14px;
  align-items:center;
  color:#87918c;
  font-size:12px;
}

.post-category{
  color:#53766e;
  background:#edf2ee;
  padding:3px 9px;
  border-radius:2px;
}

.empty-box{
  padding:65px 20px;
  text-align:center;
  color:#7e8984;
  border-bottom:1px solid var(--line);
}

.sidebar{
  padding-top:4px;
}

.sidebar-card{
  background:
    linear-gradient(rgba(250,248,242,.92),rgba(250,248,242,.92)),
    url("/static/img/tinglan-hero.svg") center/cover;
  border:1px solid rgba(61,93,84,.10);
  padding:27px 25px;
  margin-bottom:30px;
  box-shadow:0 5px 15px rgba(50,70,62,.035);
}

.sidebar-card h3{
  margin:0 0 17px;
  font-size:20px;
  letter-spacing:2px;
}

.sidebar-card p{
  margin:0;
  color:#66746e;
  font-size:14px;
  line-height:2;
}

.side-list{
  counter-reset:rank;
  list-style:none;
  margin:0;
  padding:0;
}

.side-list li{
  counter-increment:rank;
  position:relative;
  padding:9px 0 9px 38px;
  border-bottom:1px solid rgba(64,88,81,.09);
  font-size:14px;
  line-height:1.6;
}

.side-list li:before{
  content:counter(rank);
  position:absolute;
  left:0;
  top:11px;
  width:23px;
  height:23px;
  border-radius:50%;
  background:#dfe8e4;
  color:#365e55;
  text-align:center;
  line-height:23px;
  font-size:12px;
}

.side-list li:first-child:before{
  background:#b77a32;
  color:white;
}

.simple-page{
  width:min(1050px,92%);
  margin:38px auto 70px;
  min-height:60vh;
}

.simple-page h1{
  font-family:"STKaiti","KaiTi",serif;
  color:#214b43;
}

.site-footer{
  position:relative;
  min-height:235px;
  background:
    linear-gradient(
      rgba(247,244,236,.84),
      rgba(247,244,236,.91)
    ),
    url("/static/img/tinglan-hero.svg") center 40%/cover no-repeat;
  border-top:1px solid rgba(45,76,68,.12);
}

.footer-inner{
  text-align:center;
  padding:46px 20px 35px;
}

.footer-name{
  font-family:"STKaiti","KaiTi",serif;
  font-size:28px;
  font-weight:700;
  letter-spacing:5px;
  color:#214c43;
}

.footer-tag{
  margin:6px 0 20px;
  color:#60736d;
  letter-spacing:5px;
}

.footer-nav{
  font-size:14px;
  letter-spacing:2px;
  color:#50635d;
}

.footer-nav a{
  margin:0 9px;
}

.footer-copy{
  color:#8a928e;
  font-size:12px;
  margin-top:18px;
}

@media (max-width:1050px){
  .header-inner{
    gap:12px;
    flex-wrap:wrap;
    padding:10px 0 0;
  }

  .brand{
    min-width:auto;
  }

  .main-nav{
    order:3;
    width:100%;
    justify-content:flex-start;
    overflow-x:auto;
    gap:28px;
  }

  .main-nav a{
    padding:10px 0 15px;
  }

  .hero{
    min-height:420px;
  }

  .hero h1{
    font-size:60px;
  }

  .category-grid{
    grid-template-columns:repeat(5,230px);
    overflow-x:auto;
  }

  .main-section{
    grid-template-columns:1fr;
  }

  .sidebar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
  }
}

@media (max-width:720px){
  .header-inner{
    width:92%;
  }

  .brand-name{
    font-size:24px;
  }

  .admin-link{
    margin-left:auto;
  }

  .main-nav{
    gap:24px;
  }

  .main-nav a{
    font-size:15px;
  }

  .hero{
    min-height:355px;
    background-position:42% center;
  }

  .hero-center{
    top:43%;
  }

  .hero h1{
    font-size:48px;
    letter-spacing:7px;
  }

  .hero-seal{
    width:29px;
    height:37px;
    font-size:10px;
  }

  .hero-tagline{
    font-size:18px;
    letter-spacing:4px;
  }

  .hero-sub{
    font-size:12px;
    line-height:1.9;
    letter-spacing:1.5px;
  }

  .category-grid{
    grid-template-columns:repeat(5,205px);
  }

  .category-card{
    min-height:142px;
    padding:23px 20px;
  }

  .category-name{
    font-size:20px;
  }

  .main-section{
    width:92%;
    padding-top:24px;
    gap:30px;
  }

  .post-card{
    grid-template-columns:120px 1fr;
    gap:16px;
    padding:17px 0;
  }

  .post-thumb{
    height:98px;
  }

  .post-title{
    font-size:17px;
    line-height:1.5;
  }

  .post-excerpt{
    font-size:13px;
    -webkit-line-clamp:2;
    line-height:1.7;
  }

  .post-meta{
    margin-top:5px;
  }

  .sidebar{
    grid-template-columns:1fr;
  }

  .site-footer{
    min-height:210px;
  }
}


/* ==========================================================
   文章正文
   ========================================================== */

.article{
  width:min(900px,92%);
  margin:42px auto 55px;
  min-height:55vh;
}

.article-category{
  color:#477267;
  font-size:14px;
  letter-spacing:2px;
  margin-bottom:8px;
}

.article h1{
  margin:0;
  color:#203f38;
  font-family:"STKaiti","KaiTi","FangSong",serif;
  font-size:38px;
  line-height:1.4;
  letter-spacing:2px;
}

.article-meta{
  margin:12px 0 28px;
  color:#89928e;
  font-size:13px;
}

.article-lead{
  margin:0 0 30px;
  padding:18px 22px;
  background:rgba(225,235,230,.48);
  border-left:3px solid #64867d;
  color:#556761;
  line-height:2;
}

.article-body{
  font-size:17px;
  line-height:2.05;
  overflow-wrap:anywhere;
}

.article-body p{
  margin:0 0 1.35em;
}

.article-body h2,
.article-body h3,
.article-body h4{
  color:#244b42;
  margin-top:1.8em;
  margin-bottom:.7em;
}

.article-body blockquote{
  margin:1.6em 0;
  padding:12px 20px;
  border-left:3px solid #78978e;
  background:rgba(229,236,232,.5);
  color:#596b65;
}

.article-body img{
  display:block;
  max-width:100%;
  height:auto;
  margin:28px auto;
  border-radius:5px;
  box-shadow:0 8px 25px rgba(33,57,50,.10);
}

.article-body a{
  color:#27685a;
  text-decoration:underline;
}

.source-box{
  margin-top:45px;
  padding:18px 20px;
  background:rgba(232,238,234,.55);
  color:#64736d;
  font-size:14px;
  word-break:break-all;
}

.comments{
  width:min(900px,92%);
  margin:0 auto 70px;
}

@media(max-width:720px){

  .article{
    margin-top:28px;
  }

  .article h1{
    font-size:29px;
  }

  .article-body{
    font-size:16px;
    line-height:2;
  }

  .article-body img{
    margin:21px auto;
  }

}


/* ==========================================================
   TLX_MOBILE_ARTICLE_V2
   文章页、留言区、手机导航优化
   ========================================================== */

.comments{
  border-top:1px solid rgba(48,78,70,.14);
  padding-top:30px;
}

.comments h2{
  margin:0 0 22px;
  color:#264b43;
  font-family:"STKaiti","KaiTi","FangSong",serif;
  font-size:26px;
  letter-spacing:3px;
}

.comment{
  padding:18px 0;
  border-bottom:1px solid rgba(48,78,70,.12);
}

.comment strong{
  color:#315c52;
  font-size:15px;
}

.comment small{
  margin-left:10px;
  color:#929b97;
  font-size:12px;
}

.comment p{
  margin:9px 0 0;
  line-height:1.9;
  color:#4d5f59;
}

.comments form{
  margin-top:25px;
  padding:24px;
  background:rgba(246,245,239,.78);
  border:1px solid rgba(55,86,78,.13);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.comments input,
.comments textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(55,82,75,.25);
  background:rgba(255,255,255,.82);
  color:#293b36;
  padding:12px 13px;
  font-family:inherit;
  font-size:15px;
  border-radius:3px;
  outline:none;
}

.comments input:focus,
.comments textarea:focus{
  border-color:#4e766c;
  box-shadow:0 0 0 2px rgba(63,108,96,.08);
}

.comments textarea{
  grid-column:1 / -1;
  min-height:130px;
  resize:vertical;
  line-height:1.8;
}

.comments button{
  width:max-content;
  min-width:110px;
  border:0;
  border-radius:3px;
  background:#285f53;
  color:white;
  padding:11px 18px;
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
}

.comments button:active{
  transform:translateY(1px);
}

.comment-tip{
  grid-column:1 / -1;
  margin:0;
  color:#87918c;
  font-size:12px;
}

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

@media(max-width:720px){

  .site-header{
    overflow:hidden;
  }

  .header-inner{
    padding-top:9px;
  }

  .brand{
    padding-bottom:7px;
  }

  .brand-name{
    font-size:23px;
    letter-spacing:3px;
  }

  .brand-seal{
    width:20px;
    height:25px;
    font-size:9px;
  }

  .main-nav{
    width:100%;
    gap:23px;
    padding:0 2px;
    scrollbar-width:none;
  }

  .main-nav::-webkit-scrollbar{
    display:none;
  }

  .main-nav a{
    flex:0 0 auto;
    font-size:14px;
    padding:8px 0 13px;
    letter-spacing:1px;
  }

  .article{
    width:91%;
    margin-top:26px;
  }

  .article-category{
    margin-bottom:5px;
  }

  .article h1{
    font-size:28px;
    line-height:1.45;
  }

  .article-meta{
    margin:9px 0 20px;
  }

  .article-lead{
    margin-bottom:23px;
    padding:15px 17px;
  }

  .article-body{
    font-size:16px;
    line-height:2.05;
  }

  .article-body p{
    margin-bottom:1.25em;
  }

  .article-body img{
    width:100%;
    margin:22px auto;
    border-radius:4px;
  }

  .comments{
    width:91%;
    padding-top:24px;
  }

  .comments h2{
    font-size:23px;
    margin-bottom:17px;
  }

  .comments form{
    grid-template-columns:1fr;
    padding:17px;
    gap:11px;
  }

  .comments textarea{
    grid-column:auto;
    min-height:125px;
  }

  .comments input,
  .comments textarea{
    font-size:16px;
    padding:12px;
  }

  .comments button{
    width:100%;
    min-height:44px;
    font-size:15px;
  }

  .comment-tip{
    grid-column:auto;
    text-align:center;
  }

}



/* ==========================================================
   TLX_UNIFIED_POST_COVER
   首页文章封面统一尺寸
   ========================================================== */

.post-thumb{
  display:block;
  width:100%;
  height:auto !important;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:5px;
  background:#e6ece8;
}

.post-thumb-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .25s ease;
}

.post-card:hover .post-thumb-img{
  transform:scale(1.02);
}

@media(max-width:720px){

  .post-thumb{
    height:auto !important;
    aspect-ratio:16/9;
  }

}


/* ==========================================================
   TLX_CATEGORY_MOBILE_V1
   子栏目手机端文章列表：单列显示
   仅影响 category.html，不影响首页与电脑端
   ========================================================== */
@media (max-width:720px){

  .category-post-list{
    width:91%;
    margin-left:auto;
    margin-right:auto;
  }

  .category-post-list .post-card{
    display:block;
    grid-template-columns:none;
    width:100%;
    padding:22px 0 26px;
    margin:0;
  }

  .category-post-list .post-card .post-meta{
    display:block;
    margin:0 0 8px;
    font-size:12px;
    line-height:1.6;
  }

  .category-post-list .post-card h2{
    display:block;
    margin:0 0 12px;
    padding:0;
    font-size:22px;
    line-height:1.55;
    font-weight:600;
  }

  .category-post-list .post-card h2 a{
    display:block;
    width:100%;
  }

  .category-post-list .post-card > p{
    display:block;
    margin:0 0 14px;
    padding:0;
    font-size:15px;
    line-height:1.9;
  }

  .category-post-list .post-card .read-more{
    display:inline-block;
    margin-top:2px;
    font-size:14px;
  }

  .category-post-list .post-card > *{
    grid-column:auto !important;
    grid-row:auto !important;
  }
}


/* ==========================================================
   TLX_CATEGORY_DESKTOP_V1
   子栏目电脑端文章列表
   不影响首页，不影响 <=720px 手机端
   ========================================================== */
@media (min-width:721px){

  .category-post-list .post-card{
    display:block;
    grid-template-columns:none;
    width:100%;
    padding:30px 0 32px;
    border-bottom:1px solid var(--line);
  }

  .category-post-list .post-card .post-meta{
    display:block;
    margin:0 0 10px;
    color:#87918c;
    font-size:13px;
    line-height:1.6;
  }

  .category-post-list .post-card h2{
    margin:0 0 13px;
    padding:0;
    font-size:27px;
    line-height:1.5;
    font-weight:600;
    letter-spacing:.5px;
  }

  .category-post-list .post-card h2 a{
    display:inline;
  }

  .category-post-list .post-card > p{
    margin:0 0 15px;
    max-width:850px;
    color:#596862;
    font-size:16px;
    line-height:1.9;
  }

  .category-post-list .post-card .read-more{
    display:inline-block;
    margin-top:3px;
    font-size:14px;
  }

  .category-post-list .post-card > *{
    grid-column:auto !important;
    grid-row:auto !important;
  }
}


/* TLX_PAGINATION_V1 */
.tlx-pagination {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 12px;
}

.tlx-pagination a,
.tlx-pagination .current {
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(60,75,70,.18);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.45);
}

.tlx-pagination a:hover {
    background: rgba(70,95,85,.10);
}

.tlx-pagination .current {
    font-weight: 700;
    background: rgba(70,95,85,.14);
}

.tlx-pagination .ellipsis {
    padding: 0 3px;
    opacity: .6;
}

@media (max-width:640px) {
    .tlx-pagination {
        gap: 6px;
        margin-top: 24px;
    }

    .tlx-pagination a,
    .tlx-pagination .current {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
    }
}

/* ===== TLX_ARTICLE_VIDEO_V1 ===== */

.article-body .tlx-article-video{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:72vh;
  margin:24px auto;
  border-radius:8px;
  background:#000;
}

@media(max-width:720px){
  .article-body .tlx-article-video{
    margin:20px auto;
    border-radius:6px;
    max-height:68vh;
  }
}

