:root {
    --tuitehao-ink: #131528;
    --tuitehao-muted: #717487;
    --tuitehao-blue: #3668ff;
    --tuitehao-purple: #873ef0;
    --tuitehao-surface: #ffffff;
    --tuitehao-border: rgba(30, 38, 73, 0.09);
}

/* The source site keeps RiPro's demo rollbar and the child-theme language
   selector hidden. This also prevents placeholder QQ/theme-purchase links from
   appearing on the migrated public site. */
.rollbar,
.custom-language-dropdown {
    display: none !important;
}

.tuitehao-replica-active .site-content,
.tuitehao-replica-active .main-wrapper {
    padding-top: 0;
}

.tuitehao-replica-home {
    overflow: hidden;
    color: var(--tuitehao-ink);
    background: #f7f8fc;
}

.tuitehao-search-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px;
    color: #fff;
    text-align: center;
    background-image:
        linear-gradient(to bottom, rgba(30, 115, 190, 0.82), rgba(130, 36, 227, 0.78)),
        url('/wp-content/uploads/tuitehao-style/hero.webp');
    background-position: center;
    background-size: cover;
}

.tuitehao-hero-inner {
    width: min(760px, 100%);
}

.tuitehao-eyebrow,
.tuitehao-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tuitehao-search-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 750;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 30px rgba(17, 25, 80, 0.24);
}

.tuitehao-hero-copy {
    margin: 14px 0 30px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.tuitehao-search-form {
    display: flex;
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(32, 25, 98, 0.24);
}

.tuitehao-search-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    border: 0;
    outline: 0;
    color: #2d3042;
    background: transparent;
    font-size: 16px;
}

.tuitehao-search-form button {
    flex: 0 0 auto;
    min-width: 102px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #377cf6, #6b46ec);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tuitehao-search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(66, 80, 224, 0.3);
}

.tuitehao-hot-words {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    justify-content: center;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.tuitehao-hot-words a {
    color: #fff;
    text-decoration: none;
}

.tuitehao-content-section {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 82px 0;
}

.tuitehao-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.tuitehao-section-heading h2,
.tuitehao-service-banner h2 {
    margin: 0;
    color: var(--tuitehao-ink);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.tuitehao-section-heading p:not(.tuitehao-kicker) {
    margin: 9px 0 0;
    color: var(--tuitehao-muted);
}

.tuitehao-kicker {
    color: var(--tuitehao-purple);
}

.tuitehao-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tuitehao-tabs a,
.tuitehao-more-link {
    padding: 9px 15px;
    border: 1px solid var(--tuitehao-border);
    border-radius: 999px;
    color: #74788c;
    background: linear-gradient(145deg, #edf1f5, #fff);
    box-shadow: 4px 4px 10px #d7dce5, -4px -4px 10px #fff;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: 0.2s ease;
}

.tuitehao-tabs a:hover,
.tuitehao-tabs a.is-active,
.tuitehao-more-link:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tuitehao-blue), var(--tuitehao-purple));
    box-shadow: 0 9px 24px rgba(76, 77, 224, 0.23);
}

.tuitehao-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.tuitehao-post-card {
    overflow: hidden;
    border: 1px solid var(--tuitehao-border);
    border-radius: 17px;
    background: var(--tuitehao-surface);
    box-shadow: 0 12px 32px rgba(36, 42, 78, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tuitehao-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(36, 42, 78, 0.13);
}

.tuitehao-post-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #5075ee, #7e43dd);
}

.tuitehao-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tuitehao-post-card:hover .tuitehao-post-media img {
    transform: scale(1.045);
}

.tuitehao-post-media.is-placeholder {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.tuitehao-post-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(9, 13, 27, 0.78);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tuitehao-post-card:hover .tuitehao-post-overlay {
    opacity: 1;
}

.tuitehao-post-body {
    padding: 19px 19px 22px;
}

.tuitehao-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #9296a8;
    font-size: 12px;
}

.tuitehao-post-meta span {
    overflow: hidden;
    color: #6b4ce6;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tuitehao-post-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 50px;
    margin: 10px 0 8px;
    color: var(--tuitehao-ink);
    font-size: 17px;
    font-weight: 760;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tuitehao-post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.tuitehao-post-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 43px;
    margin: 0;
    color: var(--tuitehao-muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tuitehao-service-banner {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(115deg, rgba(12, 16, 37, 0.92), rgba(52, 32, 95, 0.65)),
        url('/wp-content/uploads/tuitehao-style/customization.webp') center / cover;
}

.tuitehao-service-banner h2 {
    color: #fff;
}

.tuitehao-service-banner p:not(.tuitehao-kicker) {
    margin: 14px 0 30px;
    color: #c4c2cc;
    font-size: 18px;
}

.tuitehao-service-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(620px, calc(100vw - 40px));
    margin: 0 auto 32px;
    padding: 0;
    list-style: none;
}

.tuitehao-service-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(18, 17, 38, 0.48);
    backdrop-filter: blur(8px);
}

