@font-face {
    font-family: 'Gen Shin Gothic Heavy';
    src: url('/fonts/GenShinGothic-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* =================================================================== 
 *
 *  Typewrite Base Stylesheet
 *  Template Ver. 1.1.0
 *  03-15-2021
 *  ------------------------------------------------------------------
 *
 *  TOC:
 *  # base style overrides
 *      ## links
 *  # typography & general theme styles
 *      ## Lists
 *      ## responsive video container
 *      ## floated image
 *      ## tables
 *      ## Spacing 
 *  # preloader 
 *  # forms
 *      ## Style Placeholder Text
 *      ## Change Autocomplete styles in Chrome
 *  # buttons
 *  # additional components
 *      ## additional typo styles
 *      ## skillbars
 *      ## alert box 
 *      ## pagination
 *  # Common and Reusable Styles
 *      ## animation stuff 
 *      ## entry media
 *      ## listing header
 *      ## slick slider 
 *      ## masonry entries
 *      ## post formats - masonry view
 *  # site header
 *      ## header logo
 *      ## header main navigation
 *      ## menu toggle
 *      ## header social
 *  # site content & footer 
 *      ## content
 *      ## footer
 *      ## copyright
 *      ## go to top
 *  # blog styles and blog components
 *      ## entry header meta
 *      ## post tags
 *      ## blog single page navigation
 *      ## related articles
 *      ## comments
 *      ## format gallery
 *
 * =================================================================== */


/* ===================================================================
 * # base style overrides
 *
 * ------------------------------------------------------------------- */
html {
    font-size: 10px;
}

@media screen and (max-width: 400px) {
    html {
        font-size: 9.210526315789474px;
    }
}

html,
body {
    height: 100%;
}

body {
    background: #f6f7f8;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.9rem;
    font-style: normal;
    font-weight: normal;
    line-height: 1.789;
    color: #000000;
    margin: 0;
    padding: 0;
}

body.nav-wrap-is-visible {
    overflow: hidden;
}

body.ss-bg-white {
    background: #ffffff;
}

/* ------------------------------------------------------------------- 
 * ## links
 * ------------------------------------------------------------------- */
a {
    color: #428bca;
    transition: all 0.3s ease-in-out;
}

a:hover,
a:focus,
a:active {
    color: #0056b3;
}

a:hover,
a:active {
    outline: 0;
}


/* ===================================================================
 * # typography & general theme styles
 * 
 * ------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #000000;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
    margin-top: 6rem;
    margin-bottom: 1.6rem;
}

@media screen and (max-width: 600px) {

    h1,
    .h1,
    h2,
    .h2,
    h3,
    .h3,
    h4,
    .h4 {
        margin-top: 5.6rem;
    }
}

h5,
.h5,
h6,
.h6 {
    margin-top: 4.8rem;
    margin-bottom: 1.2rem;
}

@media screen and (max-width: 600px) {

    h5,
    .h5,
    h6,
    .h6 {
        margin-top: 4.4rem;
        margin-bottom: 0.8rem;
    }
}

h1,
.h1 {
    font-size: 3.6rem;
    line-height: 1.222;
}

@media screen and (max-width: 600px) {

    h1,
    .h1 {
        font-size: 3.3rem;
    }
}

h2,
.h2 {
    font-size: 3rem;
    line-height: 1.2;
}

h3,
.h3 {
    font-size: 2.4rem;
    line-height: 1.167;
}

h4,
.h4 {
    font-size: 2.1rem;
    line-height: 1.333;
}

h5,
.h5 {
    font-size: 1.8rem;
    line-height: 1.333;
}

h6,
.h6 {
    font-size: 1.6rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .16rem;
}

p img {
    margin: 0;
}

p.lead {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1.833;
    margin-bottom: 3.6rem;
    color: #000000;
}

@media screen and (max-width: 1200px) {
    p.lead {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 600px) {
    p.lead {
        font-size: 2.1rem;
    }
}

em,
i,
strong,
b {
    font-size: inherit;
    line-height: inherit;
}

em,
i {
    font-family: "IBM Plex Sans", sans-serif;
    font-style: italic;
}

strong,
b {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
}

small {
    font-size: 1.2rem;
    line-height: inherit;
}

blockquote {
    margin: 4rem 0;
    padding: 4rem 4rem;
    border-left: 4px solid black;
    position: relative;
}

@media screen and (max-width: 600px) {
    blockquote {
        padding: 3.2rem 3.2rem;
    }
}

@media screen and (max-width: 400px) {
    blockquote {
        padding: 2.8rem 2.8rem;
    }
}

blockquote p {
    font-family: "Lora", serif;
    font-weight: 400;
    padding: 0;
    font-size: 2.4rem;
    line-height: 1.833;
    color: #000000;
}

@media screen and (max-width: 500px) {
    blockquote p {
        font-size: 2.2rem;
    }
}

blockquote cite {
    display: block;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    line-height: 1.333;
}

blockquote cite:before {
    content: "\2014 \0020";
}

blockquote cite,
blockquote cite a,
blockquote cite a:visited {
    color: #7e7e7e;
    border: none;
}

abbr {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: .05rem;
    color: #7e7e7e;
}

var,
kbd,
samp,
code,
pre {
    font-family: Consolas, "Andale Mono", Courier, "Courier New", monospace;
}

pre {
    padding: 2.4rem 3.2rem 3.2rem;
    background: #efefef;
    overflow-x: auto;
}

code {
    font-size: 1.4rem;
    margin: 0 .2rem;
    padding: .4rem .8rem;
    white-space: nowrap;
    background: #efefef;
    border: 1px solid #d3d3d3;
    color: #000000;
    border-radius: 3px;
}

pre>code {
    display: block;
    white-space: pre;
    line-height: 2;
    padding: 0;
    margin: 0;
    border: none;
}

pre.prettyprint>code {
    border: none;
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
    text-decoration: none;
}

mark {
    background: #fff099;
    color: #000000;
}

hr {
    border: solid #e0e0e0;
    border-width: 1px 0 0;
    clear: both;
    margin: 2.4rem 0 1.6rem;
    height: 0;
}

/* ------------------------------------------------------------------- 
 * ## Lists
 * ------------------------------------------------------------------- */
ol {
    list-style: decimal;
}

ul {
    list-style: disc;
}

li {
    display: list-item;
}

ol,
ul {
    margin-left: 1.6rem;
}

ul li {
    padding-left: .4rem;
}

ul ul,
ul ol,
ol ol,
ol ul {
    margin: .8rem 0 .8rem 1.6rem;
}

ul.disc li {
    display: list-item;
    list-style: none;
    padding: 0 0 0 .8rem;
    position: relative;
}

ul.disc li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #33998a;
    position: absolute;
    left: -16px;
    top: 11px;
    vertical-align: middle;
}

dt {
    margin: 0;
    color: #33998a;
}

dd {
    margin: 0 0 0 2rem;
}

/* ------------------------------------------------------------------- 
 * ## responsive video container
 * ------------------------------------------------------------------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------------------------- 
 * ## floated image
 * ------------------------------------------------------------------- */
img.pull-right {
    margin: 1.2rem 0 0 2.8rem;
}

img.pull-left {
    margin: 1.2rem 2.8rem 0 0;
}

/* ------------------------------------------------------------------- 
 * ## tables
 * ------------------------------------------------------------------- */
table {
    border-width: 0;
    width: 100%;
    max-width: 100%;
    font-family: "IBM Plex Sans", sans-serif;
    border-collapse: collapse;
}

th,
td {
    padding: 1.5rem 3.2rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    color: #000000;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
}

th:first-child,
td:first-child {
    padding-left: 0;
}

th:last-child,
td:last-child {
    padding-right: 0;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------------------------
 * ## horse detail page
 * ------------------------------------------------------------------- */

/* --- Hero 标题区 --- */
.horse-hero {
    background: #1a1a2e;
    color: #fff;
    padding: 1.4rem 3rem;
    border-radius: 6px;
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 1.2rem;
}

.horse-hero__name {
    display: contents;
}

.horse-hero__name h1 {
    font-size: 2.6rem;
    margin: 0;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.horse-hero__en {
    font-size: 1.5rem;
    margin: 0;
    opacity: 0.85;
    font-weight: 400;
    white-space: nowrap;
}

.horse-hero__en a {
    color: #fff;
    text-decoration: none;
}

.horse-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.horse-hero__tag {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 3px;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

.horse-hero__tag--gender    { background: #3a3a5c; color: #c8c8ff; }
.horse-hero__tag--color     { background: #3a3a5c; color: #e0d8c8; }
.horse-hero__tag--birthplace{ background: #2a4a3a; color: #a0e8b8; }
.horse-hero__tag--status    { background: #4a2a2a; color: #f0a0a0; }
.horse-hero__tag--active   { background: #2a3a4a; color: #80c8f0; }

.horse-hero__actions {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0 0.4rem;
}

.horse-hero__actions .btn {
    margin: 0;
}

/* --- Tab 导航 --- */
.horse-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
    margin-top: 0;
}

.horse-tabs__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.horse-tabs__item {
    margin: 0;
}

.horse-tabs__item a {
    display: block;
    padding: 1rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.horse-tabs__item a:hover {
    color: #333;
}

.horse-tabs__item.is-active a {
    color: #1a1a2e;
    border-bottom-color: #1a1a2e;
}

@media screen and (max-width: 600px) {
    .horse-tabs__item a {
        padding: 0.8rem 1.4rem;
        font-size: 1.4rem;
    }
}

/* --- Tab 面板 --- */
.horse-tabs__panel {
    display: none !important;
}

.horse-tabs__panel.is-active {
    display: block !important;
}

/* --- 简化血统表（3代，概览 tab 内） --- */
.pedigree-simple {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

.pedigree-simple__title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 0.6rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0e0e0;
}

.pedigree-simple__table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    font-size: 11pt;
    line-height: 1.4;
}

.pedigree-simple__table td {
    padding: 6px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.pedigree-simple__table td:first-child {
    width: 55%;
}

.pedigree-simple__table td.b_ml  { background: #ccefff; }
.pedigree-simple__table td.b_fml { background: #ffdbd5; }

.pedigree-simple__table a {
    color: #428bca;
    text-decoration: none;
}

.pedigree-simple__table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media screen and (max-width: 800px) {
    .pedigree-simple__table {
        font-size: 14px;
    }
}

@media screen and (max-width: 600px) {
    .pedigree-simple__table {
        font-size: 13px;
    }
    .pedigree-simple__table td {
        padding: 3px 4px;
    }
}

.horse-detail-page .entry__content h2 {
    font-size: 2.4rem;
    margin-top: 4rem;
    margin-bottom: 1.6rem;
}

.horse-detail-page .btn {
    margin-bottom: 1.6rem;
    font-size: 1.4rem;
    padding: 6px 16px;
    height: auto;
    line-height: 1.5;
}

.horse-detail__table-wrap {
    margin-bottom: 2rem;
}

.horse-detail__results-scroll {
    margin-bottom: 2rem;
}

/* 竞赛成绩表数字列居中（负重/场地/距离/马数/名次/用时/头马距离 = 第2-4、6-9列） */
#bisai th:nth-child(2),
#bisai th:nth-child(3),
#bisai th:nth-child(4),
#bisai th:nth-child(6),
#bisai th:nth-child(7),
#bisai th:nth-child(8),
#bisai th:nth-child(9),
#bisai td:nth-child(2),
#bisai td:nth-child(3),
#bisai td:nth-child(4),
#bisai td:nth-child(6),
#bisai td:nth-child(7),
#bisai td:nth-child(8),
#bisai td:nth-child(9) {
    text-align: center !important;
}

.racetables th.num-cell,
.racetables td.num-cell {
    text-align: center !important;
}

.racetables .race-info-cell {
    white-space: normal;
    min-width: 160px;
    text-align: left;
}

.racetables .race-info-meta {
    font-size: 0.85em;
    color: #888;
    line-height: 1.3;
}

.racetables .race-info-name {
    line-height: 1.4;
    min-height: 2.8em;
    display: flex;
    align-items: center;
}

.racetables .race-info-name__text {
    display: inline-block;
}

.racetables .race-info-name small {
    color: #888;
}

.race-level-tag {
    display: inline-block;
    font-size: 0.8em;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 4px;
    margin-left: 3px;
    white-space: nowrap;
}

.race-level-tag.g1 {
    background-color: #d11a2a;
    border-color: #d11a2a;
    color: #ffffff;
    font-weight: 600;
}

.race-level-tag.g2 {
    background-color: #1565c0;
    border-color: #1565c0;
    color: #ffffff;
    font-weight: 600;
}

.race-level-tag.g3 {
    background-color: #2e8b57;
    border-color: #2e8b57;
    color: #ffffff;
    font-weight: 600;
}

#pedigree,
#pedigree-full {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.horse-detail-page .alert-box {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    line-height: 1.6;
}

.horse-detail-page .alert-box--info {
    background-color: #e8f4fd;
    border: 1px solid #b3d8f0;
    color: #1a6fa0;
}

@media screen and (max-width: 800px) {
    .horse-detail-page .datatable {
        width: 100%;
        font-size: 95%;
    }

    .horse-detail-page .datatable th,
    .horse-detail-page .datatable td {
        padding: 5px 8px;
    }

    .horse-detail__results-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .racetables {
        font-size: 1.3rem;
        line-height: 1.4;
        min-width: 760px;
    }

    .racetables th,
    .racetables td {
        padding: 3px 5px !important;
        white-space: nowrap;
    }

    .racetables .race-info-cell {
        white-space: normal;
    }

    #pedigree,
    #pedigree-full {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bloodlinetables {
        font-size: 1.2rem;
        line-height: 1.35;
    }

    .bloodlinetables td {
        padding: 2px 4px !important;
    }

    .horse-detail-page .entry__content h2 {
        font-size: 2.4rem;
    }
}

@media screen and (max-width: 600px) {
    /* 保留战绩表的左右滑动，但不显示浏览器默认的横向滚动条。 */
    .horse-detail__results-scroll {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .horse-detail__results-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .horse-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
    }

    .horse-hero__name h1 {
        font-size: 2.4rem;
        white-space: normal;
        word-break: break-word;
    }

    .horse-hero__en {
        font-size: 1.6rem;
        white-space: normal;
        word-break: break-word;
    }

    .horse-hero__tag {
        font-size: 1.3rem;
        padding: 0.15rem 0.6rem;
    }

    .horse-hero__actions {
        justify-content: stretch;
    }

    .horse-hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .horse-tabs__nav {
        flex-wrap: wrap;
    }

    .horse-tabs__item a {
        padding: 0.8rem 1.4rem;
        font-size: 1.8rem;
    }

    .horse-detail-page .entry__content h2 {
        font-size: 2.4rem;
        margin-top: 3rem;
        margin-bottom: 1.2rem;
    }

    .horse-detail-page .btn {
        font-size: 1.5rem;
        padding: 6px 14px;
    }

    .horse-detail-page .alert-box {
        font-size: 1.6rem;
    }

    .horse-detail-page .datatable {
        font-size: 90%;
    }

    .horse-detail-page .datatable th {
        width: 30%;
    }

    .racetables {
        font-size: 1.1rem;
        line-height: 1.3;
        min-width: 680px;
    }

    .racetables th,
    .racetables td {
        padding: 2px 4px !important;
        white-space: nowrap;
    }

    .racetables .race-info-cell {
        white-space: normal;
    }

    .bloodlinetables {
        font-size: 1rem;
        line-height: 1.3;
    }

    .bloodlinetables td {
        padding: 2px 3px !important;
        min-width: 110px;
    }

    .bloodlinetables a.horse-link {
        word-break: break-word;
    }
}

@media screen and (max-width: 400px) {
    .horse-hero__name h1 {
        font-size: 2.2rem;
    }

    .bloodlinetables {
        font-size: 0.9rem;
    }

    .bloodlinetables td {
        min-width: 100px;
    }
}

/* ------------------------------------------------------------------- 
 * ## bloodlinetables
 * ------------------------------------------------------------------- */

.bloodlinetables {
    border-collapse: collapse;
    border-width: 0;
    font-size: 10pt;
    line-height: 1.4em;
    text-size-adjust: 100%;
}

.bloodlinetables th,
.bloodlinetables td {
    padding: 4px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.bloodlinetables th {
    background-color: #f2f2f2;
}

.bloodlinetables td {
    min-width: 140px;
}

.bloodlinetables td.b_ml {
    background: #ccefff;
}

.bloodlinetables td.b_fml {
    background: #ffdbd5;
}

.bloodlinetables tr {
    height: 15px;
}

/* 血统表需要在手机上完整显示，而非依赖横向滚动。 */
@media screen and (max-width: 600px) {
    #pedigree-full .bloodlinetables {
        width: 100%;
        table-layout: fixed;
        font-size: 1.3rem;
        line-height: 1.2;
    }

    #pedigree-full .bloodlinetables td {
        min-width: 0;
        padding: 1px 2px !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #pedigree-full .bloodlinetables .sire-l4,
    #pedigree-full .bloodlinetables .dam-l4 {
        font-size: 1.15rem;
    }
}

/* ------------------------------------------------------------------- 
 * ## datatable
 * ------------------------------------------------------------------- */

.datatable {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border-width: 0;
    font-size: 11pt;
    line-height: 1.2em;
    text-size-adjust: 100%;
    margin: 0;
}

.datatable th,
.datatable td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.datatable th {
    background-color: #f2f2f2;
    width: 25%;
}

.datatable td {
    width: 75%;
}


/* ------------------------------------------------------------------- 
 * ## racetables
 * ------------------------------------------------------------------- */
.racetables {
    font-size: 10pt;
    line-height: 1.5em;
    text-size-adjust: 100%;
    border: 1px solid #ddd;
}

.racetables td {
    padding: 1px 5px 1px 5px;
    text-align: center;
    border: 1px solid #ddd;
}

.racetables th {
    padding: 1px 5px 1px 5px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    border: 1px solid #ddd;
}


/* ------------------------------------------------------------------- 
 * ## termtables
 * ------------------------------------------------------------------- */
.termtables {
    font-size: 10pt;
    line-height: 1.5em;
    text-size-adjust: 100%;
}

.termtables td {
    padding: 1px 5px 1px 5px;
    text-align: left;
}

.termtables th {
    padding: 1px 5px 1px 5px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

/* ------------------------------------------------------------------- 
 * ## notestables
 * ------------------------------------------------------------------- */
.notestables {
    font-size: 10pt;
    line-height: 1.5em;
    text-size-adjust: 100%;
    width: 50%;
    margin: auto;
}

.notestables td {
    padding: 1px 5px 1px 5px;
    text-align: left;
    border-bottom: 0;
}

.notestables th {
    padding: 1px 5px 1px 5px;
    text-align: left;
    border-bottom: 0;
}

/* ------------------------------------------------------------------- 
 * ## Spacing 
 * ------------------------------------------------------------------- */
button,
.btn {
    margin-bottom: 1.6rem;
}

fieldset {
    margin-bottom: 1.6rem;
}

input,
textarea,
select,
pre,
blockquote,
figure,
table,
p,
ul,
ol,
dl,
form,
.video-container,
.ss-custom-select {
    margin-bottom: 3.2rem;
}


/* ===================================================================
 * # preloader 
 *
 * ------------------------------------------------------------------- */
/* 预加载层始终覆盖整个视口 */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* 初始隐藏页面内容，避免未加载完成时闪现 */
.ss-preload body {
    opacity: 0;
    overflow: hidden;
}

/* 页面加载完成后渐显内容 */
.ss-loaded body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.no-js #preloader,
.oldie #preloader {
    display: none;
}

#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    padding: 0;
    display: inline-block;
    transform: translate3d(-50%, -50%, 0);
}

#loader>div {
    content: "";
    background: #000000;
    width: 6px;
    height: 6px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

#loader>div:nth-of-type(1) {
    left: 15px;
}

#loader>div:nth-of-type(3) {
    left: -15px;
}

/* dots jump */
.dots-jump>div {
    -webkit-animation: dots-jump 1.2s infinite ease;
    animation: dots-jump 1.2s infinite ease;
    animation-delay: 0.2s;
}

.dots-jump>div:nth-of-type(1) {
    animation-delay: 0.4s;
}

.dots-jump>div:nth-of-type(3) {
    animation-delay: 0s;
}

@-webkit-keyframes dots-jump {
    0% {
        top: 0;
    }

    40% {
        top: -6px;
    }

    80% {
        top: 0;
    }
}

@keyframes dots-jump {
    0% {
        top: 0;
    }

    40% {
        top: -6px;
    }

    80% {
        top: 0;
    }
}

/* dots fade */
.dots-fade>div {
    -webkit-animation: dots-fade 1.6s infinite ease;
    animation: dots-fade 1.6s infinite ease;
    animation-delay: 0.4s;
}

.dots-fade>div:nth-of-type(1) {
    animation-delay: 0.8s;
}

.dots-fade>div:nth-of-type(3) {
    animation-delay: 0s;
}

@-webkit-keyframes dots-fade {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0.2;
    }

    80% {
        opacity: 1;
    }
}

@keyframes dots-fade {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0.2;
    }

    80% {
        opacity: 1;
    }
}

/* dots pulse */
.dots-pulse>div {
    -webkit-animation: dots-pulse 1.2s infinite ease;
    animation: dots-pulse 1.2s infinite ease;
    animation-delay: 0.2s;
}

.dots-pulse>div:nth-of-type(1) {
    animation-delay: 0.4s;
}

.dots-pulse>div:nth-of-type(3) {
    animation-delay: 0s;
}

@-webkit-keyframes dots-pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    40% {
        -webkit-transform: scale(1.1);
        transform: scale(1.3);
    }

    80% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes dots-pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    40% {
        -webkit-transform: scale(1.1);
        transform: scale(1.3);
    }

    80% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}


/* ===================================================================
 * # forms 
 *
 * ------------------------------------------------------------------- */
fieldset {
    border: none;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    display: block;
    height: 6.4rem;
    padding: 1.6rem 0 1.5rem;
    border: 0;
    outline: none;
    color: #000000;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.6rem;
    line-height: 3.2rem;
    max-width: 100%;
    background: transparent;
    border-bottom: 1px solid #c3c3c3;
    transition: all .3s ease-in-out;
}

.ss-custom-select {
    position: relative;
    padding: 0;
}

.ss-custom-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-indent: 0.01px;
    text-overflow: '';
    margin: 0;
    line-height: 3rem;
    vertical-align: middle;
}

