/* ---- blogtalk.org redesign batch 1: design tokens (light/dark) ----
   NOTE: custom CSS loads BEFORE stylesheet.min.css in head.html, so every
   variable override below carries !important to win over the base :root. */
:root {
  --theme: #F7F5F0 !important;          /* 页面底色，宣纸米白 */
  --entry: #FFFFFF !important;          /* 卡片底色 */
  --primary: #1F1E1C !important;        /* 标题、正文 */
  --secondary: #6B6862 !important;      /* 摘要 */
  --tertiary: #E6E1D6 !important;       /* 边框、分隔线 */
  --muted: #9A968E !important;          /* 元信息：时间、浏览数 */
  --border: #ECE8DF !important;
  --accent: #B5452E !important;         /* 主色：朱砂 */
  --accent-soft: #F6E9E4 !important;    /* 主色浅底，用于推荐栏、hover */
  --radius: 10px !important;
}
.dark {
  --theme: #1B1C1E !important;
  --entry: #232427 !important;
  --primary: #E6E3DD !important;
  --secondary: #A19D96 !important;
  --tertiary: #35373B !important;
  --muted: #7D7A74 !important;
  --border: #2E3033 !important;
  --accent: #E0785C !important;
  --accent-soft: #3A2A25 !important;
}
/* list pages use --code-bg as background in the base sheet; make them use --theme so the rice-paper background applies */
body.list { background: var(--theme); }
/* base a:hover only sets the colour to --primary; accent on hover instead */
body a:hover { color: var(--accent); }

.first-entry .entry-header {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--primary);
}

body {
    -webkit-font-smoothing: antialiased;
}

body#top {
    background-position: center center, center center;
    background-size: cover,cover;
    background-repeat: no-repeat, no-repeat;
}

h1 {
    font-size: 22px !important;
    font-weight: 480 !important;
}

h2 {
    font-size: 20px !important;
    font-weight: 480 !important;
}

h3 {
    font-size: 18px !important;
    font-weight: 480 !important;
}

h4 {
    font-size: 16px !important;
    font-weight: 480 !important;
}

.header {
    margin-top: 10px;
    margin-bottom: 10px;
}

.header .nav {
    line-height: normal !important;
    align-items: center;
}

.header .nav .menu {
    margin-bottom: 12px !important;
}

.header #menu span {
    font-weight: 480 !important;
}

.header #menu a {
    font-size: 16px !important;
}

.logo {
    margin-bottom: 12px !important;
}

.main {
    padding: calc(var(--gap)/4) var(--gap) var(--gap) var(--gap) !important;
}

.first-entry {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    min-height: 20px !important;
}

.post-entry {
    margin-bottom: 18px !important;
    border: 1px solid var(--tertiary) !important;
}

.post-entry.pinned {
    border: 1px solid var(--accent) !important;
}

.post-entry .pinned-icon {
    width: 32px;
    height: 16px;
    margin-right: 4px;
}

.post-entry .entry-header {
    display: flex;
    align-items: center;
}