.tuitehao-service-steps span {
    color: #ff855f;
    font-size: 13px;
    font-weight: 800;
}

.tuitehao-service-steps strong {
    color: #fff;
    font-size: 15px;
}

.tuitehao-service-banner a {
    display: inline-flex;
    min-width: 230px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9px;
    color: #fff;
    background: #fa5e2e;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 13px 30px rgba(250, 94, 46, 0.25);
}

.tuitehao-service-banner a:hover {
    color: #fff;
    background: #ec6a42;
}

.tuitehao-more {
    padding-bottom: 100px;
}

.tuitehao-recovery-note {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #f0d99b;
    border-radius: 12px;
    color: #6e5720;
    background: #fff9e8;
}

.tuitehao-recovery-note p {
    margin: 5px 0 0;
}

.post-content img,
.post-content video {
    max-width: 100%;
    height: auto;
}

.tuitehao-about-page {
    width: min(1060px, calc(100% - 34px));
    margin: 40px auto 90px;
}

.tuitehao-about-hero {
    padding: 74px 28px;
    border-radius: 26px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #25166c, #7544d8 55%, #d15680);
    box-shadow: 0 24px 60px rgba(54, 34, 132, 0.2);
}

.tuitehao-about-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 6vw, 58px);
}

.tuitehao-about-hero p:not(.tuitehao-kicker) {
    width: min(650px, 100%);
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.tuitehao-about-video {
    overflow: hidden;
    margin: -28px auto 52px;
    width: min(860px, calc(100% - 34px));
    border: 8px solid #fff;
    border-radius: 24px;
    background: #111;
    box-shadow: 0 24px 65px rgba(20, 24, 57, 0.2);
}

.tuitehao-about-video video {
    display: block;
    width: 100%;
    height: auto;
}

.tuitehao-about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tuitehao-about-grid article {
    padding: 30px;
    border: 1px solid var(--tuitehao-border);
    border-radius: 18px;
    background: var(--tuitehao-surface);
    box-shadow: 0 12px 34px rgba(36, 42, 78, 0.07);
}

.tuitehao-about-grid h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.tuitehao-about-grid p {
    margin: 0;
    color: var(--tuitehao-muted);
}

@media (max-width: 1100px) {
    .tuitehao-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tuitehao-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .tuitehao-tabs {
        justify-content: flex-start;
    }
}

@media (max-width: 780px) {
    .tuitehao-search-hero {
        min-height: 520px;
        padding: 80px 18px;
    }
    .tuitehao-content-section {
        width: min(100% - 28px, 1240px);
        padding: 60px 0;
    }
    .tuitehao-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .tuitehao-service-banner {
        min-height: 430px;
    }
}

@media (max-width: 520px) {
    .tuitehao-search-form {
        padding: 5px;
    }
    .tuitehao-search-form input {
        padding: 10px 13px;
        font-size: 14px;
    }
    .tuitehao-search-form button {
        min-width: 78px;
    }
    .tuitehao-post-grid {
        grid-template-columns: 1fr;
    }
    .tuitehao-tabs {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding: 6px 4px 12px;
    }
    .tuitehao-tabs a {
        flex: 0 0 auto;
    }
    .tuitehao-section-heading.is-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    .tuitehao-service-steps {
        grid-template-columns: 1fr;
        width: min(300px, calc(100vw - 36px));
        gap: 9px;
    }
    .tuitehao-service-steps li {
        min-height: 52px;
    }
    .tuitehao-about-page {
        width: min(100% - 22px, 1060px);
    }
    .tuitehao-about-grid {
        grid-template-columns: 1fr;
    }
}

[data-bs-theme='dark'] .tuitehao-replica-home {
    --tuitehao-ink: #f1f3fa;
    --tuitehao-muted: #a8adbd;
    --tuitehao-surface: #20242d;
    --tuitehao-border: rgba(255, 255, 255, 0.08);
    background: #171a21;
}

[data-bs-theme='dark'] .tuitehao-tabs a,
[data-bs-theme='dark'] .tuitehao-more-link {
    color: #b7bbc8;
    background: linear-gradient(145deg, #1e2024, #23272b);
    box-shadow: 4px 4px 10px #14171b, -4px -4px 10px #292d33;
}