.ss-custom-select select option {
    padding-left: 2rem;
    padding-right: 2rem;
}

.ss-custom-select select::-ms-expand {
    display: none;
}

.ss-custom-select::after {
    border-bottom: 2px solid #000000;
    border-right: 2px solid #000000;
    content: '';
    display: block;
    height: 8px;
    width: 8px;
    margin-top: -7px;
    pointer-events: none;
    position: absolute;
    right: 2.4rem;
    top: 50%;
    transition: all 0.15s ease-in-out;
    -webkit-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

textarea {
    min-height: 25.6rem;
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    color: #000000;
    border-bottom: 1px solid #000000;
}

label,
legend {
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: .8rem;
    line-height: 1.714;
    color: #000000;
    display: block;
}

input[type="checkbox"],
input[type="radio"] {
    display: inline;
}

label>.label-text {
    display: inline-block;
    margin-left: 1rem;
    font-family: "IBM Plex Sans", sans-serif;
    line-height: inherit;
}

label>input[type="checkbox"],
label>input[type="radio"] {
    margin: 0;
    position: relative;
    top: .2rem;
}

/* ------------------------------------------------------------------- 
 * ## Style Placeholder Text
 * ------------------------------------------------------------------- */
::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #8c8c8c;
}

:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #8c8c8c;
    opacity: 1;
}

::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #8c8c8c;
    opacity: 1;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #8c8c8c;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #8c8c8c;
}

::placeholder {
    /* Most modern browsers support this now. */
    color: #8c8c8c;
}

.placeholder {
    color: #8c8c8c !important;
}

/* ------------------------------------------------------------------- 
 * ## Change Autocomplete styles in Chrome
 * ------------------------------------------------------------------- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus input:-webkit-autofill,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #33998a;
    transition: background-color 5000s ease-in-out 0s;
}


/* ===================================================================
 * # buttons
 *
 * ------------------------------------------------------------------- */
.btn,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    display: inline-block;
    font-family: "Heebo", sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .5rem;
    height: 6rem;
    line-height: 5.6rem;
    padding: 0 3.2rem;
    margin: 0 .4rem 1.6rem 0;
    color: #000000;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all .3s ease-in-out;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #d3d3d3;
    border: 0.2rem solid #d3d3d3;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
    background-color: #c3c3c3;
    border-color: #c3c3c3;
    color: #000000;
    outline: 0;
}

/* button primary
 * ------------------------------------------------- */