.post-entry .entry-header .article-go {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.post-entry.pinned .entry-header .article-go {
    padding-bottom: 1px;
}

.first-entry .entry-content {
    margin: 0 0 14px 0 !important;
}

.popular-bloggers {
    clear: both;
    background-color: var(--color-white);
    overflow: hidden;
    border-radius: 4px;
    border-bottom: 1px dashed var(--color-tag-gray-light);
    border-top: 1px dashed var(--color-tag-gray-light);
}

.blogger-one {
    width: 40px;
    height: 40px;
    float: left;
    margin: 8px 4px 14px 4px;
}

.blogger-one:hover .tooltiptext {
    visibility: visible;
}

.blogger-one img {
    width: 32px;
    height: 32px;
    display: block;
    max-width: 90%;
    border-radius: 50%;
}

.entry-footer {
    display: flex;
}

.entry-footer .flex-item {
    margin: 2px 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 30%;
}

.entry-footer img {
    width: 20px;
    height: 20px;
    margin-right: 2px;
    border-radius: 50%;
}

.footer-block {
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding-top: var(--gap)/2;
    font-size: 16px;
    text-align: center;
    padding-left: var(--gap);
    padding-right: var(--gap);
}

.footer-block .footer-summary {
    justify-content: center;
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
}

.footer-block .footer-contact {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-block .footer-summary .flex-item {
    margin-left: 6px;
    margin-right: 6px;
}

.footer-block .footer-summary .flex-item p {
    display: inline;
}

.footer-block .footer-summary .flex-item a {
    background-color: #cb2e58;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-block .planet-shuttle {
    margin-bottom: 18px;
}

.planet-shuttle a {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #14100f, #d55b5b, #4d14e6);
}

.dark .planet-shuttle a {
    background-image: linear-gradient(to right, #d3a497, #d55b5b, #9877f1);
}

.footer-block .cloud-promotion {
    width: 30px;
    margin: 0 auto;
}

.post-content img {
    margin: 0 auto !important;
}

.post-content p {
    text-indent: 0em !important;
}

.post-content pre code {
    color: var(--primary) !important;
    text-wrap: wrap !important;
}

.post-content code {
    font-size: inherit !important;
}

.post-content dl, .post-content ol, .post-content p, .post-content figure, .post-content ul {
    margin-bottom: 12px !important;
}

.footer, .top-link {
    font-size: 14px !important;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.blog-entry {
    position: relative;
    padding: var(--gap);
    background: var(--entry);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
    width: 100%;
    margin-bottom: 18px;
}

.blog-entry .blog-entry-header {
    display: flex;
    align-items: center;
}

.blog-entry .blog-entry-header .blogger-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.blog-entry .blog-entry-header .blogger-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.blog-entry .blog-entry-header .blogger-basic .icon-and-title {
    display: flex;
    align-items: center;
}

.blog-entry .blog-entry-header .blogger-basic .icon-and-title .flex-item {
    margin-right: 6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.blog-entry .blog-entry-header .blogger-basic .domain {
    font-size: 14px;
    margin-top: 2px;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
}

.blog-entry .blog-entry-header .blogger-basic .domain .flex-item-left {
    display: flex;
    overflow: hidden;
    margin-right: 8px;
}

.blog-entry .blog-entry-header .blogger-basic .domain .flex-item-left .domain-name {
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-entry .blog-entry-header .blogger-basic .domain .flex-item-left .link {
    flex: 0 0 auto;
    margin-left: 4px;
}

.blog-entry .blog-entry-header .blogger-basic .domain .flex-item-right {
    color: var(--secondary);
    white-space: nowrap;
    flex: 0 0 auto;
}

.blog-entry .blog-entry-header .blogger-basic .domain a {
    color: var(--primary)
}

.blog-entry .description {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--secondary);
    overflow: hidden;
    line-height: 1.5rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    background-color: var(--code-bg);
    padding: 0.3rem 0.3rem;
    display: -webkit-box;
    border-radius: calc(0.4rem);
}

.blog-entry .summary {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

.blog-entry .summary .flex-item {
    margin: 2px 0 0 2px;
    font-size: 14px;
}

.blog-entry .summary .flex-item .title {
    color: var(--secondary);
}

.blog-entry .latest-posts {
    margin-top: 8px;
    font-size: 14px;
    color: var(--secondary);
}

.blog-entry .latest-posts p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.blog-entry .latest-posts h5 {
    color: darkgray;
    font-size: 14px;
}

.blog-entry .bottom-info {
    margin-top: 10px;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
}

.blog-entry .bottom-info .status-info {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.blog-entry .bottom-info .status-info:hover .tooltiptext {
    visibility: visible;
}

.blog-entry .bottom-info .status-info .status-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.blog-entry .bottom-info .status-info p {
    user-select: none;
    margin-left: 4px;
    color: var(--secondary);
}

.blog-entry .bottom-info .submitted-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--secondary);
}

.blog-entry .bottom-info .submitted-info:hover .tooltiptext {
    visibility: visible;
}

.blog-entry .submitted-info img {
    user-select: none;
    margin-right: 2px;
    width: 14px;
    display: block;
}

.blog-entry .submitted-info p {
    user-select: none;
}

@media (min-width: 800px) {
    .blog-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
    }

    .blog-entry {
        width: 49%;
    }

    .blog-detail-random-blogs {
        padding: var(--gap) var(--gap) 0 var(--gap) !important;
    }

    .footer-block .footer-summary {
        flex-direction: row;
    }
}

div#searchbox {
    margin-bottom: 10px;
}

#searchbox input {
    font-weight: normal !important;
}

.post-single {
    position: relative;
    margin-bottom: var(--gap);
    padding: var(--gap);
    background: var(--entry);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
}

.post-header {
    margin: 0 0 12px 0 !important;
}

.post-title {
    margin-bottom: 8px !important;
}

.post-publish-date {
    font-size: 14px;
    color: var(--secondary);
}

.post-publish-date a {
    margin-left: 4px;
}

.post-content {
    font-size: 16px;
}

.post-content h4 {
    margin: 12px 0 12px 0 !important;
}

.post-content img {
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid var(--entry);
}

:root {
  --s: 6;
  --h: 36;
  --speed: 3s;
}

.latest-news {
  margin-bottom: 26px;
  height: calc(var(--h) * 1px);
  line-height: calc(var(--h) * 1px);
  /*background: var(--entry);*/
  border-radius: var(--radius);
  border: 1px solid var(--tertiary);
  overflow: hidden;
  display: flex;
}

.latest-news .icon {
    width: 30px;
    margin-left: 4px;
    display: flex;
    align-items: center;
}

.latest-news .icon img {
    content: url(/assets/images/sites/latest_news/broadcast.png);
}

.dark .latest-news .icon img {
    content: url(/assets/images/sites/latest_news/broadcast-white.png);
}

.latest-news .content {
    font-size: 14px;
    color: #000;
    overflow: hidden;
    margin-left: -8px;
}

.latest-news .content li {
    list-style:none;
}

.latest-news .content ul {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
}

.latest-news .content ul li {
    flex-shrink: 0;
    width: 100%;
    padding-left: 10px;
    box-sizing: border-box;
    background-image: linear-gradient(to right, #14100f, #d55b5b, #4d14e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-backface-visibility: hidden;
}

.dark .latest-news .content ul li {
    background-image: linear-gradient(to right, #d3a497, #d55b5b, #9877f1);
}

.latest-news .content ul {
    animation: move calc(var(--speed) * var(--s)) steps(var(--s)) infinite;
}

.latest-news .content ul li {
    white-space: nowrap;
    cursor: pointer;
    animation: liMove calc(var(--speed)) infinite;
}

@keyframes move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(0, calc(var(--s) * var(--h) * -1px));
  }
}

@keyframes liMove {
  0% {
    transform: translate(0, 0);
  }
  80%,
  100%  {
    transform: translate(0, calc(var(--h) * -1px));
  }
}

.blog-detail-main {
    display: flex;
    flex-direction: column;
    transition: transform .1s;
    background-image: url(/assets/images/sites/blog_detail/blog-detail-header-background.jpeg);
    padding: calc(2*var(--gap)/3) var(--gap) calc(2*var(--gap)/3) var(--gap);
    border-radius: var(--radius);
    margin-bottom: calc(var(--gap)/2);
    border: 1px solid var(--tertiary) !important;
}

.blog-detail-main .header-info {
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
}

.blog-detail-main .header-info .status-info {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.blog-detail-main .header-info .status-info:hover .tooltiptext {
    visibility: visible;
}

.blog-detail-main .header-info .status-info .status-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.blog-detail-main .header-info .status-info p {
    user-select: none;
    margin-left: 4px;
    color: var(--secondary);
}

.blog-detail-main .header-info .submitted-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--secondary);
}

.blog-detail-main .header-info .submitted-info:hover .tooltiptext {
    visibility: visible;
}

.blog-detail-main .header-info .submitted-info img {
    user-select: none;
    margin-right: 2px;
    width: 14px;
    display: block;
}

.blog-detail-main .header-info .submitted-info p {
    user-select: none;
}

.blog-detail-main .blog-can-not-access-tip {
    margin-top: 6px;
    padding: 4px 8px 4px 8px;
    background-color: darkred;
    font-size: 12px;
    color: white;
}

.blog-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.blog-detail-main .footer-info {
    margin-top: 8px;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
}

.blog-detail-main .footer-info .location-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--secondary);
}

