/* 头图容器淡蓝底色 */
.model-header-img-container {
    width: 100%;
    text-align: center;
    margin: 100px 0 32px 0;
    position: relative;
    background: linear-gradient(135deg, #a1c9f7 100%);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #D2DDF1;
    color: #08284d;
    min-height: 100vh;
    overflow-x: hidden;
}

.model-container {
    display: flex;
    max-width: 1400px;      /* 最大宽度与members一致 */
    margin: 80px auto 0 auto; /* 顶部间距，左右自动居中 */
    padding: 0 1rem;        /* 左右边距，防止内容贴边 */
    background: #D2DDF1;
    gap: 25px;
    justify-content: center;
    width: 100%;
}


/* 左侧导航样式 */
.model-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.model-nav-card {
    background: #ffffff;                  /* 改为纯白底 */
    /* 移除玻璃态模糊 */
    backdrop-filter: none;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(31, 94, 171, 0.12);
    border: 1px solid rgba(8, 40, 77, 0.06);
}

.model-logo {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(94, 161, 252, 0.3);
}

.model-logo h1 {
    font-size: 1.5rem;
    color: #08284d;
    margin-bottom: 5px;
}

.model-logo p {
    color: #5ea1fc;
    font-size: 1.15rem;
}

.model-nav-links {
    list-style: none;
}

.model-nav-links li {
    margin-bottom: 12px;
}

.model-nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #08284d;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;              /* 继承白底 */
}

.model-nav-links a:hover {
    background: rgba(8, 40, 77, 0.05);    /* 轻微高亮 */
    transform: translateX(5px);
}

.model-nav-links a.model-active {
    background: linear-gradient(90deg, #5ea1fc 0%, #08284d 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(8, 40, 77, 0.3);
}

.model-nav-links i {
    margin-right: 10px;
    font-size: 1.25rem;
}

/* 主内容区域样式 */
.model-main-content {
    flex-grow: 1;
    font-size: 1.25rem; /* 主内容区域整体字体放大 */
}

.model-section {
    background: #ffffff;                  /* 改为纯白底 */
    /* 移除玻璃态模糊 */
    backdrop-filter: none;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(31, 94, 171, 0.12);
    border: 1px solid rgba(8, 40, 77, 0.06);
    animation: model-fadeIn 0.5s ease-out;
}

.model-section h2 {
    color: #08284d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(94, 161, 252, 0.3);
}

/* Protocol-like typography within model pages (aligned with Protocol page) */
.text-content { 
    margin-bottom: 4rem; /* 与 Protocol 一致的区块间距 */
}
.text-content-h1 {
    font-size: 1.8rem;            /* 标题字号对齐 */
    font-weight: 700;
    color: #08284d;               /* 与模型页标题色系协调 */
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(94,161,252,0.35); /* 参考 Protocol 下划线风格 */
}
.text-content-p {
    font-size: 1.15rem;            /* 段落字号对齐 */
    line-height: 1.8;             /* 行高对齐 */
    margin-bottom: 1.5rem;        /* 段落底部间距对齐 */
    color: var(--text, #334e73);  /* 使用主题文本色（回退为原模型页正文色） */
}
.text-content-ol {
    margin: 0 0 1.5rem 1.25rem;   /* 列表整体间距与缩进 */
    color: var(--text, #334e73);
    line-height: 1.8;
    list-style: decimal;
}
.text-content-ol li { 
    margin: 0.5rem 0;             /* 列表项间距对齐 */
    font-size: 1.15rem; /* 段落、标题、图注、列表字体放大 */
}
.text-img-container {
    margin: 2rem 0;               /* 图片容器间距 */
    text-align: center;
}
.text-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}
.figure-caption {
    font-size: 0.95rem;
    color: var(--text-light, #5b708e);
    font-style: italic;
}
.equation-block {
    background: #f6f9fe;
    border: 1px dashed rgba(94,161,252,.35);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 6px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #0a2a52;
}

.model-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.model-card {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(8, 40, 77, 0.2);
}

.model-card-img {
    height: 180px;
    overflow: hidden;
}

.model-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover .model-card-img img {
    transform: scale(1.05);
}

.model-card-content {
    padding: 20px;
}

.model-card h3 {
    color: #08284d;
    margin-bottom: 10px;
}

.model-card p {
    color: #4a6fa1;
    font-size: 14px;
    line-height: 1.5;
}

/* 正文下方和footer上方背景色为 #D2DDF1 */
.model-main-content::after {
    content: "";
    display: block;
    width: 100%;
    height: 60px; /* 可根据实际视觉调整高度 */
    background: #D2DDF1;
    border-radius: 0 0 20px 20px;
    margin-top: 30px;
}

footer {
    background: #D2DDF1 !important;
    border-radius: 20px 20px 0 0;
    padding-top: 30px;
}

/* 动画效果 */
@keyframes model-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes model-snowflakes {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.model-snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    animation-name: model-snowflakes;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* 放大侧边栏字体 */
.model-sidebar,
.model-nav-card,
.model-logo h1,
.model-logo p,
.model-nav-links a,
.model-nav-links i {
    font-size: 1.15rem;
}
.model-logo h1 {
    font-size: 1.5rem;
}
.model-nav-links i {
    font-size: 1.25rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .model-container {
        flex-direction: column;
        padding: 0 0.5rem;
    }
    .model-sidebar {
        width: 100%;
        position: relative;
        margin-bottom: 20px;
    }
}

.katex .katex-int {
  font-size: 2em !important;
  vertical-align: -0.2em;
}