.btn.btn--primary,
button.btn--primary,
input[type="submit"].btn--primary,
input[type="reset"].btn--primary,
input[type="button"].btn--primary {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.btn.btn--primary:hover,
button.btn--primary:hover,
input[type="submit"].btn--primary:hover,
input[type="reset"].btn--primary:hover,
input[type="button"].btn--primary:hover,
.btn.btn--primary:focus,
button.btn--primary:focus,
input[type="submit"].btn--primary:focus,
input[type="reset"].btn--primary:focus,
input[type="button"].btn--primary:focus {
    background: #428bca;
    border-color: #428bca;
}

/* button modifiers
 * ------------------------------------------------- */
.btn.full-width,
button.full-width {
    width: 100%;
    margin-right: 0;
}

.btn--medium,
button.btn--medium {
    height: 6.4rem !important;
    line-height: 6rem !important;
}

.btn--large,
button.btn--large {
    height: 6.8rem !important;
    line-height: 6.4rem !important;
}

.btn--stroke,
button.btn--stroke {
    background: transparent !important;
    border: 0.2rem solid #000000;
    color: #000000;
}

.btn--stroke:hover,
button.btn--stroke:hover {
    background: #000000 !important;
    border: 0.2rem solid #000000;
    color: #ffffff;
}

.btn--pill,
button.btn--pill {
    padding-left: 3.2rem !important;
    padding-right: 3.2rem !important;
    border-radius: 1000px !important;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}


/* =================================================================== 
 * # additional components
 *
 * ------------------------------------------------------------------- */

/* ------------------------------------------------------------------- 
 * ## additional typo styles 
 * ------------------------------------------------------------------- */
/* drop cap 
 * ----------------------------------------------- */
.drop-cap:first-letter {
    float: left;
    margin: 0;
    padding: 1.6rem .8rem 0 0;
    font-family: "Lora", serif;
    font-weight: 700;
    font-size: 8.6rem;
    line-height: 6rem;
    text-indent: 0;
    background: transparent;
    color: #000000;
}

/* line definition style 
 * ----------------------------------------------- */
.lining dt,
.lining dd {
    display: inline;
    margin: 0;
}

.lining dt+dt:before,
.lining dd+dt:before {
    content: "\A";
    white-space: pre;
}

.lining dd+dd:before {
    content: ", ";
}

.lining dd+dd:before {
    content: ", ";
}

.lining dd:before {
    content: ": ";
    margin-left: -0.2em;
}

/* dictionary definition style 
 * ----------------------------------------------- */
.dictionary-style dt {
    display: inline;
    counter-reset: definitions;
}

.dictionary-style dt+dt:before {
    content: ", ";
    margin-left: -0.2em;
}

.dictionary-style dd {
    display: block;
    counter-increment: definitions;
}

.dictionary-style dd:before {
    content: counter(definitions, decimal) ". ";
}

/** 
 * Pull Quotes
 * -----------
 * markup:
 *
 * <aside class="pull-quote">
 *		<blockquote>
 *			<p></p>
 *		</blockquote>
 *	</aside>
 *
 * --------------------------------------------------------------------- */
.pull-quote {
    position: relative;
    padding: 2.4rem 0;
}

.pull-quote blockquote {
    background-color: #efefef;
    border: none;
    margin: 0;
    padding-top: 9.6rem;
    position: relative;
}

.pull-quote blockquote:before {
    content: "";
    display: block;
    height: 3.2rem;
    width: 3.2rem;
    background-repeat: no-repeat;
    background: center center;
    background-size: contain;
    background-image: url(../images/icons/icon-quote.svg);
    position: absolute;
    top: 4rem;
    left: 4rem;
}

/** 
 * Stats Tab
 * ---------
 * markup:
 *
 * <ul class="stats-tabs">
 *		<li><a href="#">[value]<em>[name]</em></a></li>
 *	</ul>
 *
 * Extend this object into your markup.
 *
 * --------------------------------------------------------------------- */
.stats-tabs {
    padding: 0;
    margin: 3.2rem 0;
}

.stats-tabs li {
    display: inline-block;
    margin: 0 1.6rem 3.2rem 0;
    padding: 0 1.5rem 0 0;
    border-right: 1px solid #d3d3d3;
}

.stats-tabs li:last-child {
    margin: 0;
    padding: 0;
    border: none;
}

.stats-tabs li a {
    display: inline-block;
    font-size: 2.5rem;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    border: none;
    color: #000000;
}

.stats-tabs li a:hover {
    color: #0056b3;
}

.stats-tabs li a em {
    display: block;
    margin: .8rem 0 0 0;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    font-style: normal;
    color: #7e7e7e;
}

/* ------------------------------------------------------------------- 
 * ## skillbars
 * ------------------------------------------------------------------- */
.skill-bars {
    list-style: none;
    margin: 6.8rem 0 3.2rem;
}

.skill-bars li {
    height: .4rem;
    background: #c3c3c3;
    width: 100%;
    margin-bottom: 6.8rem;
    padding: 0;
    position: relative;
}

.skill-bars li strong {
    position: absolute;
    left: 0;
    top: -4rem;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: .2rem;
    font-size: 1.4rem;
    line-height: 2.4rem;
}

.skill-bars li .progress {
    background: #000000;
    position: relative;
    height: 100%;
}

.skill-bars li .progress span {
    position: absolute;
    right: 0;
    top: -3.6rem;
    display: block;
    font-family: "IBM Plex Sans", sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    background: #000000;
    padding: .8rem .8rem;
    border-radius: 3px;
}

.skill-bars li .progress span::after {
    position: absolute;
    left: 50%;
    bottom: -10px;
    margin-left: -5px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #000000;
    content: "";
}

.skill-bars li .percent5 {
    width: 5%;
}

.skill-bars li .percent10 {
    width: 10%;
}

.skill-bars li .percent15 {
    width: 15%;
}

.skill-bars li .percent20 {
    width: 20%;
}

.skill-bars li .percent25 {
    width: 25%;
}

.skill-bars li .percent30 {
    width: 30%;
}

.skill-bars li .percent35 {
    width: 35%;
}

.skill-bars li .percent40 {
    width: 40%;
}

.skill-bars li .percent45 {
    width: 45%;
}

.skill-bars li .percent50 {
    width: 50%;
}

.skill-bars li .percent55 {
    width: 55%;
}

.skill-bars li .percent60 {
    width: 60%;
}

.skill-bars li .percent65 {
    width: 65%;
}

.skill-bars li .percent70 {
    width: 70%;
}

.skill-bars li .percent75 {
    width: 75%;
}

.skill-bars li .percent80 {
    width: 80%;
}

.skill-bars li .percent85 {
    width: 85%;
}

.skill-bars li .percent90 {
    width: 90%;
}

.skill-bars li .percent95 {
    width: 95%;
}

.skill-bars li .percent100 {
    width: 100%;
}

/* ------------------------------------------------------------------- 
 * ## alert box 
 * ------------------------------------------------------------------- */
.alert-box {
    padding: 2.4rem 4rem 2.4rem 3.2rem;
    position: relative;
    margin-bottom: 3.2rem;
    border-radius: 3px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.6;
}

.alert-box__close {
    position: absolute;
    display: block;
    right: 1.6rem;
    top: 1.6rem;
    cursor: pointer;
    width: 12px;
    height: 12px;
}

.alert-box__close::before,
.alert-box__close::after {
    content: '';
    position: absolute;
    display: inline-block;
    width: 2px;
    height: 12px;
    top: 0;
    left: 5px;
}

.alert-box__close::before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.alert-box__close::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.alert-box--error {
    background-color: #ffd1d2;
    color: #dd4043;
}

.alert-box--error .alert-box__close::before,
.alert-box--error .alert-box__close::after {
    background-color: #dd4043;
}

.alert-box--success {
    background-color: #c8e675;
    color: #637533;
}

.alert-box--success .alert-box__close::before,
.alert-box--success .alert-box__close::after {
    background-color: #637533;
}

.alert-box--info {
    background-color: #d5ebfb;
    color: #387fb2;
}

.alert-box--info .alert-box__close::before,
.alert-box--info .alert-box__close::after {
    background-color: #387fb2;
}

.alert-box--notice {
    background-color: #fff099;
    color: #827217;
}

.alert-box--notice .alert-box__close::before,
.alert-box--notice .alert-box__close::after {
    background-color: #827217;
}

/* -------------------------------------------------------------------
 * ## pagination 
 * ------------------------------------------------------------------- */
.pgn {
    margin: 3.2rem auto 3.2rem;
    text-align: center;
}

.pgn ul {
    display: inline-block;
    list-style: none;
    margin-left: 0;
    position: relative;
    padding: 0 6rem;
}

.pgn ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pgn__num {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 3.2rem;
    display: inline-block;
    padding: .2rem 1.2rem;
    height: 3.6rem;
    margin: .2rem .2rem;
    color: #000000;
    transition: all, .3s, ease-in-out;
}

.pgn__num:hover {
    background: #d3d3d3;
    color: #000000;
}

.pgn .current,
.pgn .current:hover {
    background-color: #000000;
    color: white;
}

.pgn .inactive,
.pgn .inactive:hover {
    opacity: 0.4;
    cursor: default;
}

.pgn__prev,
.pgn__next {
    display: block;
    background-repeat: no-repeat;
    background-size: 16px 8px;
    background-position: center;
    height: 3.6rem;
    width: 4.8rem;
    line-height: 2rem;
    padding: 0;
    margin: 0;
    opacity: 1;
    font: 0/0 a;
    text-shadow: none;
    color: transparent;
    transition: all, .2s, ease-in-out;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

.pgn__prev:hover,
.pgn__next:hover {
    background-color: #d3d3d3;
}

.pgn__prev {
    background-image: url("../images/icons/icon-arrow-left.svg");
    left: 0;
}

.pgn__next {
    background-image: url("../images/icons/icon-arrow-right.svg");
    right: 0;
}

.pgn__prev.inactive,
.pgn__next.inactive {
    opacity: 0.4;
    cursor: default;
}

.pgn__prev.inactive:hover,
.pgn__next.inactive:hover {
    background-color: transparent;
}

/* ------------------------------------------------------------------- 
 * responsive:
 * pagination
 * ------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
    .pgn ul {
        padding: 0 5.2rem;
    }
}


/* ===================================================================
 * # Common and Reusable Styles
 *
 * ------------------------------------------------------------------- */
.wide {
    max-width: 1400px;
}

.narrow {
    max-width: 1000px;
}

.display-1 {
    font-size: 5.6rem;
    line-height: 1.143;
    letter-spacing: -.05rem;
    margin-top: 0;
    margin-bottom: .8rem;
}

/* ------------------------------------------------------------------- 
 * ## animation stuff 
 * ------------------------------------------------------------------- */
.animate-this {
    opacity: 0;
    visibility: hidden;
}

.no-js .animate-this,
.no-cssanimations .animate-this {
    opacity: 1;
    visibility: visible;
}

.animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

/* fade in */
@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translate3d(0, 150%, 0);
        transform: translate3d(0, 150%, 0);
    }

    to {
        opacity: 1;
        visibility: visible;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translate3d(0, 150%, 0);
        transform: translate3d(0, 150%, 0);
    }

    to {
        opacity: 1;
        visibility: visible;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* -------------------------------------------------------------------
 * ## entry media
 * ------------------------------------------------------------------- */
.media-wrap {
    margin-bottom: 7.2rem;
}

.media-wrap img,
.media-wrap .video-container {
    vertical-align: bottom;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ------------------------------------------------------------------- 
 * ## listing header
 * ------------------------------------------------------------------- */
.listing-header {
    padding: 0 20px 2.4rem;
}

.listing-header h1 {
    margin-top: 0;
}

/* ------------------------------------------------------------------- 
 * ## slick slider 
 * ------------------------------------------------------------------- */
.slick-slider .slick-slide {
    outline: none;
}

.slick-slider .slick-dots {
    display: block;
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 3rem 0 0 0;
    text-align: center;
    position: absolute;
    top: 100%;
    left: 0;
}

.slick-slider .slick-dots li {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 4px;
    cursor: pointer;
}

.slick-slider .slick-dots li button {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    line-height: 10px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: 0/0 a;
    text-shadow: none;
    color: transparent;
}

.slick-slider .slick-dots li button:hover,
.slick-slider .slick-dots li button:focus {
    outline: none;
}

.slick-slider .slick-dots li.slick-active button,
.slick-slider .slick-dots li:hover button {
    background: #ffffff;
}

/* ------------------------------------------------------------------- 
 * ## masonry entries 
 * ------------------------------------------------------------------- */
.masonry {
    margin-bottom: 3.2rem;
}

.masonry:after {
    content: "";
    display: table;
    clear: both;
}

.masonry .grid-sizer,
.masonry__brick {
    float: left;
    width: 25%;
}

.masonry__brick {
    padding: 0 20px;
}

.masonry .entry {
    margin-bottom: 40px;
    color: rgba(0, 0, 0, 0.5);
}

.masonry .entry__thumb {
    position: relative;
    overflow: hidden;
}

.masonry .entry__thumb-link img {
    vertical-align: bottom;
    transition: all .3s;
}

.masonry .entry__thumb-link::before {
    content: "";
    display: block;
    background: rgba(21, 21, 21, 0.6);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .3s;
    z-index: 1;
}

.masonry .entry__thumb-link::after {
    content: "...";
    font-family: georgia, serif;
    font-size: 2.4rem;
    z-index: 1;
    display: block;
    height: 88px;
    width: 88px;
    letter-spacing: -1px;
    line-height: 88px;
    margin-left: -44px;
    margin-top: -44px;
    position: absolute;
    left: 50%;
    top: 50%;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
}

.masonry .entry__thumb:hover .entry__thumb-link::before {
    opacity: 1;
    visibility: visible;
}

.masonry .entry__thumb:hover .entry__thumb-link::after {
    opacity: 1;
    visibility: visible;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.masonry .entry__thumb:hover .entry__thumb-link img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.masonry .entry__text {
    padding: 3.2rem 2.8rem 4rem;
    background-color: #ffffff;
}

.masonry .entry__text p {
    margin-bottom: 0;
}

.masonry .entry__title {
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.231;
    margin-top: 0;
    margin-bottom: .8rem;
}

.masonry .entry__title a {
    color: #000000;
}

.masonry .entry__title a:hover,
.masonry .entry__title a:focus {
    color: #0056b3;
}

.masonry .entry__excerpt {
    font-size: 1.7rem;
    line-height: 1.882;
}

.masonry .entry__meta {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-size: 11.5px;
    line-height: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 3.2rem;
}

.masonry .entry__meta span {
    margin-right: 10px;
}

.masonry .entry__meta span:last-child {
    margin-right: 0;
}

.masonry .entry__meta a {
    color: #000000;
}

.masonry .entry__meta a:hover,
.masonry .entry__meta a:focus {
    color: #33998a;
}

.masonry .entry__meta-cat a::after {
    content: ", ";
}

.masonry .entry__meta-cat a:last-child::after {
    display: none;
}

/* ------------------------------------------------------------------- 
 *  ## post formats - masonry view
 * ------------------------------------------------------------------- */
/* format quote & format link
 * --------------------------------------- */
.format-quote,
.format-link {
    text-align: center;
}

.format-quote .entry__thumb,
.format-link .entry__thumb {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    background: #ffffff;
    padding: 2.4rem 3rem 5.6rem;
    min-height: 324px;
    width: 100%;
    position: relative;
}

.format-quote .entry__thumb::before,
.format-link .entry__thumb::before {
    content: "";
    display: block;
    height: 3.2rem;
    width: 3.2rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 1.6rem;
    position: absolute;
    top: 4rem;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.format-quote blockquote::before {
    display: none;
}

.format-quote blockquote,
.format-link .link-wrap {
    margin: 0;
    padding: 0;
    border: none;
}

.format-quote blockquote p,
.format-link .link-wrap h2 {
    font-family: "Heebo", sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.429;
    color: #000000;
    padding: 8rem 0 0 0;
    margin-top: 0;
    margin-bottom: 3.2rem;
}

.format-quote cite,
.format-link cite {
    display: block;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.4);
}

.format-quote cite::before,
.format-link cite::before {
    display: none;
}

.format-quote cite a,
.format-quote cite a:visited {
    color: rgba(0, 0, 0, 0.4);
    border: none;
}

.format-quote .entry__thumb::before {
    background-image: url(../images/icons/icon-quote.svg);
}

.format-link .entry__thumb::before {
    background-image: url(../images/icons/icon-link.svg);
}

.format-link .link-wrap cite:before {
    display: none;
}

.format-link .link-wrap cite a,
.format-link .link-wrap cite a:visited {
    color: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding-bottom: .3rem;
}

.format-link .link-wrap cite a:hover,
.format-link .link-wrap cite a:focus {
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* format video & format audio
 * --------------------------------------- */
.format-video .entry__thumb::after,
.format-audio .entry__thumb::after {
    content: "";
    display: block;
    height: 5.2rem;
    width: 5.2rem;
    position: absolute;
    bottom: 3.2rem;
    left: 2.4rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.format-video .entry__thumb-link::before,
.format-video .entry__thumb-link::after,
.format-audio .entry__thumb-link::before,
.format-audio .entry__thumb-link::after {
    display: none;
}

.format-video .entry__thumb::after {
    cursor: zoom-in;
    background-image: url(../images/icons/icon-video.svg);
    background-size: 3.2rem 3.2rem;
}

.format-video .entry__thumb-link {
    cursor: zoom-in;
}

.format-audio .entry__thumb::after {
    background-image: url(../images/icons/icon-audio.svg);
    background-size: 2.2rem 2.2rem;
}

/* ------------------------------------------------------------------- 
 * responsive:
 * common and reusable styles
 * ------------------------------------------------------------------- */
@media screen and (max-width: 1800px) {
    .masonry-wrap {
        max-width: 1260px;
    }

    .listing-header {
        padding: 0 1.6vw 2.4rem;
    }

    .masonry .grid-sizer,
    .masonry__brick {
        width: 33.33333%;
    }

    .masonry__brick {
        padding: 0 1.6vw;
    }

    .masonry .entry {
        margin-bottom: 3.2vw;
    }
}

@media screen and (max-width: 1700px) {
    .masonry__brick {
        padding: 0 1.4vw;
    }

    .masonry .entry {
        margin-bottom: 2.8vw;
    }
}

@media screen and (max-width: 1600px) {
    .listing-header {
        padding: 0 1.2vw 2.4rem;
    }

    .masonry__brick {
        padding: 0 1.2vw;
    }

    .masonry .entry {
        margin-bottom: 2.4vw;
    }
}

@media screen and (max-width: 1500px) {
    .masonry-wrap {
        max-width: 900px;
    }

    .listing-header {
        padding: 0 1.8vw 2.4rem;
    }

    .masonry .grid-sizer,
    .masonry__brick {
        width: 50%;
    }

    .masonry__brick {
        padding: 0 1.8vw;
    }

    .masonry .entry {
        margin-bottom: 3.6vw;
    }
}

@media screen and (max-width: 1400px) {
    .display-1 {
        font-size: 5.2rem;
    }
}

@media screen and (max-width: 1100px) {

    .masonry-wrap,
    .listing-header {
        width: 89%;
        max-width: 900px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 800px) {
    .display-1 {
        font-size: 4.6rem;
    }

    .masonry-wrap {
        max-width: 580px;
    }

    .listing-header {
        text-align: center;
    }

    .masonry .grid-sizer,
    .masonry__brick {
        width: 100%;
        float: none;
    }

    .masonry__brick {
        padding: 0 3.6rem;
    }

    .masonry .entry {
        margin-bottom: 4rem;
    }
}

@media screen and (max-width: 600px) {
    .display-1 {
        font-size: 4.2rem;
    }

    .masonry-wrap,
    .listing-header {
        width: auto;
        max-width: 500px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .masonry__brick {
        padding: 0 10px;
    }
}

@media screen and (max-width: 500px) {
    .display-1 {
        font-size: 4rem;
    }
}

@media screen and (max-width: 400px) {
    .display-1 {
        font-size: 3.7rem;
    }

    .media-wrap {
        margin-bottom: 5.6rem;
    }

    .masonry-wrap,
    .listing-header {
        padding-left: 22px;
        padding-right: 22px;
    }

    .masonry__brick {
        padding: 0;
    }

    .masonry .entry {
        margin-bottom: 3.2rem;
    }
}


/* ===================================================================
 * # site header
 *
 * ------------------------------------------------------------------- */
.s-wrap {
    position: relative;
}

.s-header {
    z-index: 100;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: column nowrap;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    width: 300px;
    background-color: #151515;
    padding-top: 6.4rem;
    padding-right: 3.2rem;
    padding-left: 4.4rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    vertical-align: top;
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
}

.s-header::-webkit-scrollbar {
    display: none;
}

/* -------------------------------------------------------------------
 * ## header logo
 * ------------------------------------------------------------------- */
.header__logo a {
    display: block;
    margin: 0;
    padding: 0;
    outline: 0;
    border: none;
    transition: all .3s;
}

.header__logo img {
    width: 125px;
    height: 30px;
    margin: 0;
}

/* -------------------------------------------------------------------
 * ## header main navigation
 * ------------------------------------------------------------------- */
.header__nav-wrap {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: column nowrap;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -webkit-flex: 1 1 0%;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    max-width: 100%;
    background-color: #151515;
    margin-top: 3.2rem;
}

.header__nav-wrap a {
    color: rgba(255, 255, 255, 0.6);
}

.header__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Heebo", sans-serif;
    font-weight: 400;
    font-size: 16px;
}

.header__nav li {
    display: block;
    padding: 0 2rem 0 0;
    width: 100%;
    position: relative;
}

.header__nav li a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    line-height: 4.4rem;
    transition-property: color;
}

.header__nav li.has-children {
    padding-right: 3.3rem;
}

.header__nav li.has-children>a::after {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    content: '';
    display: block;
    height: 5px;
    width: 5px;
    margin-top: -4px;
    pointer-events: none;
    position: absolute;
    right: 1.8rem;
    top: 21px;
    -webkit-transform-origin: 66% 66%;
    -ms-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: all .5s;
}

.header__nav li.has-children>a.sub-menu-is-open::after {
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
}

.header__nav li:hover>a,
.header__nav li:focus>a {
    color: #ffffff;
}

.header__nav li:hover li,
.header__nav li:focus li {
    background: transparent;
}

.header__nav li.current>a {
    color: #ffffff;
}

.header__nav li ul {
    display: none;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    padding: .8rem 0 2rem 1.2rem;
}

.header__nav li ul a {
    line-height: 3.2rem;
}

/* ------------------------------------------------------------------- 
 * ## menu toggle
 * ------------------------------------------------------------------- */
.header__menu-toggle {
    display: none;
    height: 42px;
    width: 42px;
    line-height: 42px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all .3s;
    position: absolute;
    right: 20px;
    top: 18px;
}

.header__menu-toggle:hover,
.header__menu-toggle:focus {
    color: #ffffff;
}

.header__menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    margin-top: -1px;
    background-color: #ffffff;
    transition: all .5s;
    font: 0/0 a;
    text-shadow: none;
    color: transparent;
    position: absolute;
    top: 50%;
    left: 9px;
    right: auto;
    bottom: auto;
}

.header__menu-toggle span::before,
.header__menu-toggle span::after {
    content: '';
    width: 24px;
    height: 100%;
    background-color: inherit;
    position: absolute;
    left: 0;
    transition: all .5s;
}

.header__menu-toggle span::before {
    top: -8px;
}

.header__menu-toggle span::after {
    bottom: -8px;
}

.header__menu-toggle.is-clicked span {
    background-color: rgba(255, 255, 255, 0);
    transition: all .1s;
}

.header__menu-toggle.is-clicked span::before,
.header__menu-toggle.is-clicked span::after {
    background-color: white;
}

.header__menu-toggle.is-clicked span::before {
    top: 0;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}

.header__menu-toggle.is-clicked span::after {
    bottom: 0;
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
}

/* ===================================================================
 * # search
 *
 * ------------------------------------------------------------------- */
.search-block {
    z-index: 400;
    display: block;
    text-align: center;
    background-color: #ffffff;
    transition: all .3s;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.search-form {
    width: 100%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    position: absolute;
    top: 50%;
}

.search-form label {
    color: #000000;
}

.search-form::after {
    content: "\8f93\5165\5173\952e\8bcd\540e\ff0c\7ed3\679c\5c06\5728\6b64\663e\793a";
    display: block;
    letter-spacing: 0.6px;
    font-size: 16px;
    margin-top: 32px;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
}

/* 当用户开始输入时，隐藏默认的提示语 */
.search-form.has-input::after {
    display: none;
}

.search-form input[type="search"] {
    background-color: transparent;
    color: #000000;
    height: auto;
    width: 100%;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 1.6;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    max-width: 680px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin: 0 auto;
    text-align: center;
}

.search-form input[type="search"]::-webkit-search-decoration,
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-results-button,
.search-form input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.search-form input[type="search"]::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #000000;
}

.search-form input[type="search"]:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #000000;
    opacity: 1;
}

.search-form input[type="search"]::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #000000;
    opacity: 1;
}

.search-form input[type="search"]:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #000000;
}

.search-form input[type="search"]::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #000000;
}

.search-form input[type="search"]::placeholder {
    /* Most modern browsers support this now. */
    color: #000000;
}

.search-form input[type="search"].placeholder {
    color: #000000 !important;
}

.search-form input[type="search"]:focus {
    outline: none;
}

.search-form input[type="submit"] {
    display: none;
}

body.search-is-visible {
    overflow: hidden;
}

.search-is-visible .search-block {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------------------------------- 
 * ## close button for search 
 * ------------------------------------------------------------------- */
.search-close {
    position: absolute;
    display: block;
    width: 45px;
    height: 45px;
    top: 21px;
    left: 50%;
    margin-left: -23px;
    font: 0/0 a;
    text-shadow: none;
    color: transparent;
}

.search-close::before,
.search-close::after {
    content: '';
    position: absolute;
    display: inline-block;
    width: 2px;
    height: 20px;
    top: 12px;
    left: 22px;
    background-color: #000000;
}

.search-close::before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.search-close::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------------- 
 * ## search modal trigger
 * ------------------------------------------------------------------- */
.search-trigger,
.search-line {
    z-index: 100;
}

.search-trigger {
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #000000;
    transition-property: color;
    position: fixed;
    right: 40px;
    top: 64px;
}

.search-trigger:focus,
.search-trigger:hover {
    color: #0056b3;
}

.search-trigger svg {
    height: 18px;
    width: 18px;
    display: block;
}

/* --- Final Solution for Vertical Text --- */

/* 1. 定位包裹文字的容器 */
.search-trigger .vertical-text {
    position: absolute;
    top: 35px;
    /* 沿用模板的顶部距离 */
    left: 50%;
    /* 水平居中 */
    transform: translateX(-50%);
    /* 精确水平居中 */
}

/* 2. 让每个字符成为一个独立的块，强制换行 */
.search-trigger .vertical-text .char {
    display: block;
    /* 这是实现垂直排列的关键 */
    line-height: 2.0;
    /* 调整字间距，可根据喜好设为1.1到1.4 */
    text-align: center;
    letter-spacing: -3px
}

.search-line {
    display: block;
    width: 1px;
    height: calc(100vh - 200px);
    background-color: rgba(0, 0, 0, 0.1);
    position: fixed;
    right: 48px;
    top: auto;
    bottom: 0;
}

/* ------------------------------------------------------------------- 
 * responsive:
 * search
 * ------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
    .search-trigger {
        z-index: 101;
        position: fixed;
        top: 22px;
        right: 85px;
    }

    .search-trigger svg {
        width: 28px;
        height: 28px;
    }

    .search-trigger svg path {
        fill: white;
    }

    .search-trigger span,
    .search-line {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    .search-form::after {
        font-size: 1.5rem;
    }

    .search-form input[type="search"] {
        max-width: 90%;
        font-size: 32px;
    }
}

@media screen and (max-width: 600px) {
    .search-form {
        top: var(--mobile-search-form-top, 35%);
    }

    .search-form input[type="search"] {
        font-size: 26px;
        width: 85%;
    }

    /* 搜索和菜单使用相同大小、相同垂直基线的点击区。 */
    .search-trigger {
        top: 18px;
        right: 76px;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-trigger svg {
        display: block;
        flex: 0 0 auto;
    }
}

@media screen and (max-width: 500px) {
    .search-trigger {
        right: 76px;
    }
}

@media screen and (max-width: 400px) {
    .search-form input[type="search"] {
        font-size: 22px;
    }

    .search-trigger {
        top: 18px;
        right: 66px;
    }
}

/* -------------------------------------------------------------------
 * ## search results
 * ------------------------------------------------------------------- */
#site-search-results {
    max-width: 680px;
    margin: 20px auto 0;
    max-height: 50vh;
    overflow-y: auto;
    text-align: left;
    padding: 0 20px;
}

#site-search-results a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    transition: background-color .2s;
}