.blog-detail-main .footer-info .location-info:hover .tooltiptext {
    visibility: visible;
}

.blog-detail-main .footer-info .location-info img {
    user-select: none;
    margin-right: 2px;
    width: 14px;
    display: block;
}

.blog-detail-main .footer-info .location-info p {
    user-select: none;
}

.dark .blog-detail-main {
    background-image: url(/assets/images/sites/blog_detail/blog-detail-header-background-dark.jpeg);
}

.blog-detail-header .icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.blog-detail-header .title {
    margin-top: 10px;
}

.blog-detail-header .domain {
    margin-top: 8px;
    font-size: 16px;
}

.blog-detail-header .description {
    margin-top: 8px;
    font-size: 14px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    background-color: var(--code-bg);
    padding: 0.3rem 0.6rem 0.3rem 0.6rem;
    display: -webkit-box;
    border-radius: calc(0.4rem);
}

.blog-detail-summary {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
    background: var(--entry);
    margin-bottom: calc(var(--gap)/2);
}

.blog-detail-summary .flex-item {
    font-size: 16px;
}

.blog-detail-charts {
    padding: var(--gap);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
    background: var(--entry);
    margin-bottom: calc(var(--gap)/2);
}

.blog-detail-charts .charts-title {
    margin-bottom: 16px;
}

.blog-detail-articles {
    padding: var(--gap);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
    background: var(--entry);
    margin-bottom: calc(var(--gap)/2);
}

