/**
 * 默认主题 · 独立样式（dt- 前缀）
 */
.dt-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--page-bg, #f5f5f7);
}

.dt-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ── 顶栏 ── */
.dt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--vs-white);
    border-bottom: 1px solid var(--vs-border);
}

.dt-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 60px;
}

.dt-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    min-width: 0;
}

.dt-logo__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.dt-logo__icon-fallback,
.dt-drawer__icon-fallback {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.08);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}

.dt-logo__icon-fallback::after,
.dt-drawer__icon-fallback::after {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 3px;
    background: var(--vs-primary);
    opacity: 0.85;
}

.dt-logo__text {
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.dt-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--vs-text-secondary);
    text-decoration: none;
    padding: 6px 2px;
}

.dt-nav__link:hover,
.dt-nav__link.is-active {
    color: var(--vs-primary);
}

.dt-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--vs-border);
    background: var(--vs-white);
    color: var(--vs-text);
    flex-shrink: 0;
}

.dt-auth-btn:hover {
    border-color: var(--vs-primary);
    color: var(--vs-primary);
}

.dt-auth-btn--block {
    width: 100%;
    height: 44px;
    background: var(--vs-primary);
    color: var(--vs-white);
    border-color: var(--vs-primary);
}

.dt-auth-btn--block:hover {
    background: var(--vs-primary-hover);
    color: var(--vs-white);
}

.dt-auth-btn--user {
    gap: 8px;
    background: var(--vs-white);
    color: var(--vs-text);
    border-color: var(--vs-border);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.dt-auth-btn--user:hover {
    border-color: var(--vs-primary);
    color: var(--vs-primary);
    background: var(--vs-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.dt-auth-btn--block.dt-auth-btn--user {
    background: var(--vs-white);
    color: var(--vs-text);
    border-color: var(--vs-border);
}

.dt-auth-btn--block.dt-auth-btn--user:hover {
    background: #f8fafc;
    color: var(--vs-primary);
    border-color: var(--vs-primary);
}

.dt-auth-btn__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--vs-border);
}

.dt-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--vs-border);
    border-radius: 8px;
    background: var(--vs-white);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

.dt-menu-btn__bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--vs-text);
    border-radius: 1px;
}

/* ── 抽屉 ── */
.dt-drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
}

.dt-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: var(--vs-white);
    border-left: 1px solid var(--vs-border);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.24s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.dt-drawer.is-open {
    transform: translateX(0);
}

.dt-drawer__head {
    padding: 16px;
    border-bottom: 1px solid var(--vs-border);
}

.dt-drawer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dt-drawer__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.dt-drawer__title {
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dt-drawer__link {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--vs-text-secondary);
    text-decoration: none;
}

.dt-drawer__link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dt-drawer__link.is-active {
    background: rgba(17, 17, 17, 0.06);
    color: var(--vs-primary);
    font-weight: 600;
}

.dt-drawer__foot {
    padding: 16px;
    border-top: 1px solid var(--vs-border);
}

body.dt-drawer-open {
    overflow: hidden;
}

/* ── 主内容 ── */
.dt-main {
    flex: 1;
    padding: 40px 0 48px;
}

.dt-hero {
    text-align: center;
    padding: 48px 20px;
    background: var(--vs-white);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    margin-bottom: 32px;
}

.dt-hero__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.dt-hero__desc {
    color: var(--vs-text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.dt-hero__actions {
    display: flex;
    justify-content: center;
}

.dt-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dt-feature {
    background: var(--vs-white);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    padding: 28px 24px;
    text-align: center;
}

.dt-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--vs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.dt-feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dt-feature p {
    font-size: 13px;
    color: var(--vs-text-secondary);
    line-height: 1.6;
}

.dt-section {
    margin-top: 24px;
}

.dt-section__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.dt-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dt-quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--vs-white);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    text-decoration: none;
    color: var(--vs-text);
}

.dt-quick-card:hover {
    border-color: var(--vs-primary);
    box-shadow: var(--vs-shadow);
}

.dt-page-head {
    margin-bottom: 24px;
    padding: 28px 24px;
    background: var(--vs-white);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
}

.dt-page-head__title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dt-page-head__desc {
    color: var(--vs-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.dt-card {
    padding: 24px;
    background: var(--vs-white);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    margin-top: 16px;
}

.dt-card h3,
.dt-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dt-card p {
    color: var(--vs-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.dt-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.dt-contributor-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.dt-contributor {
    padding: 20px;
    background: var(--vs-white);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    text-align: center;
}

.dt-contributor__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.dt-contributor__name {
    font-weight: 600;
    margin-bottom: 4px;
}

.dt-contributor__role {
    font-size: 12px;
    color: var(--vs-text-secondary);
}

.dt-footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--vs-border);
    background: var(--vs-white);
}

@media (max-width: 900px) {
    .dt-nav,
    .dt-auth-btn--desktop {
        display: none;
    }

    .dt-menu-btn {
        display: inline-flex;
    }

    .dt-logo {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .dt-main {
        padding: 24px 0 32px;
    }

    .dt-hero {
        padding: 32px 16px;
    }

    .dt-hero__title {
        font-size: 24px;
    }

    .dt-features,
    .dt-quick-grid,
    .dt-grid-2,
    .dt-contributor-list {
        grid-template-columns: 1fr;
    }
}