#site-search-results a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

#site-search-results .no-results {
    text-align: center;
    padding: 30px 16px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 15px;
}

@media screen and (max-width: 600px) {
    #site-search-results {
        max-height: 45vh;
        padding: 0 12px;
    }

    #site-search-results a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media screen and (max-width: 400px) {
    #site-search-results {
        max-height: 40vh;
        padding: 0 8px;
    }

    #site-search-results a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* -------------------------------------------------------------------
 * ## header social
 * ------------------------------------------------------------------- */
.header__social {
    list-style: none;
    margin: 4rem 0 0 0;
    padding: 0 0 4.4rem 0;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.header__social li {
    margin-right: 2px;
}

.header__social li:last-child {
    margin-right: 0;
}

.header__social a {
    display: block;
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    height: 3.6rem;
    width: 3.6rem;
    border-radius: 50%;
    position: relative;
}

.header__social a::after {
    z-index: 1;
    content: '';
    display: block;
    height: 1.4rem;
    width: 1.4rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    transition: all .3s ease-in-out;
    position: absolute;
    left: 50%;
    right: 0;
    top: 50%;
}

.header__social a:hover::after {
    height: 1.8rem;
    width: 1.8rem;
}

.header__social span {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    position: absolute;
}

.header__social .ss-facebook a::after {
    background-image: url(../images/icons/social/icon-bilibili.svg);
}

.header__social .ss-twitter a::after {
    background-image: url(../images/icons/social/icon-twitter.svg);
}

.header__social .ss-email a::after {
    background-image: url(../images/icons/social/icon-email.svg);
}

.header__social .ss-behance a::after {
    background-image: url(../images/icons/social/icon-behance.svg);
}

.header__social .ss-instagram a::after {
    background-image: url(../images/icons/social/icon-instagram.svg);
}

.header__social .ss-pinterest a::after {
    background-image: url(../images/icons/social/icon-pinterest.svg);
}

.header__social .ss-rss a::after {
    background-image: url(../images/icons/social/icon-rss.svg);
}

.header__social .ss-random a::after {
    background-image: url(../images/icons/social/icon-random.svg);
}

/* ------------------------------------------------------------------- 
 * responsive:
 * header
 * ------------------------------------------------------------------- */
@media screen and (max-width: 1600px) {
    .s-header {
        width: 290px;
    }
}

@media screen and (max-width: 1200px) {
    .s-header {
        width: 270px;
        padding-right: 28px;
        padding-left: 40px;
    }

    .header__nav {
        font-size: 15.5px;
    }
}

@media screen and (max-width: 1100px) {
    .s-content,
    .s-footer {
        padding-left: 0;
        width: 100%;
        max-width: none;
    }

    .s-content {
        padding-top: 100px;
    }

    .s-header {
        width: 100%;
        background: transparent;
        padding: 0;
        min-height: 78px;
        bottom: auto;
    }

    .header__top {
        z-index: 100;
        background: #111111;
        width: 100%;
        height: 78px;
        position: absolute;
        top: 0;
        left: 0;
    }

    .header__logo {
        margin-top: 4px;
        -webkit-transform: translate(0, -50%);
        transform: translate(0, -50%);
        position: absolute;
        top: 50%;
        left: 40px;
    }

    .header__logo img {
        width: 120px;
        height: 29px;
    }

    .header__nav-wrap {
        z-index: 99;
        background: #151515;
        opacity: 0;
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -ms-flex-pack: start;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
        margin: 0;
        padding: 164px 60px 64px;
        overflow-y: auto;
    }

    .nav-wrap-is-visible .s-header {
        height: 100vh;
    }

    .nav-wrap-is-visible .header__top {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-wrap-is-visible .header__nav-wrap {
        opacity: 1;
        visibility: visible;
    }

    .header__nav {
        font-size: 20px;
        border-top: 1px dotted rgba(255, 255, 255, 0.04);
    }

    .header__nav>li {
        border-bottom: 1px dotted rgba(255, 255, 255, 0.04);
    }

    .header__nav>li>a {
        line-height: 72px;
    }

    .header__nav li.has-children>a::after {
        top: 32px;
    }

    .header__nav li ul {
        font-size: 12px;
    }

    .header__nav li ul a {
        line-height: 40px;
    }

    .header__menu-toggle {
        z-index: 101;
        display: block;
    }

    .header__social {
        margin-top: 80px;
    }

    .header__social a {
        height: 44px;
        width: 44px;
    }
}

@media screen and (max-width: 800px) {
    .header__nav {
        font-size: 18px;
    }

    .header__nav>li>a {
        line-height: 68px;
    }

    .header__nav li.has-children>a::after {
        top: 30px;
    }

    .header__nav li ul {
        font-size: 11px;
    }
}

@media screen and (max-width: 500px) {
    .header__logo {
        left: 34px;
    }

    .header__nav-wrap {
        padding: 152px 44px 64px;
    }

    .header__menu-toggle {
        right: 34px;
    }
}

@media screen and (max-width: 400px) {
    .header__logo {
        left: 24px;
    }

    .header__nav-wrap {
        padding: 140px 40px 64px;
    }

    .header__menu-toggle {
        right: 24px;
    }
}

/* 搜索框样式 */
#searchInput {
    display: block;
    width: 50%;
    /* 将宽度设置为50% */
    height: 6.4rem;
    padding: 1.6rem 0 1.5rem;
    border: 0;
    outline: none;
    color: #000000;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.6rem;
    line-height: 3.2rem;
    max-width: 100%;
    background: transparent;
    border-bottom: 1px solid #c3c3c3;
    transition: all .3s ease-in-out;
}

#searchInput:focus {
    color: #000000;
    border-bottom: 1px solid #000000;
}


