/* ========================================
   MiMo-V2-TTS Release Page
   ======================================== */

@font-face {
    font-family: 'MiSans-Semibold';
    src: url('/font/MiSans-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

:root {
    --bg: #F9F6F3;
    --bg-block: #F3EEE8;
    --text: #1D0601;
    --text-body: #1D0601B2;
    --text-muted: #888;
    --accent: #FF6700;
    --font-serif: "PT Serif", Georgia, serif;
    --font-title: "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;

}

body {
    font-family: var(--font-serif);
    font-weight: 400;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* ---- Site Nav ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 40px;
    background: rgba(250, 247, 245, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.site-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-nav-logo-img {
    width: 141px;
    height: 18px;
}

.site-nav-back {
    font-family: "MiSans-Semibold", "MiSans-Bold", "MiSans-Regular", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.site-nav-back::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-nav-back:hover::after {
    transform: scaleX(1);
}

/* Article Container */
.article {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 2rem 6rem;
}

/* ---- Hero ---- */
.hero {
    margin-bottom: 4rem;
}

.hero-date {
    display: block;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
}

.tts-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    opacity: 0;
    display: inline-block;
}

.hero-subtitle {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

.hero-tagline {
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 auto 2rem;
}

/* ---- Hero Audio Demo ---- */
.hero-audio-demo {
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* ---- Bilibili Embed ---- */
.bilibili-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem auto 0;
    background: #000;
    max-width: 680px;
}

.bilibili-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Section Divider ---- */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0d9d0, transparent);
    margin: 0 0 3.5rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    transition: all 0.2s;
}

.btn-chevron {
    font-size: 1.1em;
    line-height: 1;
}

.btn-filled {
    background: #1D0601;
    color: #fff;
    border: 1px solid #1D0601;
}

.btn-filled:hover {
    background: #3a1a10;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid #ccc;
}

.btn-outline:hover {
    border-color: #999;
}

/* ---- Sections ---- */
.section {
    margin-bottom: 3.5rem;
}

h2 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent);
}

ul {
    margin: 0 0 1rem 1.5rem;
}

li {
    margin-bottom: 0.35rem;
}

/* ---- Model Overview ---- */
.model-overview {
    background: var(--bg-block);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.overview-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    font-family: var(--font-title);
    font-size: 0.85rem;
}

.overview-item + .overview-item {
    border-top: 1px solid #e0d9d0;
}

.overview-label {
    font-weight: 600;
    color: var(--text);
    min-width: 120px;
}

.overview-value {
    color: var(--text-body);
}

/* ---- Core Tech Row (inside overview card) ---- */
.overview-tech {
    display: flex;
    gap: 1rem;
    font-family: var(--font-title);
    font-size: 0.85rem;
}

.overview-tech-label {
    font-weight: 600;
    color: var(--text);
    min-width: 120px;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.overview-tech-rows {
    flex: 1;
    min-width: 0;
}

.overview-tech-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    align-items: baseline;
}

.overview-tech-row + .overview-tech-row {
    border-top: 1px dashed #e0d9d0;
}

.overview-tech-name {
    font-weight: 500;
    color: var(--text-body);
    width: 180px;
    flex-shrink: 0;
    line-height: 1.55;
}

.overview-tech-desc {
    color: var(--text-body);
}

/* ---- Audio Demo ---- */
.audio-demo-block {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audio-demo {
    background: var(--bg-block);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.audio-demo-text {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.audio-demo .demo-audio {
    display: none;
}

/* ---- Mini Player (inside audio-demo) ---- */
.mini-player {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.mini-player-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.mini-player-btn:hover {
    background: var(--accent);
    transform: scale(1.08);
}

.mini-player-btn:active {
    transform: scale(0.94);
}

.mini-player-btn svg {
    width: 12px;
    height: 12px;
}

.mini-player-btn .play-icon {
    margin-left: 1.5px;
}

.mini-player-track {
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}

.mini-player:hover .mini-player-track {
    height: 5px;
}

.mini-player-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.mini-player-time {
    flex-shrink: 0;
    font-family: var(--font-title);
    font-size: 0.68rem;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- Label Bold ---- */
.label-bold {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 0.35rem;
}

/* ---- Blockquote ---- */
blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: var(--text);
    background: var(--bg-block);
    border-radius: 0 8px 8px 0;
}

/* ---- TODO Notes ---- */
.todo-note {
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: #bbb;
    font-style: italic;
    padding: 1rem;
    background: var(--bg-block);
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

/* ---- Strikethrough ---- */
.strikethrough {
    text-decoration: line-through;
    opacity: 0.5;
}

s {
    opacity: 0.5;
}

/* ---- Footer ---- */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .site-nav {
        height: 56px;
        padding: 0 20px;
    }

    .article {
        padding: 1rem 1.25rem 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .model-overview {
        padding: 1rem 1.25rem;
    }

    .overview-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .overview-tech {
        flex-direction: column;
        gap: 0.25rem;
    }

    .overview-tech-row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .overview-tech-name {
        min-width: unset;
    }
}