.blog-detail-articles .articles-container {
    margin-top: 16px;
    font-size: 14px;
    color: var(--secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

tr:nth-child(even) {
    background-color: var(--code-bg);
}

.blog-detail-articles .articles-container td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.articles-footer {
    margin-top: 8px;
    font-size: 12px;
    color: var(--secondary);
    text-align: end;
    color: var(--muted);
}

.blog-detail-random-blogs {
    padding: var(--gap) var(--gap) calc(var(--gap) / 2) var(--gap);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
    background: var(--entry);
    margin-bottom: var(--gap);
}

.blog-detail-random-blogs .blogs-container {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.blog-detail-random-blogs .blogs-container .blog-entry {
    background: var(--code-bg);
    padding: 12px;
    margin-bottom: var(--gap);
}

.blog-detail-random-blogs .blogs-container .blog-entry h4 {
    font-size: 14px !important;
}

.blog-detail-random-blogs .blogs-container .blog-entry .description {
    -webkit-line-clamp: 2;
    font-size: 14px;
    margin-bottom: 0px;
    margin-top: 4px;
    padding: 0px;
}

.abstract .entry-content {
    -webkit-line-clamp: 200;
}

.abstract .source-site-go {
    margin-top: 6px;
    margin-bottom: 16px;
}

.abstract .source-site-go a h4 {
    color: var(--accent);
}

.abstract .notice {
    font-size: 12px;
    text-align: start;
    color: #14100f;
    margin-bottom: 10px;
}

.blog-requests {
    margin-top: 16px;
    padding: var(--gap);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
    background: var(--entry);
    margin-bottom: var(--gap);
}


.blog-requests .requests-container {
    font-size: 16px;
    color: var(--secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.blog-requests span {
    color: var(--primary);
    font-weight: bold;
}

.blog-requests .requests-header {
    margin-bottom: 20px;
}

.blog-requests .requests-form-container .key-value-entry {
    margin-bottom: 6px;
}

.blog-requests .requests-form-container .key-value-entry .field {
    font-size: 16px;
    color: var(--secondary);
    padding: 2px 4px 2px 4px;
    border: 2px solid var(--tertiary);
}

.blog-requests .requests-form-container .key-value-entry .label {
    display: flex;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;
    margin-bottom: 2px;
}

.blog-requests .requests-form-container .key-value-entry input {
    width: 100%;
    caret-color: var(--content);
    color: var(--content);
}

.blog-requests .requests-form-container .key-value-entry textarea {
    width: 100%;
    height: 100px;
    caret-color: var(--content);
    color: var(--content);
}

.blog-requests .requests-form-container .key-value-entry input[type="submit"] {
    margin-top: 10px;
    font-size: 16px;
    width: 80px !important;
    color: var(--theme);
    line-height: 30px;
    background: var(--primary);
    border-radius: 16px;
    padding: 0 16px;
}

.login-form {
    padding: var(--gap);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 1px solid var(--tertiary);
    background: var(--entry);
    margin-bottom: var(--gap);
}


.login-form .login-form-container {
    font-size: 16px;
    color: var(--secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.login-form .login-form-container .key-value-entry {
    margin-bottom: 6px;
}

.login-form .login-form-container .key-value-entry .field {
    font-size: 16px;
    color: var(--secondary);
    padding: 2px 4px 2px 4px;
    border: 2px solid var(--tertiary);
}

.login-form .login-form-container .key-value-entry .label {
    display: flex;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;
    margin-bottom: 2px;
}

.login-form .login-form-container .key-value-entry input {
    width: 100%;
    caret-color: var(--content);
    color: var(--content);
}

.login-form .login-form-container .key-value-entry input[type="submit"] {
    margin-top: 10px;
    font-size: 16px;
    width: 80px !important;
    color: var(--theme);
    line-height: 30px;
    background: var(--primary);
    border-radius: 16px;
    padding: 0 16px;
}

.tooltiptext {
    visibility: hidden;
    background-color: var(--content);
    color: var(--theme);
    margin-bottom: 52px;
    text-align: center;
    border-radius: 4px;
    padding: 2px 4px 2px 4px;
    font-size: 12px;
    position: absolute;
    z-index: 1;
}

.switch-sort-type {
    margin-top: 16px;
    margin-bottom: 10px;
}

.switch-sort-type .menu {
    list-style: none;
    word-break: keep-all;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    margin: 0 0;
}

.switch-sort-type .menu a {
    font-size: 16px !important;
}

.switch-sort-type .menu .active {
    font-weight: 500;
    border-bottom: 2px solid;
}

.switch-sort-type .menu li {
    margin-right: 16px;
}

.post-entry .entry-header.sharing {
    -webkit-line-clamp: 3;
}

.sharing img {
    content: url(/assets/images/sites/share/share-black.png);
}

.dark .sharing img {
    content: url(/assets/images/sites/share/share-white.png);
}

.share .entry-content {
    -webkit-line-clamp: 4;
}

.share .source-site-go {
    margin-top: 6px;
    margin-bottom: 16px;
}

.share .source-site-go a h4 {
    color: var(--accent);
}

.special-thanks {
    border: 1px solid var(--tertiary);
    border-radius: var(--radius);
}

.special-thanks .popular-bloggers {
    display: flex;
    justify-content: center;
}

/* ---- redesign batch 1: article list hierarchy (home + list pages) ---- */
main article.post-entry {
  padding: 18px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--entry);
  transition: border-color .15s, transform .15s;
}
main article.post-entry:hover { border-color: var(--accent); }
main article.post-entry h4 {
  font-size: 17px !important; font-weight: 600 !important; line-height: 1.5;
  color: var(--primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
main article.post-entry p {
  margin-top: 6px;
  font-size: 15px; line-height: 1.75; color: var(--secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
main article.post-entry .entry-footer {
  margin-top: 10px; font-size: 13px; color: var(--muted);
}
main article.post-entry .entry-footer a { color: var(--secondary); }

/* ---- redesign batch 1: homepage two sections, visually distinct ----
   (second draft supersedes the section-head + rec rules below;
   the --new compact-list rules are kept: .latest-row builds on them) ---- */
.home-section--new article.post-entry {
  border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; background: transparent;
  padding: 14px 4px; margin: 0;
}
.home-section--new article.post-entry:hover { border-bottom-color: var(--accent); }
.home-section--new article.post-entry p { -webkit-line-clamp: 1; }

/* ---- redesign batch 1: mobile nav no longer clipped ---- */
/* .menu is a flex item inside .nav; without min-width:0 it refuses to shrink
   below the menu content width and pushes the whole page past 390px */
.header .nav .menu { min-width: 0; }
#menu a { padding: 10px 0; }
#menu a.active, #menu .active { color: var(--accent); border-bottom: 2px solid var(--accent); }
@media (max-width: 600px) {
  #menu {
    gap: 14px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  #menu::-webkit-scrollbar { display: none; }
  /* base gives li+li a 24px margin; on mobile the 14px flex gap is the only spacing */
  .header #menu li+li { margin-inline-start: 0; }
  .header #menu a { font-size: 15px !important; white-space: nowrap; }
}

/* ---- redesign batch 1: 16px gap between intro text and notice bar after avatar wall removal ---- */
article.first-entry.home-info { margin-bottom: 16px; }

/* ================= redesign batch 2 ================= */

/* ---- 6. fonts: LXGW WenKai Screen for titles, system sans for body ---- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;
  --font-title: "LXGW WenKai Screen", "Kaiti SC", "STKaiti", "KaiTi", var(--font-sans);
}
/* body#top beats the base body rule (custom CSS loads before stylesheet.min.css) */
body#top {
  font-family: var(--font-sans);
  line-height: 1.75;
}
.logo a,
.home-section > .section-head h2,
main article.post-entry h4,
main h1, main h2, main h3,
.articles-title h4, .charts-title h4, .blogs-title h4 {
  font-family: var(--font-title);
  font-weight: normal !important;
}
/* WenKai titles: 18px instead of batch 1's 17px/600 */
main article.post-entry h4 { font-size: 18px !important; }

/* ---- 8. notice bar + search box ---- */
.latest-news {
  border: 0; background: var(--accent-soft);
  border-radius: var(--radius); padding: 8px 14px;
  height: calc(var(--h) * 1px + 16px);
  font-size: 14px;
}
.latest-news .content { color: var(--accent); }
.latest-news .content ul li {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent);
}
.latest-news .content ul li a { color: var(--accent); }
.dark .latest-news .content ul li { background-image: none; }

#searchbox #searchInput {
  height: 44px; padding: 0 14px; font-size: 16px;
  border: 1px solid var(--tertiary); border-radius: var(--radius);
  background: var(--entry); transition: border-color .15s, box-shadow .15s;
}
#searchbox #searchInput:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---- 9. sort tabs as segmented capsules ---- */
.switch-sort-type .menu {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--border); border-radius: 999px;
}
.switch-sort-type .menu li { margin-right: 0; }
.switch-sort-type .menu a {
  display: block; padding: 4px 14px; font-size: 14px !important; font-weight: 500;
  color: var(--muted); border-radius: 999px; border: 0;
}
.switch-sort-type .menu a.active { background: var(--entry); color: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,.06); border-bottom: 0; }

/* ---- 10. blogs plaza cards ---- */
.blog-entry .icon-and-title h4 {
  font-size: 17px !important; font-weight: 600 !important;
  font-family: var(--font-title);
}
.blog-entry .summary .flex-item .title p { font-size: 12px; color: var(--muted); }
.blog-entry .summary .flex-item .count p { color: var(--primary); font-variant-numeric: tabular-nums; }
.blog-entry .description {
  background: none; padding: 0;
  font-style: italic;
}

/* ---- 11. blog detail cover: accent gradient instead of texture image ---- */
.blog-detail-main {
  background-image: none;
  background: linear-gradient(180deg, var(--accent-soft), var(--entry));
}
.dark .blog-detail-main {
  background-image: none;
  background: linear-gradient(180deg, var(--accent-soft), var(--entry));
}
/* detail page slogan: same italic treatment as the plaza cards, no grey box */
.blog-detail-header .description {
  background: none; padding: 0;
  font-style: italic;
}

/* ---- 12. monthly selected / request form / about ---- */
.monthly-selected-container thead td span { font-size: 12px; color: var(--muted); }
.monthly-selected-container tbody tr { border-bottom: 1px solid var(--border); }
.monthly-selected-container tbody td { height: 44px; }
.monthly-selected-container tbody td:nth-child(2) a { color: var(--primary); font-weight: 500; }
.monthly-selected-container tbody td:nth-child(2) a:hover { color: var(--accent); }
/* pagination buttons: accent outline instead of the black capsule (shared by all list pages) */
main .pagination a { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.blog-requests .requests-form-container .key-value-entry { margin-bottom: 18px; }
.blog-requests .requests-form-container .key-value-entry .field {
  border: 1px solid var(--tertiary); border-radius: var(--radius);
  padding: 0;
}
.blog-requests .requests-form-container .key-value-entry .field input,
.blog-requests .requests-form-container .key-value-entry .field textarea {
  height: 44px; padding: 0 14px; font-size: 16px;
  background: var(--entry); border: 0; outline: none;
}
.blog-requests .requests-form-container .key-value-entry .field textarea { height: 100px; padding: 14px; }
.blog-requests .requests-form-container .key-value-entry .field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.blog-requests .requests-form-container .key-value-entry input[type="submit"] {
  width: 120px !important; height: 44px; line-height: 44px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: var(--radius); padding: 0;
}
.blog-requests .required-star { color: var(--accent); }

main .post-content h3 { margin-top: 28px; }
.post-content li { line-height: 1.8; }

/* ---- 13. footer ---- */
.footer-block .footer-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center; gap: 12px;
}
.footer-block .footer-summary .flex-item { margin: 0; }
.footer-block .footer-summary .flex-item p { font-size: 12px; color: var(--muted); }
.footer-block .footer-summary .flex-item a {
  background: none; -webkit-text-fill-color: currentColor;
  color: var(--primary); font-size: 22px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.footer-block .footer-contact {
  font-size: 12px; color: var(--muted);
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.planet-shuttle a {
  background: none; -webkit-text-fill-color: currentColor;
  color: var(--accent);
}
.dark .planet-shuttle a { background-image: none; }

/* ================= 第三批（可选 14-20） ================= */

/* ---- 14. theme switch: ease the light/dark change ---- */
body {
  transition: background-color .2s, color .2s;
}

/* ---- 15. text selection tinted with the accent ---- */
::selection {
  background: var(--accent-soft);
  color: var(--primary);
}

/* ---- 16. back-to-top: 40px circle, entry bg + border, accent on hover ----
   base sheet (.top-link, loaded after this file) is 42px on var(--tertiary);
   a.top-link outranks it, and the svg arrow follows currentColor. */
a.top-link {
  width: 40px; height: 40px; padding: 10px;
  background: var(--entry);
  border: 1px solid var(--border);
  border-radius: 50%;
}
a.top-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- 17. share icon: dim until the card is hovered ---- */
main article.post-entry .entry-footer .sharing {
  opacity: .5;
  transition: opacity .15s;
}
main article.post-entry:hover .entry-footer .sharing {
  opacity: 1;
}

/* ---- 18. new-article dot: latest column, published within 24h ----
   the article gets class "is-new" from the template (Thymeleaf #dates);
   the dot is an ::after on the title (verified inline after the text,
   incl. two-line clamped titles). */
.home-section--new article.post-entry.is-new .article-go h4::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- 19. print: keep only the article list, force light colours
   (dark theme text would otherwise vanish on white paper) ---- */
@media print {
  .header, #searchbox, .latest-news, .hero, .footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  main article.post-entry,
  .home-section > .section-head h2 {
    background: transparent !important;
    color: #000 !important;
  }
  main article.post-entry h4,
  main article.post-entry p,
  main article.post-entry .entry-footer,
  main article.post-entry .entry-footer a {
    color: #000 !important;
  }
  main article.post-entry {
    border: 1px solid #ccc !important;
  }
  a { color: #000 !important; }
}

/* ---- 20. reduced motion: kill transitions and animations ----
   (also covers the theme transition from 14 and the notice scroll) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ================= 第二稿：首页重做（2026-11-23） =================
   Supersedes batch 1's section-head + rec-card rules (deleted above)
   and batch 2's logo rules (deleted above). The --new compact-list
   rules are kept; .latest-row builds on them. */

/* --muted/--secondary are re-tuned here; the batch-1 :root values are
   !important, so these need !important too. --chip is new. */
:root { --muted: #77726A !important; --secondary: #5F5B55 !important; --chip: #ECE7DD !important; }
.dark { --muted: #8F8B84 !important; --secondary: #A19D96 !important; --chip: #2C2D31 !important; }

/* Logo 印章 (template 1) */
.logo-mark { display: inline-flex; align-items: center; gap: 6px; background: none; -webkit-text-fill-color: currentColor; }
.logo-text { font-family: var(--font-title); font-size: 26px; letter-spacing: 2px; color: var(--primary); }
.logo-seal {
  font-family: var(--font-title); font-size: 22px; line-height: 1;
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 4px; transform: rotate(-4deg);
}
.dark .logo-seal { color: var(--theme); }

/* 首页放宽 */
main.home-wide { max-width: 1040px; }

/* 顶部大标题区 (template 2) */
.hero { padding: 40px 0 32px; }
.hero-kicker { font-size: 13px; letter-spacing: 4px; color: var(--accent); }
.hero-title { margin: 12px 0 0; font-family: var(--font-title); font-weight: normal; font-size: 48px !important; line-height: 1.3; color: var(--primary); }
.hero-lead { margin: 16px 0 0; max-width: 620px; font-size: 16px; color: var(--secondary); }
.hero-lead a { color: var(--accent); border-bottom: 1px solid currentColor; }
.hero-search { margin-top: 28px; max-width: 680px; display: flex; gap: 10px; }
.hero-search form { flex: 1; min-width: 0; display: flex; gap: 10px; }
.hero-search input { flex: 1; min-width: 0; height: 52px; font-size: 16px; padding: 0 18px; border-radius: 10px; }
/* no <form> on the live site: search is JS-driven (home-search.js).
   #searchbox is the flex item, and the input needs an ID-level rule
   to beat batch 2's #searchbox #searchInput (44px). */
.hero-search #searchbox { flex: 1; min-width: 0; }
.hero-search #searchbox #searchInput { height: 52px; padding: 0 18px; }
.hero-search-btn {
  height: 52px; padding: 0 26px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 16px; cursor: pointer;
}
.dark .hero-search-btn { color: var(--theme); }
.hero-stats { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; color: var(--muted); }
.hero-stats b { font-family: var(--font-title); font-weight: normal; font-size: 28px; color: var(--primary); font-variant-numeric: tabular-nums; }
/* footer stats are duplicated by the hero on the home page only */
.home .footer-summary { display: none; }

/* 区块标题与小印章 */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 48px 0 18px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-title); font-weight: normal; font-size: 26px !important; border: 0; padding: 0; }
.section-tools { display: flex; align-items: center; gap: 16px; }
.section-head a { font-size: 14px; color: var(--muted); }
.seal { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 16px; border-radius: 3px; }
.seal-line { border: 1.5px solid var(--accent); color: var(--accent); }
.seal-fill { background: var(--accent); color: #fff; }
.dark .seal-fill { color: var(--theme); }

/* 推荐：头条 + 网格 (template 3) */
.rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rec-grid .post-entry { margin: 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--entry); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 150px; }
.rec-grid .post-entry:not(.rec-feature) p { display: none; }
/* (0,2,3) beats batch 2's main article.post-entry h4 (0,1,3) */
.rec-feature { grid-column: span 2; grid-row: span 2; padding: 32px !important; }
main .rec-grid article.post-entry h4 { font-size: 19px !important; }
main .rec-grid article.post-entry.rec-feature h4 { font-size: 32px !important; line-height: 1.4; -webkit-line-clamp: 3 !important; }
main .rec-grid article.post-entry.rec-feature p { -webkit-line-clamp: 4 !important; font-size: 16px; }
.rec-kicker { font-size: 13px; letter-spacing: 2px; color: var(--accent); }

/* 最新：时间线 (template 4) */
.latest-row { display: grid !important; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 20px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; background: transparent !important; }
.lt-time { padding-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lt-body { min-width: 0; }
main article.post-entry.latest-row h4 { font-size: 20px !important; }
.latest-row p { -webkit-line-clamp: 1 !important; }
.latest-row .entry-footer .time { display: none; }   /* 元信息里重复的时间 */

/* 首字头像 (template 5) */
.initial { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-title); font-size: 13px; }

/* 手机 */
@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero-title { font-size: 32px !important; line-height: 1.35; }
  .hero-search #searchbox #searchInput, .hero-search-btn { height: 48px; }
  .hero-search-btn { padding: 0 18px; }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 22px; }
  .section-head h2 { font-size: 22px !important; }
  .section-tools > :not(:last-child) { display: none; }   /* 手机上只留“更多”，标签切换仍在列表页里 */
  .rec-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
  .rec-feature { grid-column: span 1; grid-row: span 1; padding: 22px !important; }
  main .rec-grid article.post-entry.rec-feature h4 { font-size: 24px !important; }
  .latest-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lt-time { padding: 0; font-size: 12px; }
}

/* ===== 第三步：首页新增五个模块 ===== */
/* 节气题签 */
.term-tag[hidden] { display: none; }
.term-tag { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border: 1px solid var(--tertiary); border-radius: 999px; background: var(--entry); margin-left: 14px; vertical-align: middle; }
.term-name { font-family: var(--font-title); font-size: 15px; padding: 0 12px; height: 26px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: #fff; }
.dark .term-name { color: var(--theme); }
.term-poem { font-family: var(--font-title); font-size: 15px; color: var(--secondary); }

/* 随机穿梭 */
.shuttle-btn { height: 52px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--accent); border-radius: 10px; color: var(--accent); font-size: 16px; white-space: nowrap; box-sizing: border-box; transition: background .15s, color .15s; }
.shuttle-btn:hover { background: var(--accent); color: #fff; }
.dark .shuttle-btn:hover { color: var(--theme); }

/* 脉搏 */
.pulse { display: flex; align-items: flex-end; gap: 14px; padding-left: 28px; border-left: 1px solid var(--tertiary); }
.pulse-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.pulse-bars span { width: 6px; border-radius: 2px; background: var(--accent); opacity: .35; }
.pulse-bars span.now { opacity: 1; }
.pulse-text { font-size: 14px; line-height: 1.5; color: var(--secondary); }
.pulse-text b { font-family: var(--font-title); font-weight: normal; font-size: 20px; color: var(--primary); }
.pulse-text .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pulse-text .dot { animation: none; } }

/* 那年今日 */
.memory { margin-top: 48px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding: 32px 36px; background: var(--entry); border: 1px solid var(--border); border-radius: 14px; }
.memory-label { font-size: 13px; letter-spacing: 4px; color: var(--accent); }
.memory-date { font-family: var(--font-title); font-size: 44px; line-height: 1.2; color: var(--accent); margin-top: 6px; }
.memory-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.memory-item:last-child { border-bottom: 0; }
.memory-year { font-family: var(--font-title); font-size: 22px; color: var(--muted); }
.memory-item h3 { margin: 0; font-family: var(--font-title); font-weight: normal; font-size: 19px; line-height: 1.5; }
.memory-item h3 a { color: var(--primary); }
.memory-item h3 a:hover { color: var(--accent); }
.memory-meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.memory-meta a { color: var(--secondary); }

/* 热力图 */
.heat-section { margin-top: 48px; }
.heat-summary { font-size: 14px; color: var(--muted); }
.heat-summary b { font-family: var(--font-title); font-weight: normal; font-size: 20px; color: var(--primary); }
.heat-wrap { overflow-x: auto; }
.heat { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 3px; width: max-content; }
.heat span { width: 14px; height: 14px; border-radius: 3px; }
.lv-1 { background: transparent; }
.lv0 { background: #EDE8DF; } .lv1 { background: #F2CFC3; } .lv2 { background: #E39A82; } .lv3 { background: #C9644A; } .lv4 { background: #94331F; }
.dark .lv0 { background: #2A2B2F; } .dark .lv1 { background: #4A2E26; } .dark .lv2 { background: #7A3E2C; } .dark .lv3 { background: #B4593F; } .dark .lv4 { background: #E88A6E; }

@media (max-width: 760px) {
  .term-tag { margin: 10px 0 0; }
  .term-poem { font-size: 13px; }
  .hero-search { flex-wrap: wrap; }
  .shuttle-btn { width: 100%; justify-content: center; height: 48px; }
  .pulse { padding-left: 0; border-left: 0; width: 100%; }
  .memory { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px; }
  .memory-date { font-size: 32px; }
  .memory-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
}