/* ===================================================================
 * # site content & footer 
 *
 * ------------------------------------------------------------------- */
.s-content,
.s-footer {
    padding-left: 330px;
    width: calc(100% - 100px);
    max-width: 2140px;
}

/* -------------------------------------------------------------------
 * ## content
 * ------------------------------------------------------------------- */
.s-content {
    padding-top: 64px;
}

.content__page {
    max-width: 1200px;
    padding-bottom: 12rem;
}

.content__page img {
    margin-top: 3.2rem;
    margin-bottom: 3.2rem;
}

.content__page-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* -------------------------------------------------------------------
 * ## footer
 * ------------------------------------------------------------------- */
.s-footer {
    padding-top: 4rem;
    padding-bottom: 8rem;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.s-footer a {
    color: #000000;
}

/* -------------------------------------------------------------------
 * ## copyright
 * ------------------------------------------------------------------- */
.footer__copyright span {
    display: inline-block;
}

.footer__copyright span::after {
    content: "|";
    display: inline-block;
    padding: 0 1.2rem 0 1.4rem;
    color: rgba(0, 0, 0, 0.3);
}

.footer__copyright span:last-child::after {
    display: none;
}

/* ------------------------------------------------------------------- 
 * ## go to top
 * ------------------------------------------------------------------- */
.go-top {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translate(0, 200%);
    transform: translate(0, 200%);
    transition: all .8s;
    position: fixed;
    bottom: 4rem;
    right: 1.8rem;
}

.go-top a,
.go-top a:visited {
    text-decoration: none;
    border: none;
    display: block;
    height: 6rem;
    width: 6rem;
    line-height: 6rem;
    text-align: center;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: all .3s;
    background-image: url(../images/icons/icon-arrow-up.svg);
    background-color: #000000;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 7px 14px;
}

.go-top.link-is-visible {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* ------------------------------------------------------------------- 
 * responsive:
 * site content & footer
 * ------------------------------------------------------------------- */
@media screen and (max-width: 1600px) {

    .s-content,
    .s-footer {
        padding-left: 320px;
    }
}

@media screen and (max-width: 1200px) {

    .s-content,
    .s-footer {
        padding-left: 290px;
        width: calc(100% - 80px);
    }
}

@media screen and (max-width: 1100px) {

    .s-content,
    .s-footer {
        padding-left: 0;
        width: 100%;
    }

    .s-content {
        padding-top: 100px;
    }

    .content__page {
        padding-bottom: 8rem;
    }

    .go-top {
        bottom: 0;
        right: 0;
    }
}

@media screen and (max-width: 600px) {
    .s-content {
        padding-top: 90px;
    }

    .content__page {
        padding-bottom: 4rem;
    }

    .footer__copyright span {
        display: block;
    }

    .footer__copyright span::after {
        display: none;
    }
}


/* ===================================================================
 * # blog styles and blog components
 *
 * ------------------------------------------------------------------- */
.entry__media,
.entry__post-thumb {
    position: relative;
}

/* -------------------------------------------------------------------
 * ## entry header meta
 * ------------------------------------------------------------------- */
.entry__header-meta {
    list-style: none;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.778;
    margin-left: 0;
    color: #000000;
}

.entry__header-meta li {
    display: inline-block;
    padding-left: 0;
    margin: 0 .8rem;
}

.entry__header-meta a {
    color: rgba(0, 0, 0, 0.7);
}

.entry__header-meta a:hover,
.entry__header-meta a:focus {
    color: #000000;
}

.entry__header-meta .cat-links a::after {
    content: ", ";
}

.entry__header-meta .cat-links a:last-child::after {
    display: none;
}

/* -------------------------------------------------------------------
 * ## post tags
 * ------------------------------------------------------------------- */
.entry__tags {
    margin-top: 6rem;
    font-family: "Heebo", sans-serif;
}

.entry__tags span {
    font-weight: 500;
    color: #000000;
    padding-right: 56px;
    margin-right: 1.6rem;
    position: relative;
}

.entry__tags span::after {
    display: inline-block;
    content: "";
    height: 1px;
    width: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    right: 0;
}

.entry__tags .entry__tag-list {
    display: inline-block;
    padding-right: 0;
    margin-right: 0;
}

.entry__tags .entry__tag-list::after {
    display: none;
}

.entry__tags .entry__tag-list a {
    display: inline-block;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: inherit;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin-right: 6px;
    margin-bottom: 8px;
    padding: 1px 12px;
}

.entry__tags .entry__tag-list a:hover,
.entry__tags .entry__tag-list a:focus {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.entry__tags .entry__tag-list a:last-child {
    margin-right: 0;
}

/* -------------------------------------------------------------------
 * ## blog single page navigation
 * ------------------------------------------------------------------- */
.entry__pagenav {
    margin-top: 10.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.entry__nav:after {
    content: "";
    display: table;
    clear: both;
}

.entry__nav span {
    display: block;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #1a1a1a;
    margin-bottom: 1.6rem;
    transition: all .3s;
}

.entry__nav a {
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 3rem;
    line-height: 1.333;
    color: #000000;
}

.entry__nav a:hover span,
.entry__nav a:focus span {
    color: #33998a;
}

.entry__prev,
.entry__next {
    width: 50%;
    float: left;
    padding-right: 2rem;
}

/* -------------------------------------------------------------------
 * ## related articles
 * ------------------------------------------------------------------- */
.entry__related {
    margin-top: 10.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.entry__related h3 {
    margin-top: 0;
    margin-bottom: 3.2rem;
}

.entry__related h5 {
    margin-top: .8rem;
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 2.8rem;
}

.related {
    list-style: none;
    margin-left: -4rem;
}

.related__item {
    float: left;
    width: 33.33333%;
    padding-left: 4rem;
    margin-bottom: 3.2rem;
}

.related__link {
    display: block;
    position: relative;
}

.related__link img {
    vertical-align: bottom;
}

.related__link::before {
    content: "";
    display: block;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .3s;
}

.related__link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------------------------------- 
 * responsive:
 * blog styles and blog components
 * ------------------------------------------------------------------- */
@media screen and (max-width: 800px) {
    .entry__header-meta {
        font-size: 1.7rem;
    }

    .entry__prev,
    .entry__next {
        width: auto;
        float: none;
        padding-right: 0;
    }

    .entry__nav [class*="entry__"]+[class*="entry__"] {
        margin-top: 2rem;
    }

    .related {
        margin-left: -4.4rem;
    }

    .related__item {
        padding-left: 4.4rem;
        width: 50%;
    }

    .related__item:nth-child(2n+1) {
        clear: both;
    }
}

@media screen and (max-width: 600px) {
    .related {
        margin-left: -2rem;
    }

    .related__item {
        padding-left: 2rem;
    }
}

@media screen and (max-width: 460px) {
    .related {
        margin-left: 0;
    }

    .related__item {
        float: none;
        width: auto;
        padding-left: 0;
    }
}

/* -------------------------------------------------------------------
 * ## comments 
 * ------------------------------------------------------------------- */
.comments-wrap {
    padding: 6.4rem 0 0 0;
    background-color: #ffffff;
}

.comments-wrap h3 {
    margin-top: 0;
}

.comments-wrap h3 span {
    display: block;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.556;
    color: #7e7e7e;
}

/* comments
 * -------------------------------------------------- */
#comments {
    padding-top: 2rem;
    padding-bottom: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#comments ol,
#comments ul {
    list-style: none;
}

.commentlist {
    margin: 6rem 0 5.6rem;
    padding: 0;
}

.commentlist>.comment {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 2rem 0 0 0;
    padding-left: 14%;
}

.comment__avatar {
    position: absolute;
    left: 0;
    display: block;
}

.comment__avatar img {
    height: 6.4rem;
    width: 6.4rem;
    border-radius: 100%;
    vertical-align: bottom;
}

.comment__info {
    position: relative;
}

.comment__info .comment__author {
    font-family: "Heebo", sans-serif;
    font-weight: 500;
    font-size: 1.9rem;
    line-height: 1.684;
    font-style: normal;
    color: #000000;
}

.comment__meta {
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    line-height: 2.4rem;
    display: block;
    color: #7e7e7e;
    text-align: right;
    width: 150px;
    position: absolute;
    top: 0;
    right: 0;
}

.comment__meta .comment__time {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
    color: #7e7e7e;
}

.comment__meta .comment__reply a {
    font-size: 1.3rem;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2rem;
    color: #000000;
}

.comment__text {
    clear: both;
    margin: 1.6rem 0 0 0;
    padding: 0 175px 0 0;
}

.comment ul.children {
    margin: 0;
    padding: 0;
}

.comment ul.children li {
    padding-left: 5%;
    margin-top: calc(3.2rem + 2rem);
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

/* comments form
 * ---------------------------- */
.comments-wrap .comment-respond {
    margin-top: 6.4rem;
}

.comment-respond form {
    padding-top: 6rem;
}

/* ------------------------------------------------------------------- 
 * responsive:
 * comments
 * ------------------------------------------------------------------- */
@media screen and (max-width: 1000px) {
    .comment__avatar img {
        height: 6rem;
        width: 6rem;
    }

    .comment__meta {
        text-align: left;
        width: auto;
        position: static;
    }

    .comment__meta .comment__time,
    .comment__meta .comment__reply {
        display: inline-block;
    }

    .comment__meta .comment__time {
        margin-right: 12px;
    }

    .comment__text {
        padding: 0;
    }

    .comments-wrap .comment-respond {
        margin-top: 4.4rem;
    }
}

@media screen and (max-width: 800px) {
    .comment__avatar img {
        margin-top: 0;
        height: 5.2rem;
        width: 5.2rem;
    }
}

@media screen and (max-width: 600px) {
    .commentlist>.comment {
        padding-top: 0;
        padding-left: 0;
    }

    .comment__avatar {
        display: none;
    }

    .comment ul.children li {
        margin-top: calc(3.2rem + 0rem);
    }
}

@media screen and (max-width: 500px) {
    .comment ul.children li {
        border-left: none;
    }
}

@media screen and (max-width: 400px) {
    .comment-respond form {
        padding-top: 3.2rem;
    }
}

/* -------------------------------------------------------------------
 * ## format gallery
 * ------------------------------------------------------------------- */
.format-gallery .entry__thumb {
    overflow: hidden;
}

.format-gallery .slider {
    overflow: hidden;
}

.format-gallery .slick-dots {
    text-align: left;
    margin: 0;
    padding: 0 2rem 0 2.4rem;
    position: absolute;
    top: auto;
    bottom: 2.4rem;
    left: 0;
}

.format-gallery .slider__slides {
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.format-gallery .slider__slides.slick-initialized {
    opacity: 1;
    visibility: visible;
}

/* --- History/Wayback Icon & QR Code Popup (原微信改造) --- */
.header__social .ss-history a::after {
    /* 这是一个白色的“神庙/博物馆”图标 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M4 22H20V24H4V22ZM22 7L12 2L2 7V9H22V7ZM5 20H8V11H5V20ZM10.5 20H13.5V11H10.5V20ZM16 20H19V11H16V20Z'/%3E%3C/svg%3E");
    
    /* 确保图标不重复，居中，且完整显示 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 2. 容器定位 (保持不变，ID 改名) */
#history-icon {
    position: relative;
    cursor: pointer; /* 加上手型，提示可点击 */
}

/* 3. 二维码弹窗：样式微调，增加“档案馆”的质感 */
#history-icon .qr-code-popup {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    
    /* 改：背景色改成深灰色，更有历史厚重感 */
    background-color: #2c2c2c; 
    /* 改：加个边框 */
    border: 1px solid #444;
    
    padding: 15px;
    border-radius: 4px; /* 改：直角一点更复古 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* 加深阴影 */
    width: 200px; /*稍微宽一点 */
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none; /* 防止未显示时遮挡点击 */
}

/* 4. 小三角 (颜色要跟着背景变) */
#history-icon .qr-code-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    /* 改：颜色匹配上面的深灰色背景 */
    border-top: 8px solid #2c2c2c; 
}

/* 5. 图片样式 (保持不变) */
#history-icon .qr-code-popup img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    /* 可选：给二维码加个白色边框，防止黑底看不清 */
    border: 4px solid #fff; 
}

/* 6. 文字样式 (改成浅色文字) */
#history-icon .qr-code-popup p {
    margin: 10px 0 0 0;
    font-size: 12px; /* 稍微小一点 */
    color: #ccc; /* 浅灰色文字 */
    line-height: 1.4;
    font-family: monospace; /* 用等宽字体，更有代码/档案感 */
}

/* 7. 显示状态 (保持逻辑，支持 Hover 和 Click) */
/* 鼠标悬停显示 */
#history-icon:hover .qr-code-popup,
/* 或者 JS 控制的 class */
#history-icon .qr-code-popup.is-visible {
    opacity: 1;
    visibility: visible;
    bottom: 130%; /* 稍微调整弹出的高度 */
    pointer-events: auto;
}

/* --- Styles for Custom Search Results --- */
#site-search-results {
    position: absolute;
    top: calc(50% + 40px);
    /* 位于输入框下方 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
    /* 与输入框宽度保持一致 */
    max-height: 40vh;
    /* 最大高度为视口的40% */
    overflow-y: auto;
    text-align: left;
    color: #333;
    /* 确保文字颜色不是白色 */
}

