:root {
    --brand: #972fd7;
    --brand-dark: #5c158f;
    --accent: #ff4081;
    --gold: #e7cdaa;
    --text: #222;
    --muted: #68707d;
    --line: #eceaf2;
    --surface: #fff;
    --soft: #faf8fc;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    background: #f5f4f7;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

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

.container,
.bba-container {
    max-width: 1200px;
}

.site-header {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
    color: #fff;
    box-shadow: 0 4px 12px rgba(61, 22, 91, 0.18);
}

.site-header .container {
    min-height: 64px;
}

.mimic-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(300px, 52vw);
    height: 50px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.mimic-logo:hover,
.site-header .nav-link,
.site-header .nav-link:hover {
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.nav-quick {
    width: 48%;
}

.dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(34, 20, 54, 0.18);
}

.dropdown-item {
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f3e7fb;
    color: var(--brand-dark);
}

.form-diy {
    justify-content: center;
}

.input-diy {
    min-width: 180px;
    border-radius: 999px;
}

.btn {
    border-radius: 999px;
}

.menu-wrap {
    display: block;
    margin: 14px auto 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(42, 24, 64, 0.08);
}

.menu-wrap dl {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
}

.menu-wrap dl:last-child {
    border-bottom: 0;
}

.menu-wrap dt,
.menu-wrap dd {
    margin: 0;
    min-height: 34px;
    line-height: 34px;
    text-align: center;
}

.menu-wrap dt {
    width: 8%;
    min-width: 70px;
    font-weight: 700;
}

.menu-wrap dt a {
    display: inline-block;
    min-width: 54px;
    padding: 0 8px;
    background: var(--gold);
    border-radius: 8px;
    color: #1f1b13;
}

.menu-wrap dd {
    width: 11.5%;
    font-size: 15px;
}

.menu-wrap dd a {
    display: inline-block;
    width: 100%;
    color: #31263d;
}

.menu-wrap dd a:hover {
    color: var(--brand);
    font-weight: 700;
}

.breadcrumb-wrap {
    margin-top: 10px;
}

.breadcrumb {
    margin: 0;
    font-size: 14px;
}

.video-section,
.seo-intro,
.intro-wrapper,
.comment-area,
.player-container {
    margin-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px 8px;
    border-bottom: 2px solid #eee8f4;
}

.section-title,
.seo-intro h1,
.comment-title {
    margin: 0;
    color: #2d2139;
    font-size: 20px;
    font-weight: 700;
}

.section-title::before,
.comment-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    background: var(--accent);
    border-radius: 4px;
}

.more-link {
    color: var(--muted);
    font-size: 14px;
}

.more-link:hover {
    color: var(--brand);
}

.video-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(27, 24, 31, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(27, 24, 31, 0.16);
}

.tag-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    overflow: hidden;
    background: var(--brand);
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-img-top {
    width: 100%;
    height: 188px;
    object-fit: cover;
    background: #eee;
}

.card-body {
    padding: 9px 10px 10px;
}

.card-title {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: #241d2d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.seo-intro,
.intro-wrapper,
.comment-area {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(27, 24, 31, 0.06);
}

.seo-intro p,
.intro-content p {
    margin: 8px 0 0;
    color: #52485c;
    font-size: 14px;
    line-height: 1.8;
}

.player-title {
    margin: 0 0 12px;
    color: #241d2d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.video-player {
    width: 100%;
    overflow: hidden;
    background: #07040a;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(20, 10, 30, 0.2);
}

.responsive-iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: 0;
}

.intro-toggle,
.comment-toggle,
.comment-form button {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.intro-toggle {
    padding: 7px 14px;
    background: #fff1f7;
    color: var(--accent);
}

.intro-toggle:hover {
    background: #ffe3f0;
}

.intro-content {
    display: none;
    margin-top: 10px;
}

.intro-content.open {
    display: block;
}

.comment-area {
    max-width: 900px;
}

.comment-title {
    margin-bottom: 10px;
}

.comment-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.comment-item:last-child {
    border-bottom: 0;
}

.hidden-comment {
    display: none;
}

.show-comment {
    display: flex !important;
}

.avatar {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7d4e3, #dcc4ff);
    color: var(--brand-dark);
    font-weight: 700;
}

.comment-body {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    background: var(--soft);
    border-radius: 8px;
}

.comment-body .name {
    display: inline-block;
    margin-right: 8px;
    color: #2d2139;
}

.comment-body .time,
.comment-body .action {
    color: var(--muted);
    font-size: 13px;
}

.comment-body .text {
    margin: 6px 0;
    color: #4b4352;
    font-size: 14px;
    line-height: 1.7;
}

.comment-body .action {
    display: flex;
    gap: 16px;
}

.comment-toggle-wrap {
    margin: 12px 0;
    text-align: center;
}

.comment-toggle {
    padding: 7px 14px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    width: 100%;
    min-height: 96px;
    padding: 10px;
    border: 1px solid #ddd4e9;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.comment-form button {
    align-self: flex-end;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent), #f2990d);
}

.pagination {
    flex-wrap: wrap;
}

.page-item {
    margin: 2px;
}

.page-link {
    color: var(--brand);
    border-color: #eadff2;
    border-radius: 6px;
}

.page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
}

.hot-search {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
    padding: 7px 0;
    background: #21172b;
    color: #fff;
    white-space: nowrap;
}

.hot-search-track {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    animation: hot-scroll 48s linear infinite;
}

.hot-search:hover .hot-search-track {
    animation-play-state: paused;
}

.hot-search a,
.hot-search span,
.hot-search strong {
    margin-right: 14px;
    color: #fff;
    font-size: 14px;
}

.hot-search a:hover {
    color: #ffd166;
}

@keyframes hot-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

footer {
    margin-top: 26px;
    padding: 18px 10px 48px;
    background: #332440;
    color: #fff;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.footer-links a:hover {
    color: #ffd166;
}

@media (max-width: 991px) {
    .nav-quick {
        width: 100%;
    }

    .form-diy {
        padding-bottom: 10px;
    }

    .responsive-iframe {
        height: 420px;
    }
}

@media (max-width: 750px) {
    .mimic-logo {
        width: auto;
        max-width: 62vw;
        justify-content: flex-start;
        font-size: 24px;
    }

    .menu-wrap {
        margin-top: 0;
        border-radius: 0;
        border-right: 0;
        border-left: 0;
    }

    .menu-wrap dl {
        padding: 10px 6px;
    }

    .menu-wrap dt {
        width: 18%;
        min-width: 58px;
        font-size: 14px;
    }

    .menu-wrap dd {
        width: 20.5%;
        font-size: 12px;
        line-height: 30px;
    }

    .section-title,
    .seo-intro h1,
    .comment-title {
        font-size: 18px;
    }

    .card-img-top {
        height: 124px;
    }

    .card-body {
        padding: 8px;
    }

    .card-title {
        min-height: 38px;
        font-size: 13px;
    }

    .player-title {
        font-size: 18px;
    }

    .responsive-iframe {
        height: 245px;
    }

    .seo-intro,
    .intro-wrapper,
    .comment-area {
        padding: 12px;
    }

    .avatar {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}