#site-search-results a {
    display: block;
    padding: 15px 20px;
    font-size: 2rem;
    font-family: "IBM Plex Sans", sans-serif;
    color: #444;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.9);
    /* 半透明背景，增加质感 */
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#site-search-results a:hover {
    background-color: #f5f5f5;
}

#site-search-results .no-results {
    padding: 50px 50px;
    font-size: 2rem;
    font-family: "IBM Plex Sans", sans-serif;
    color: #888;
}

:root {
    --color-g1-label: #FF4D4F;
    --color-g2-label: #58A6FF;
    --color-g3-label: #52C41A;
    --color-title: #FFFFFF;
    --color-subtitle: rgba(255, 255, 255, 0.85);
    --color-notes-trigger: rgba(255, 255, 255, 0.7);
}

/* ===================================================================
 * 赛事系列页 (race-series)
 * =================================================================== */

/* --- 英雄横幅 --- */
.race-card-container {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    background-color: #2c3e50;
    height: 0;
    padding-bottom: 38%;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.race-card-container .race-image,
.race-card-container .text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.race-card-container .race-image {
    object-fit: cover;
    transition: transform 0.4s ease-out;
    margin: 0;
}

.race-card-container:hover .race-image {
    transform: scale(1.03);
}

.race-card-container .text-overlay {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2.5rem 3.5rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
}

/* --- 横幅文字 --- */
.race-info {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.race-info h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-title);
    line-height: 1.1;
    margin: 0;
}

.race-info .g1-label,
.race-info .g2-label,
.race-info .g3-label {
    font-size: 0.45em;
    font-weight: 700;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 0.3em;
}

.race-info h1 > span:not(.g1-label):not(.g2-label):not(.g3-label) {
    font-size: 0.45em;
    font-weight: 700;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 0.3em;
    color: var(--color-subtitle);
}

.race-info .g1-label { color: var(--color-g1-label); }
.race-info .g2-label { color: var(--color-g2-label); }
.race-info .g3-label { color: var(--color-g3-label); }

.race-info .race-english-name {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-subtitle);
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0.4rem 0 1rem 0;
    line-height: 1.2;
}

/* --- 信息行 --- */
.info-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
}

.info-item {
    font-size: 1.4rem;
    color: var(--color-subtitle);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.info-divider {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.8rem;
    line-height: 1;
}

/* --- 备注触发器 --- */
.notes-trigger-wrapper {
    position: relative;
}

.notes-trigger {
    color: #FFFFFF;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    user-select: none;
    font-size: 1.4rem;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.notes-trigger:hover {
    color: #FFFFFF;
    border-color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --- 备注弹窗 --- */
.notes-popup {
    position: fixed;
    z-index: 1000;
    min-width: 300px;
    max-width: 90vw;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.notes-popup.is-visible,
.notes-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notes-popup h4 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: #222;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.notes-popup .note-item {
    margin-bottom: 15px;
}

.notes-popup .note-item:last-child {
    margin-bottom: 0;
}

.notes-popup .note-label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.notes-popup .note-value {
    display: block;
    margin-left: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 5px;
}

.notes-popup .note-english {
    display: inline;
    color: #777;
    font-size: 0.9em;
}

/* --- 工具栏：单位切换按钮 --- */
.race-series-page {
    min-width: 0;
}

.series-results {
    margin-top: 3.2rem;
    min-width: 0;
}

.series-results__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.4rem;
}

.series-results__eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: #8b7355;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
}

.series-results__header h2 {
    margin: 0;
    color: #1f2933;
    font-size: 2.4rem;
    line-height: 1.2;
}

.series-results__unit-toggle.btn {
    height: auto;
    margin: 0;
    padding: 0.7rem 1.5rem;
    border-color: #c8c1b6;
    color: #5f5243;
    font-size: 1.25rem;
    line-height: 1.4;
    white-space: nowrap;
}

.series-results__unit-toggle.btn:hover,
.series-results__unit-toggle.btn:focus {
    border-color: #8b7355;
    color: #2f281f;
}

.series-results__scroll {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    border: 1px solid #d9dde2;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(29, 38, 48, 0.06);
    -webkit-overflow-scrolling: touch;
}

.series-results__scroll:focus-visible {
    outline: 2px solid #8b7355;
    outline-offset: 3px;
}

/* 赛事系列专用表格。不能使用全局 .racetables，避免污染马匹战绩等其他表格。 */
.series-results-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #333b43;
    font-size: clamp(0.95rem, 1.12vw, 1.35rem);
    line-height: 1.4;
}

.series-results-table .series-col-date { width: 9%; }
.series-results-table .series-col-track { width: 8%; }
.series-results-table .series-col-ground { width: 6%; }
.series-results-table .series-col-distance { width: 6%; }
.series-results-table .series-col-runners { width: 5.5%; }
.series-results-table .series-col-horse { width: 17%; }
.series-results-table .series-col-time { width: 7.5%; }
.series-results-table .series-col-sex-age { width: 7%; }
.series-results-table .series-col-weight { width: 7%; }
.series-results-table .series-col-jockey { width: 13.5%; }
.series-results-table .series-col-trainer { width: 13.5%; }

.series-results-table thead th {
    padding: clamp(0.7rem, 0.88vw, 1.05rem) clamp(0.2rem, 0.58vw, 0.7rem);
    border: 0;
    border-right: 1px solid #d9dde2;
    border-bottom: 1px solid #cfd4da;
    background: #f3f4f6;
    color: #20272e;
    font-size: clamp(0.9rem, 1.04vw, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.series-results-table thead th:last-child {
    border-right: 0;
}

.series-results-table tbody td {
    padding: clamp(0.7rem, 0.84vw, 1rem) clamp(0.2rem, 0.58vw, 0.7rem);
    border: 0;
    border-bottom: 1px solid #e7e9ec;
    background: #fff;
    text-align: center;
    vertical-align: middle;
}

.series-results-table tbody tr:last-child td,
.series-results-table tbody tr.series-result-row--group-end:last-child td {
    border-bottom: 0;
}

.series-results-table tbody tr:hover td {
    background: #faf8f4;
}

.series-results-table tbody td[rowspan] {
    border-right: 1px solid #eef0f2;
    border-bottom-color: #cfd4da;
}

.series-results-table .series-result-row--group-end td {
    border-bottom-color: #cfd4da;
}

.series-results-table .series-horse-cell,
.series-results-table .series-jockey-cell,
.series-results-table .series-trainer-cell {
    text-align: center;
}

.series-results-table .series-horse-cell {
    padding-right: clamp(0.2rem, 0.84vw, 1rem);
    padding-left: clamp(0.2rem, 0.84vw, 1rem);
    font-weight: 600;
}

.series-results-table .series-date-cell,
.series-results-table .series-ground-cell,
.series-results-table .series-distance-cell,
.series-results-table .series-runners-cell,
.series-results-table .series-time-cell,
.series-results-table .series-sex-age-cell,
.series-results-table .series-weight-cell {
    white-space: nowrap;
}

.series-results-table .series-horse-cell a,
.series-results-table .series-date-cell a {
    color: #245a74;
    text-decoration: none;
}

.series-results-table .series-horse-cell a:hover,
.series-results-table .series-date-cell a:hover {
    color: #153d52;
    text-decoration: underline;
}

.series-horse-name__cn,
.series-horse-name__en {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.series-horse-name__en {
    margin-top: 0.15rem;
    color: #7a8188;
    font-size: 0.84em;
    font-weight: 400;
    line-height: 1.3;
}

.series-results-table__status td {
    height: 11rem;
    padding: 2.8rem 2rem !important;
    color: #6e767e;
    text-align: center !important;
}

.series-results-table__status-title,
.series-results-table__status-copy {
    display: block;
}

.series-results-table__status-title {
    margin-bottom: 0.4rem;
    color: #3f474f;
    font-size: 1.5rem;
    font-weight: 600;
}

.series-results-table__status-copy {
    font-size: 1.25rem;
}

/* ===================================================================
 * 响应式 — 等比例缩小，不隐藏列
 * =================================================================== */
@media screen and (max-width: 800px) {
    .race-card-container .text-overlay {
        padding: 1.8rem 2rem;
    }
    .race-info h1 {
        font-size: 3rem;
    }
    .race-info .race-english-name {
        font-size: 1.6rem;
    }
    .info-item {
        font-size: 1.3rem;
    }
    .series-results {
        margin-top: 2.4rem;
    }
    .series-results__scroll {
        overflow-x: hidden;
    }
    .series-results-table {
        width: 100%;
        min-width: 0;
        font-size: 1.05rem;
    }
    .series-results-table .series-col-date { width: 10.5%; }
    .series-results-table .series-col-track { width: 7%; }
    .series-results-table .series-col-ground { width: 6%; }
    .series-results-table .series-col-distance { width: 7.5%; }
    .series-results-table .series-col-runners { width: 6%; }
    .series-results-table .series-col-horse { width: 16%; }
    .series-results-table .series-col-time { width: 10%; }
    .series-results-table .series-col-sex-age { width: 7.5%; }
    .series-results-table .series-col-weight { width: 7.5%; }
    .series-results-table .series-col-jockey { width: 11%; }
    .series-results-table .series-col-trainer { width: 11%; }
    .series-results-table thead th,
    .series-results-table tbody td {
        padding: 0.75rem 0.25rem;
    }
    .series-results-table .series-horse-cell {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }
}

@media screen and (max-width: 600px) {
    .race-card-container .text-overlay {
        padding: 1.4rem 1.6rem;
    }
    .race-info h1 {
        font-size: 2.4rem;
    }
    .race-info .race-english-name {
        font-size: 1.4rem;
    }
    .info-item {
        font-size: 1.2rem;
    }
    .info-divider {
        margin: 0 0.5rem;
    }
    .series-results__header {
        align-items: center;
        margin-bottom: 1.1rem;
    }
    .series-results__header h2 {
        font-size: 2rem;
    }
    .series-results__unit-toggle.btn {
        padding: 0.6rem 1rem;
        font-size: 1.15rem;
    }
    .series-results-table {
        min-width: 0;
        font-size: 0.82rem;
    }
    .series-results-table thead th {
        font-size: 0.8rem;
    }
    .series-results-table thead th,
    .series-results-table tbody td {
        padding: 0.65rem 0.1rem;
        line-height: 1.2;
    }
    .series-results-table thead th[data-short] {
        font-size: 0;
    }
    .series-results-table thead th[data-short]::after {
        content: attr(data-short);
        font-size: 0.8rem;
    }
    .series-results-table tbody td:not([colspan]) {
        overflow-wrap: anywhere;
        white-space: normal;
        word-break: break-all;
    }
    .series-results-table .series-horse-cell {
        padding-right: 0.1rem;
        padding-left: 0.1rem;
    }
    .series-results-table .series-horse-name__cn {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: break-all;
    }
    .series-results-table .series-horse-name__en {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .race-card-container .text-overlay {
        padding: 1.2rem 1.2rem;
    }
    .race-info h1 {
        font-size: 2rem;
    }
    .series-results__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
    .series-results__unit-toggle.btn {
        align-self: flex-start;
    }
    .series-results-table {
        font-size: 0.72rem;
    }
    .series-results-table thead th,
    .series-results-table thead th[data-short]::after {
        font-size: 0.7rem;
    }
    .series-results-table thead th,
    .series-results-table tbody td {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
}

/* 
  为血统表中的空单元格设置最低高度
  这个规则专门针对ID为 "pedigree" 的表格，您可以根据实际情况修改选择器
*/
#pedigree td:empty::before {
    /* 关键：插入一个不换行的空格字符。
       它看不见，但会被当作一个字符来计算行高，从而撑开单元格。
       '\00a0' 是   的Unicode表示。
    */
    content: '\00a0';

    /* (可选) 如果还想增加一点额外的垂直空间，可以取消下面这行的注释 */
    /* display: inline-block; */
}

/* 如果您的血统表没有特定ID，可以使用一个更通用的类名，比如 .pedigree-table */
.pedigree-table td:empty::before {
    content: '\00a0';
}

#directory-component-wrapper .alpha-panel-tab {
    display: inline-block;
    padding: 6px 12px;
    margin: 8px;

    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;

    font-size: 25px;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#directory-component-wrapper .alpha-panel-tab:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

#directory-component-wrapper .alpha-panel-tab.active {
    background-color: #343a40;
    color: #fff;
    border-color: #343a40;
}

#directory-component-wrapper .person-list {
    padding: 15px;
    background-color: #fff;
    border-radius: 12px;
}

#directory-component-wrapper .person-group {
    display: flex;
    align-items: center;

    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 12px;

    margin-bottom: 15px;
}

#directory-component-wrapper .person-group:last-child {
    margin-bottom: 0;
}

#directory-component-wrapper .initial-letter {
    font-size: 40px;
    font-weight: 200;
    color: #b0b0b0;
    width: 60px;
    flex-shrink: 0;
    text-align: center;
}

#directory-component-wrapper .name-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

#directory-component-wrapper .person-pill {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#directory-component-wrapper .person-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

#directory-component-wrapper .flags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 9px;
    flex-shrink: 0;
}

#directory-component-wrapper .flag-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: middle;
}

#directory-component-wrapper .name-block {
    line-height: 1.4;
}

#directory-component-wrapper .name-zh {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

#directory-component-wrapper .name-en {
    display: block;
    font-size: 14px;
    color: #666;
}

@media screen and (max-width: 800px) {
    #directory-component-wrapper .alpha-panel-tab {
        font-size: 20px;
        padding: 5px 10px;
        margin: 6px;
    }

    #directory-component-wrapper .initial-letter {
        font-size: 30px;
        width: 50px;
    }

    #directory-component-wrapper .name-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }

    #directory-component-wrapper .person-group {
        padding: 12px;
    }

    #directory-component-wrapper .name-zh {
        font-size: 15px;
    }

    #directory-component-wrapper .name-en {
        font-size: 12px;
    }

    #directory-component-wrapper .flag-icon {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 600px) {
    #directory-component-wrapper .alpha-panel-tab {
        font-size: 16px;
        padding: 4px 8px;
        margin: 4px;
    }

    #directory-component-wrapper .person-group {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    #directory-component-wrapper .initial-letter {
        font-size: 24px;
        width: auto;
        margin-bottom: 8px;
    }

    #directory-component-wrapper .name-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        width: 100%;
    }

    #directory-component-wrapper .person-pill {
        padding: 5px 8px;
    }

    #directory-component-wrapper .name-zh {
        font-size: 14px;
    }

    #directory-component-wrapper .name-en {
        font-size: 11px;
    }

    #directory-component-wrapper .flag-icon {
        width: 14px;
        height: 14px;
    }

    #directory-component-wrapper .flags {
        margin-right: 6px;
        gap: 3px;
    }
}

@media screen and (max-width: 400px) {
    #directory-component-wrapper .alpha-panel-tab {
        font-size: 14px;
        padding: 3px 6px;
        margin: 3px;
    }

    #directory-component-wrapper .name-grid {
        grid-template-columns: 1fr;
    }

    #directory-component-wrapper .person-list {
        padding: 8px;
    }
}

.page-header h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.8rem;
    color: #7e7e7e;
    margin-bottom: 4rem;
}

#filter-buttons {
    margin-bottom: 4rem;
    text-align: center;
}

#filter-buttons .btn {
    margin: 5px;
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

#filter-buttons .btn.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.racecourse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* 响应式网格 */
    gap: 2.5rem;
}

.racecourse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
    /* 为3D效果设置透视 */
}

/* 翻转容器：这是实现3D效果的关键 */
.racecourse-flipper {
    width: 100%;
    height: 220px;
    /* 给卡片一个固定的高度 */
    position: relative;
    cursor: pointer;
    display: none;
    /* 由JS控制显示 */
}

.racecourse-flipper.is-visible {
    display: block;
}

/* 内部卡片：负责翻转动画 */
.racecourse-flipper .racecourse-card {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.racecourse-flipper.is-flipped .racecourse-card {
    transform: rotateY(180deg);
}

/* 卡片正面和背面的通用样式 */
.rc-front,
.rc-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* 隐藏翻转到背后的元素 */
    backface-visibility: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直居中内容 */

    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-sizing: border-box;
}

/* 卡片背面：默认旋转到后面 */
.rc-back {
    transform: rotateY(180deg);
    background-color: #f8f9fa;
    /* 背面用稍深一点的背景色区分 */
}

/* 卡片正面内容的样式 */
.rc-front h3 {
    margin: 0;
    font-size: 2.2rem;
}

.rc-front .rc-english-name {
    margin: 0.5rem 0 1.5rem 0;
    font-size: 1.6rem;
    color: #6c757d;
    font-weight: 400;
}

.rc-front .rc-meta {
    font-size: 1.4rem;
    color: #7e7e7e;
}

.rc-front .rc-meta-item {
    margin-right: 15px;
}

.rc-front .rc-meta-item strong {
    color: #333;
}

.rc-front .rc-flip-prompt {
    position: absolute;
    bottom: 15px;
    left: 25px;
    font-size: 1.3rem;
    color: #33998a;
    opacity: 0.7;
}

/* 卡片背面内容的样式 */
.rc-back h4 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.rc-back h4 small {
    font-weight: 400;
    color: #888;
    font-size: 1.5rem;
    margin-left: 5px;
}

.rc-back .rc-description {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.rc-back .rc-flip-prompt {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 1.3rem;
    color: #888;
}

/* 关停卡片的样式 */
.racecourse-flipper.is-closed .rc-front {
    opacity: 0.6;
    background-color: #f1f1f1;
}

.racecourse-flipper.is-closed h3 {
    text-decoration: line-through;
}

.rc-meta {
    margin-bottom: 1.5rem;
    color: #7e7e7e;
    font-size: 1.4rem;
}

.rc-meta-item {
    display: inline-block;
    margin-right: 15px;
}

.rc-meta-item strong {
    color: #333;
}

/* ===================================================================
 *  Image Lightbox Styles
 * =================================================================== */

/* 1. 半透明的黑色背景遮罩 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    /* 【核心修正】: 只为这个背景遮罩禁用用户选择 */
    -webkit-user-select: none;
    /* Safari, Chrome, Opera */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* 标准语法 */

    -webkit-touch-callout: none;
    /* 禁用iOS上的长按菜单 */
}

/* 2. 图片的容器 */
.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    padding: 8px;
    /* 留出一点白边 */
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: default;
    /* 容器内部鼠标变回默认，防止误触关闭 */
}

/* 3. 图片本身 */
.lightbox-container img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    /* 限制图片最大高度 */
    width: auto;
    height: auto;
}

.photo-icon {
    margin: 0 !important;
}

.lightbox-overlay {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* 设置为完全透明 */
}

/* 为中国国旗图标添加的特殊高亮样式 */
.flag-icon--china-special {
    /* 使用 box-shadow 模拟金色光晕效果 */
    box-shadow: 0 0 6px 2px rgba(255, 215, 0, 0.85);
    
    /* 确保图标是圆形的，这样光晕也呈圆形 */
    border-radius: 50%;
    
    /* 让图标稍微变大一点点，更突出 */
    transform: scale(1.1);
}

/* =========================================
   赛马娘卡片 - 动效目标修正版
   ========================================= */

/* 1. 全局重置 */
.btn-viewmore * { box-sizing: border-box !important; }
.btn-viewmore p, .btn-viewmore dl, .btn-viewmore dd, .btn-viewmore dt { margin: 0 !important; padding: 0 !important; }
.btn-viewmore img { margin: 0 !important; padding: 0 !important; border: none !important; display: block !important; max-width: none !important; max-height: none !important; }

/* 2. 列表 Grid */
.character-list {
    display: grid; list-style: none; padding: 0; margin: 30px auto; width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 25px 20px;
    justify-content: center;
}
.character-list li.is-show { animation: slideUpFade 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 3. 卡片外框 */
a.btn-viewmore {
    display: block; position: relative; text-decoration: none; width: 100%;
    aspect-ratio: 197 / 322; background-color: var(--color-sub);
    padding: 0 6px 6px 0 !important; overflow: hidden;
    /* 【核心修正 1】：这里的 transition 里不再需要 transform */
    transition: box-shadow 0.3s ease;
}

/* 
   【核心修正 2】：删除了这里的 transform: translateY(-4px)
   现在整个卡片在 hover 时不会再移动了
*/
a.btn-viewmore:hover { 
    /* 我们可以保留一个轻微的阴影变化来增加质感 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 4. 内部白色容器 */
.btn-viewmore .inner {
    position: absolute; top: 0; left: 0;
    width: calc(100% - 6px); height: calc(100% - 6px);
    background-color: #fff; z-index: 10;
}
.btn-viewmore dl {
    width: 100%; height: 100%; border: 2px solid var(--color-main);
    display: flex; flex-direction: column;
}

/* 5. 上半部分 (DT) */
.btn-viewmore dt {
    position: relative; flex: 1; width: 100%; overflow: hidden !important;
    background-color: var(--color-main);
}
.btn-viewmore dt::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 25px; /* 白条厚度 */
    background-color: #fff;
    z-index: 1; /* 在图片下面 */
}
.btn-viewmore .dt-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; transform: scale(1);
    transition: transform 1s cubic-bezier(.19,1,.22,1);
}

/* 
   【核心修正 3】：把向上移动的效果和放大效果合并到这里
   现在只有图片会动
*/
a.btn-viewmore:hover .dt-img { 
    transform: scale(1.1) translateY(-5px); 
}

.btn-viewmore .dt-img img {
    width: 100% !important; height: 100% !important;
    object-fit: cover; object-position: top center;
}
.btn-viewmore .dt-bg {
    position: absolute; top: 0; right: 0; bottom: 0; width: 56px;
    background-color: #fff; z-index: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 6px 0 0 0 !important;
}

.btn-viewmore .dt-bg p {
    margin: 0 !important;
    writing-mode: vertical-rl; 
    text-orientation: mixed; 
    color: var(--color-main);
    font-weight: 900; 
    font-size: 1.7rem;
    font-family: 'Gen Shin Gothic Heavy', 'Source Han Sans CN Heavy', sans-serif;
    letter-spacing: -0.05em; 
    white-space: nowrap; 
    line-height: 1 !important;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: scaleX(1.15) scaleY(0.85);
    transform-origin: top center;
}
.btn-viewmore .dt-bg p span.space {
    font-size: 1.8em;
}

/* 6. 下半部分 (DD) */
.btn-viewmore dd {
    position: relative; background: #fff; z-index: 20; 
    min-height: 80px; /* 恢复你原本的设定，绝不强制拉高 */
    border-top: 2px solid var(--color-main);
    padding: 8px 4px 8px 18px !important;
    display: flex; flex-direction: column; justify-content: center;
    align-items: flex-start; text-align: left;
}
.btn-viewmore dd::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 10px; background-color: var(--color-main);
}

/* 中文名 */
.btn-viewmore .name {
    color: #000; font-size: 16px; font-weight: 800; width: 100%;
    line-height: 1.2; margin: 0 0 4px 0 !important;
    
    /* 只加这3行：强制单行显示，超长部分变成... */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 血统信息（兼容 .pedigree 或 .cv 类名） */
.btn-viewmore .pedigree, 
.btn-viewmore .cv {
    font-size: 12px; color: #666; width: 100%; line-height: 1.4;
    
    /* 只加这4行：强制最多显示2行，超长部分变成... 绝对不往下撑开 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 如果血统文字包在 p 标签里，干掉它的默认边距 */
.btn-viewmore .pedigree p, 
.btn-viewmore .cv p {
    margin: 0 !important;
}

/* 7. Hover 遮罩层 (保持不变) */
.btn-viewmore .hover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    color: #fff; opacity: 0; pointer-events: none; z-index: 30;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .3s cubic-bezier(.19,1,.22,1);
}
.btn-viewmore .hover::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-main, #c0c4d6);
    opacity: .75; z-index: -1;
}
.btn-viewmore .hover > div {
    display: flex; align-items: center; justify-content: center;
    clip-path: inset(0 100% 0 0);
    transition: clip-path .4s cubic-bezier(.19,1,.22,1) .1s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.btn-viewmore .hover p {
    font-family: Raleway, sans-serif; font-style: italic; font-weight: 700;
    font-size: 1.15em; letter-spacing: .05em; text-shadow: 0 0 3px rgba(0,0,0,0.4);
}
.btn-viewmore .arrow {
    display: flex; margin-left: 0.6em; transform: skewX(-10deg);
}
.btn-viewmore .arrow-icon {
    display: block; width: 0.6em; height: 1em;
}
.btn-viewmore .arrow-icon:first-child {
    fill: rgba(255, 255, 255, 0.6);
}
.btn-viewmore .arrow-icon:last-child {
    fill: #fff; margin-left: -0.2em;
}
a.btn-viewmore:hover .hover { opacity: 1; }
a.btn-viewmore:hover .hover > div { clip-path: inset(0); }


/* ===================================================================
 *
 *  移动端响应式优化 — 降低 root font-size 实现等比例缩放
 *
 * =================================================================== */

/* --- ≤800px (平板及以下) --- */
@media screen and (max-width: 800px) {
    html { font-size: 7px; }

    .s-content { padding-top: 98px; }

    /* 首页 Masonry → 2列 */
    .masonry .grid-sizer,
    .masonry__brick { width: 50%; float: left; }
    .masonry__brick { padding: 0 8px; }
    .masonry .entry { margin-bottom: 2rem; }
    .masonry-wrap { max-width: none; }

    /* px 硬编码等比例缩小 */
    .masonry .entry__meta { font-size: 8px; letter-spacing: 0.8px; }
    .masonry .entry__meta span { margin-right: 6px; }
    .masonry .entry__thumb-link::after {
        height: 60px; width: 60px; line-height: 60px;
        margin-left: -30px; margin-top: -30px; letter-spacing: 0;
    }
    .header__nav { font-size: 15px; }
    .header__nav li ul { font-size: 13px; letter-spacing: 1px; }
    .header__nav li.has-children > a::after { height: 5px; width: 5px; margin-top: -3px; top: 50%; }
    .header__nav > li > a { line-height: 48px; }

    /* 黑体字马卡片 px 硬编码等比例缩小 */
    .character-list { margin: 20px auto; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 18px 14px; }
    .btn-viewmore dl { border-width: 1.5px; }
    .btn-viewmore dd { min-height: 56px; border-top-width: 1.5px; padding: 6px 3px 6px 13px !important; }
    .btn-viewmore dd::before { width: 7px; }
    .btn-viewmore .dt-bg { width: 40px; padding: 5px 0 0 0 !important; }
    .btn-viewmore .dt-bg p { font-size: 1.8rem; letter-spacing: -0.05em; line-height: 1 !important; transform: scaleX(1.15) scaleY(0.85); transform-origin: top center; }
    .btn-viewmore .dt-bg p span.space { width: 0.25em; }
    .btn-viewmore .name { font-size: 11px; margin: 0 0 3px 0 !important; }
    .btn-viewmore .pedigree, .btn-viewmore .cv { font-size: 9px; }
    .btn-viewmore dt::after { height: 18px; }
}

/* --- ≤600px (手机) --- */
@media screen and (max-width: 600px) {
    html { font-size: 6px; }

    .s-content { padding-top: 90px; }

    /* 首页 Masonry → 保持2列 */
    .masonry .grid-sizer,
    .masonry__brick { width: 50%; float: left; }
    .masonry__brick { padding: 0 5px; }
    .masonry .entry { margin-bottom: 1.4rem; }
    .masonry-wrap, .listing-header { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; }

    .masonry .entry__meta { font-size: 7px; letter-spacing: 0.6px; }
    .masonry .entry__meta span { margin-right: 4px; }
    .masonry .entry__thumb-link::after {
        height: 48px; width: 48px; line-height: 48px;
        margin-left: -24px; margin-top: -24px; letter-spacing: 0;
    }
    .header__nav { font-size: 14px; }
    .header__nav li ul { font-size: 12px; letter-spacing: 1px; }
    .header__nav li.has-children > a::after { height: 4px; width: 4px; margin-top: -2px; top: 50%; }
    .header__nav > li > a { line-height: 44px; }

    /* 黑体字马卡片 */
    .character-list { margin: 16px auto; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px 10px; }
    .btn-viewmore dl { border-width: 1px; }
    .btn-viewmore dd { min-height: 48px; border-top-width: 1px; padding: 5px 2px 5px 11px !important; }
    .btn-viewmore dd::before { width: 6px; }
    .btn-viewmore .dt-bg { width: 34px; padding: 4px 0 0 0 !important; }
    .btn-viewmore .dt-bg p { font-size: 1.6rem; letter-spacing: -0.05em; line-height: 1 !important; transform: scaleX(1.15) scaleY(0.85); transform-origin: top center; }
    .btn-viewmore .dt-bg p span.space { width: 0.25em; }
    .btn-viewmore .name { font-size: 10px; margin: 0 0 2px 0 !important; }
    .btn-viewmore .pedigree, .btn-viewmore .cv { font-size: 8px; }
    .btn-viewmore dt::after { height: 14px; }

    .search-form input[type="search"] { max-width: none; }
}

/* --- ≤400px (小屏手机) --- */
@media screen and (max-width: 400px) {
    html { font-size: 5.5px; }

    .s-content { padding-top: 84px; }

    /* 首页 Masonry → 保持2列 */
    .masonry .grid-sizer,
    .masonry__brick { width: 50%; float: left; }
    .masonry__brick { padding: 0 4px; }
    .masonry .entry { margin-bottom: 1rem; }
    .masonry-wrap, .listing-header { padding-left: 10px; padding-right: 10px; }

    .masonry .entry__meta { font-size: 6px; letter-spacing: 0.4px; }
    .masonry .entry__meta span { margin-right: 3px; }
    .masonry .entry__thumb-link::after {
        height: 40px; width: 40px; line-height: 40px;
        margin-left: -20px; margin-top: -20px; letter-spacing: 0;
    }
    .header__nav { font-size: 13px; }
    .header__nav li ul { font-size: 11px; letter-spacing: 1px; }
    .header__nav { margin: 90px 20px 30px 20px; }
    .header__social { margin: 20px 0 0 20px; }

    /* 黑体字马卡片 */
    .character-list { margin: 12px auto; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 8px 6px; }
    .btn-viewmore dd { min-height: 40px; padding: 4px 2px 4px 9px !important; }
    .btn-viewmore dd::before { width: 5px; }
    .btn-viewmore .dt-bg { width: 28px; padding: 3px 0 0 0 !important; }
    .btn-viewmore .dt-bg p { font-size: 1.4rem; letter-spacing: -0.05em; line-height: 1 !important; transform: scaleX(1.15) scaleY(0.85); transform-origin: top center; }
    .btn-viewmore .dt-bg p span.space { width: 0.25em; }
    .btn-viewmore .name { font-size: 9px; margin: 0 0 2px 0 !important; }
    .btn-viewmore .pedigree, .btn-viewmore .cv { font-size: 7px; }
    .btn-viewmore dt::after { height: 12px; }
}


/* ===================================================================
 * # 待完善马匹清单 (issues-page)
 * ------------------------------------------------------------------- */

.issues-page .issues-hero {
    margin-bottom: 2rem;
}

.issues-page .issues-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
}

.issues-page .issues-hero__desc {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
    max-width: 70rem;
}

.issues-page .issues-hero__desc a {
    color: #1a1a2e;
    text-decoration: underline;
}

.issues-tab__intro {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.4rem;
    line-height: 1.6;
}

.issues-tab__intro em {
    font-style: normal;
    font-weight: 600;
    color: #333;
}

.issues-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
}

.issues-count {
    font-size: 1.4rem;
    color: #888;
}

.issues-loading,
.issues-empty,
.issues-error {
    padding: 2rem;
    text-align: center;
    font-size: 1.5rem;
    color: #888;
}

.issues-error {
    color: #c00;
}

/* ---- 马匹卡片 ---- */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issues-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.issues-card:hover {
    border-color: #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.issues-card__main {
    flex: 0 0 40%;
    min-width: 0;
}

.issues-card__name-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.issues-horse__name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
}

.issues-horse__name:hover {
    text-decoration: underline;
}

.issues-horse__cn {
    font-size: 1.3rem;
    color: #777;
}

.issues-horse__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.issues-tag {
    display: inline-block;
    font-size: 1.2rem;
    color: #666;
    background: #eee;
    border-radius: 3px;
    padding: 1px 6px;
}

/* ---- 问题区 ---- */
.issues-card__problem {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #e0e0e0;
    padding-left: 1.5rem;
}

.issues-card__problem-label {
    font-size: 1.3rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.issues-missing-tag {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 3px;
    padding: 1px 6px;
    margin-right: 0.4rem;
    color: #fff;
}

.issues-missing-tag--sire {
    background-color: #c0392b;
}

.issues-missing-tag--dam {
    background-color: #8e44ad;
}

.issues-missing-id {
    font-size: 1.2rem;
    color: #555;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 5px;
    margin-right: 0.8rem;
    word-break: break-all;
}

.issues-missing-unknown {
    font-size: 1.2rem;
    color: #999;
    font-style: italic;
    margin-right: 0.8rem;
}

/* ---- Tab 2: 父母信息不匹配 ---- */
.issues-mismatch-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}
.issues-mismatch-row:last-child {
    margin-bottom: 0;
}

.issues-mismatch-tag {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 3px;
    padding: 1px 6px;
    color: #fff;
    white-space: nowrap;
}
.issues-mismatch-tag--gender {
    background-color: #d35400;
}
.issues-mismatch-tag--age {
    background-color: #2980b9;
}
.issues-mismatch-tag--time {
    background-color: #c0392b;
}

.issues-mismatch-parent-wrap {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.issues-mismatch-parent {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
}
.issues-mismatch-parent:hover {
    text-decoration: underline;
}

.issues-mismatch-detail {
    font-size: 1.3rem;
    color: #666;
    width: 100%;
    padding-left: 0;
}
@media screen and (min-width: 701px) {
    .issues-mismatch-detail {
        width: auto;
        padding-left: 0.5rem;
    }
}

/* ---- 空缺行 ---- */
.issues-gap-row {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
}

.issues-gap-depth {
    display: inline-block;
    font-weight: 600;
    color: #333;
    margin-right: 0.4rem;
}

/* ---- 响应式 ---- */
@media screen and (max-width: 700px) {
    .issues-card {
        flex-direction: column;
        gap: 1rem;
    }
    .issues-card__main {
        flex: none;
    }
    .issues-card__problem {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-left: 0;
        padding-top: 1rem;
    }
    .issues-page .issues-hero h1 {
        font-size: 2.4rem;
    }
}

/* ===================================================================
 * ## 比赛详情页 (race-detail)
 * 统一原则：th/td 居中对齐 + 紧凑内边距；仅马名列左对齐
 * =================================================================== */

/* --- 横幅标题区 --- */
.race-hero-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 2.4rem 3rem;
    border-radius: 6px;
    margin-bottom: 2.5rem;
}

.race-hero-content h1 {
    font-size: 2.8rem;
    margin: 0 0 0.6rem 0;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

.race-hero-content .race-english-name {
    font-size: 1.6rem;
    margin: 0 0 0.8rem 0;
    opacity: 0.85;
    font-weight: 400;
}

.race-hero-content #raceMeta {
    font-size: 1.5rem;
    margin: 0;
    opacity: 0.88;
    line-height: 1.6;
    word-break: break-word;
}

/* --- 结果区容器 --- */
.results-container {
    margin-bottom: 3rem;
}

#resultsHeaderContainer {
    margin-bottom: 1.8rem;
}

#resultsHeaderContainer h2 {
    font-size: 2rem;
    margin: 0;
}

.results-container .btn {
    font-size: 1.4rem;
    padding: 6px 16px;
    height: auto;
    line-height: 1.5;
    white-space: nowrap;
}

/* --- 滚动容器 --- */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- 成绩表格 --- */
.racedetailtables {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    table-layout: fixed;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
}

/* th/td 全部居中 + 统一紧凑内边距，覆盖全局 text-align:left 与 padding-left:0 */
.racedetailtables thead th,
.racedetailtables tbody td {
    text-align: center;
    padding: 1.1rem 0.5rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    line-height: 1.5;
}

.racedetailtables thead th {
    background: #f0f2f5;
    color: #333;
    font-weight: 600;
    font-size: 1.4rem;
    border-bottom: 2px solid #d0d4da;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

/* 马名列：唯一左对齐的长文本列，横向 padding 略宽 */
.racedetailtables th:nth-child(3),
.racedetailtables td:nth-child(3) {
    text-align: left;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.racedetailtables tbody tr:hover {
    background: #f8f9fb;
}

/* 最后一行去掉底边框，避免与外框边线之间留白 */
.racedetailtables tbody tr:last-child td {
    border-bottom: none;
}

/* 前三名高亮行底色 */
.racedetailtables tbody tr:has(td.pos-1) { background: #fff9f0; }
.racedetailtables tbody tr:has(td.pos-2) { background: #f6f8fc; }
.racedetailtables tbody tr:has(td.pos-3) { background: #fbf6f0; }
.racedetailtables tbody tr:has(td.pos-1):hover { background: #fff3e0; }
.racedetailtables tbody tr:has(td.pos-2):hover { background: #eef2fa; }
.racedetailtables tbody tr:has(td.pos-3):hover { background: #f7eede; }

/* --- 名次单元格配色 --- */
.position-cell {
    font-weight: 700;
    font-size: 1.6rem;
    white-space: nowrap;
}

.position-cell.pos-1   { color: #d4af37; }
.position-cell.pos-2   { color: #8a8a8a; }
.position-cell.pos-3   { color: #b87333; }
.position-cell.pos-other { color: #555; }

/* --- 马名链接 --- */
.racedetailtables td:nth-child(3) a {
    color: #1a5276;
    text-decoration: none;
    font-weight: 500;
}

.racedetailtables td:nth-child(3) a:hover {
    text-decoration: underline;
}

.racedetailtables td:nth-child(3) b {
    color: #000;
}

/* ===================================================================
 * 响应式 — 保持表格形态，等比例缩小，不隐藏任何列
 * =================================================================== */

/* 平板 (≤800px)：缩小字号+内边距，性别年龄省略为性龄 */
@media screen and (max-width: 800px) {
    .race-hero-banner {
        padding: 1.8rem 2rem;
    }
    .race-hero-content h1 {
        font-size: 2.2rem;
    }
    .racedetailtables {
        font-size: 1.3rem;
    }
    .racedetailtables thead th,
    .racedetailtables tbody td {
        padding: 0.9rem 0.4rem;
    }
    .position-cell {
        font-size: 1.3rem;
    }
    /* 性别年龄表头省略为「性龄」 */
    .racedetailtables thead th[data-short] {
        font-size: 0;
    }
    .racedetailtables thead th[data-short]::after {
        content: attr(data-short);
        font-size: 1.3rem;
    }
}

/* 手机 (≤600px)：进一步等比缩小 */
@media screen and (max-width: 600px) {
    .race-hero-banner {
        padding: 1.4rem 1.6rem;
        border-radius: 4px;
        margin-bottom: 1.5rem;
    }
    .race-hero-content h1 {
        font-size: 1.9rem;
    }
    .race-hero-content #raceMeta {
        font-size: 1.3rem;
    }
    #resultsHeaderContainer h2 {
        font-size: 1.7rem;
    }
    .racedetailtables {
        font-size: 1.1rem;
    }
    .racedetailtables thead th {
        font-size: 1.1rem;
    }
    .racedetailtables thead th,
    .racedetailtables tbody td {
        padding: 0.7rem 0.3rem;
    }
    .position-cell {
        font-size: 1.1rem;
    }
    .racedetailtables thead th[data-short]::after {
        font-size: 1.1rem;
    }
}

/* 超小屏 (≤400px)：极限压缩，横向滚动兜底 */
@media screen and (max-width: 400px) {
    .race-hero-banner {
        padding: 1.2rem 1.2rem;
    }
    .race-hero-content h1 {
        font-size: 1.7rem;
    }
    .racedetailtables {
        font-size: 1rem;
    }
    .racedetailtables thead th {
        font-size: 1rem;
    }
    .racedetailtables thead th,
    .racedetailtables tbody td {
        padding: 0.6rem 0.2rem;
    }
    .position-cell {
        font-size: 1rem;
    }
    .racedetailtables thead th[data-short]::after {
        font-size: 1rem;
    }
}
