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

:root {
    --mi-orange: #FF6900;
    --mi-blue: #00A0FF;
    --glass: rgba(255, 255, 255, 0.45);
    --glass-strong: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.55);
    --text: #1A1A1A;
    --text-gray: #5C5C6E;
    --radius: 22px;
    --shadow: 0 8px 32px rgba(120, 80, 160, 0.15);
    --blur: 22px;
}

html[data-theme="dark"] {
    --glass: rgba(28, 28, 44, 0.45);
    --glass-strong: rgba(35, 35, 55, 0.7);
    --glass-border: rgba(255, 255, 255, 0.14);
    --text: #EDEDF2;
    --text-gray: #9A9AAC;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

body {
    font-family: "MiSans", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% 0%, rgba(255, 105, 0, 0.16), transparent 60%),
        radial-gradient(900px 500px at 90% 20%, rgba(0, 160, 255, 0.16), transparent 55%),
        linear-gradient(160deg, #FDF4EE 0%, #F5F0FF 45%, #EAF6FF 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background 0.4s;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(1200px 600px at 10% 0%, rgba(255, 105, 0, 0.14), transparent 60%),
        radial-gradient(900px 500px at 90% 20%, rgba(0, 160, 255, 0.14), transparent 55%),
        linear-gradient(160deg, #12121C 0%, #14142A 50%, #0E1A24 100%);
}

/* 流动光斑 */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
}

body::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: linear-gradient(135deg, #FF9A3D, #FF5FA2);
    animation: drift1 18s ease-in-out infinite alternate;
}

body::after {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -60px;
    background: linear-gradient(135deg, #4D9FFF, #A05CFF);
    animation: drift2 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes drift2 {
    from { transform: translate(0, 0) scale(1.1); }
    to { transform: translate(-50px, -30px) scale(0.95); }
}

a { color: var(--mi-blue); text-decoration: none; }
a:hover { opacity: 0.85; }

/* 玻璃卡片 */
.card,
.post-card,
.widget,
.post-full,
.comments,
.tag-cloud.all {
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
}

/* 进度条 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--mi-orange), var(--mi-blue));
    z-index: 100;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(255, 105, 0, 0.6);
}

/* 顶栏 */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mi-orange), #FF5FA2);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(255, 105, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.logo-text { font-size: 1.1rem; font-weight: 600; }

.nav { display: flex; gap: 0.4rem; }

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-link:hover { color: var(--text); opacity: 1; }

.nav-link.active {
    background: var(--glass-border);
    color: var(--mi-orange);
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.header-actions { display: flex; gap: 0.4rem; }

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.3s, transform 0.15s;
}

.icon-btn:hover { background: var(--glass-strong); transform: scale(1.05); }

/* 搜索 */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 40, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8vh 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.search-overlay.open { opacity: 1; pointer-events: auto; }

.search-box {
    width: 100%;
    max-width: 640px;
    display: flex;
    gap: 0.5rem;
    background: var(--glass-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: var(--text);
}

.search-results {
    width: 100%;
    max-width: 640px;
    margin-top: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--glass-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 0.8rem;
}

.search-item {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text);
}

.search-item:hover { background: var(--glass-border); opacity: 1; }

.search-item span { display: block; font-size: 0.85rem; color: var(--text-gray); }

/* 主视图 */
.view { max-width: 960px; margin: 0 auto; padding: 1.5rem 1.2rem; }

/* 视图切换过渡 */
.view-anim { animation: viewIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@keyframes viewIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动进屏 */
.post-card, .widget, .card, .hero, .page-head {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.25s,
        transform 0.25s;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    border-radius: 28px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 105, 0, 0.14), rgba(160, 92, 255, 0.14), rgba(0, 160, 255, 0.14));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    min-height: 2.6rem;
    margin-bottom: 0.5rem;
}

.caret { color: var(--mi-orange); animation: blink 0.8s steps(2) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.hero-sub { color: var(--text-gray); margin-bottom: 1.5rem; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.hero-stats div { display: flex; flex-direction: column; }

.hero-stats strong {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--mi-orange), #A05CFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats span { color: var(--text-gray); font-size: 0.85rem; }

/* 区块 */
.section { margin-bottom: 2rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-head h2 { font-size: 1.3rem; }

.more { font-size: 0.9rem; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* 文章卡片 */
.post-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(160, 92, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.post-card.featured {
    background: linear-gradient(135deg, rgba(255, 105, 0, 0.12), rgba(255, 95, 162, 0.1));
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 0.6rem;
}

.post-category {
    background: linear-gradient(135deg, var(--mi-orange), #FF5FA2);
    color: #fff;
    padding: 0.1rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    box-shadow: 0 2px 8px rgba(255, 105, 0, 0.3);
}

.post-title { font-size: 1.2rem; margin-bottom: 0.5rem; }

.post-title a { color: var(--text); }
.post-title a:hover { color: var(--mi-orange); opacity: 1; }

.post-excerpt { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 0.8rem; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
    font-size: 0.78rem;
    color: var(--mi-orange);
    background: rgba(255, 105, 0, 0.1);
    border: 1px solid rgba(255, 105, 0, 0.18);
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.tag em { font-style: normal; font-size: 0.72rem; opacity: 0.8; }

/* 侧边栏 */
.sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.widget {
    border-radius: var(--radius);
    padding: 1.3rem;
}

.widget h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(255, 105, 0, 0.22);
}

.categories { display: flex; flex-direction: column; gap: 0.4rem; }

.category {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
}

.category:hover { background: var(--glass-border); opacity: 1; }

.category span {
    background: var(--glass-border);
    border-radius: 999px;
    padding: 0 0.6rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-cloud a { font-size: 0.85rem; }

.tag-cloud .big {
    font-size: 1rem;
    padding: 0.25rem 0.9rem;
}

.tag-cloud a:hover { opacity: 1; transform: scale(1.05); }

.blog-info { list-style: none; font-size: 0.88rem; color: var(--text-gray); }

.blog-info li { padding: 0.25rem 0; }

/* 页面头 */
.page-head {
    padding: 1.5rem 0 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.page-head h1 { font-size: 1.7rem; }
.page-head p { color: var(--text-gray); font-size: 0.9rem; }

/* 筛选栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.filter-btn {
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(12px);
    color: var(--text-gray);
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover { border-color: var(--mi-orange); color: var(--mi-orange); }

.filter-btn.active {
    background: linear-gradient(135deg, var(--mi-orange), #FF5FA2);
    border-color: transparent;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(255, 105, 0, 0.35);
}

/* 文章详情 */
.post-full {
    border-radius: 28px;
    padding: 2.2rem;
}

.post-full-title { font-size: 1.8rem; line-height: 1.3; margin: 0.8rem 0; }

.post-content { margin-top: 1.5rem; font-size: 1rem; }

.post-content h2 {
    font-size: 1.3rem;
    margin: 1.8rem 0 0.8rem;
    padding-left: 0.7rem;
    border-left: 4px solid var(--mi-orange);
}

.post-content h3 { font-size: 1.1rem; margin: 1.4rem 0 0.6rem; }

.post-content p { margin-bottom: 0.9rem; }

.post-content ul { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.post-content li { margin-bottom: 0.3rem; }

.post-content blockquote {
    border-left: 4px solid var(--mi-blue);
    background: rgba(0, 160, 255, 0.1);
    padding: 0.7rem 1rem;
    border-radius: 0 12px 12px 0;
    margin: 1rem 0;
    color: var(--text-gray);
}

.post-content code {
    background: var(--glass-border);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    font-family: Consolas, monospace;
    font-size: 0.9em;
    color: var(--mi-orange);
}

.post-content pre {
    background: rgba(24, 22, 40, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.2rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content pre code {
    background: transparent;
    color: #CDD6F4;
    padding: 0;
    border-radius: 0;
}

.post-content hr { border: none; border-top: 2px dashed var(--glass-border); margin: 1.5rem 0; }

/* 操作栏 */
.post-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.like-btn {
    border: 1px solid rgba(255, 105, 0, 0.25);
    background: rgba(255, 105, 0, 0.12);
    backdrop-filter: blur(8px);
    color: var(--mi-orange);
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover { transform: scale(1.05); background: rgba(255, 105, 0, 0.2); }

.like-btn:active { transform: scale(0.95); }

.like-btn.liked {
    background: linear-gradient(135deg, var(--mi-orange), #FF5FA2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 105, 0, 0.4);
    animation: likePop 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes likePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.like-btn.liked em { color: #fff; }

.view-count { color: var(--text-gray); font-size: 0.9rem; }

/* 上一篇下一篇 */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.post-nav a {
    background: var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    max-width: 45%;
}

.post-nav a:hover { background: rgba(255, 105, 0, 0.15); color: var(--mi-orange); opacity: 1; }

/* 评论 */
.comments {
    border-radius: 28px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.comments-title { font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.4rem; }
.comments-title em {
    color: var(--mi-orange);
    font-style: normal;
    font-size: 0.95rem;
    background: rgba(255, 105, 0, 0.12);
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    margin-left: 0.3rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
}

.comment-form input,
.comment-form textarea {
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    color: var(--text);
    outline: none;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--mi-orange);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.12);
}

.comment-form-textarea { margin-top: -0.2rem; }

.comment-form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.comment-hint { font-size: 0.78rem; color: var(--text-gray); }

.btn-primary {
    background: linear-gradient(135deg, var(--mi-orange), #FF5FA2);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.6rem 1.6rem;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.3s;
    box-shadow: 0 4px 14px rgba(255, 105, 0, 0.35);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.comment-list { display: flex; flex-direction: column; gap: 0.9rem; }

.comment {
    display: flex;
    gap: 0.8rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    transition: transform 0.2s;
}

.comment:hover { transform: translateX(3px); }

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mi-orange), #FF5FA2);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 105, 0, 0.25);
}

.comment-body { flex: 1; min-width: 0; }

.comment-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.comment-head strong { color: var(--mi-orange); font-size: 0.95rem; }

.comment-floor {
    font-size: 0.72rem;
    color: var(--mi-orange);
    background: rgba(255, 105, 0, 0.1);
    padding: 0 0.5rem;
    border-radius: 999px;
}

.comment-head span { font-size: 0.76rem; color: var(--text-gray); }

.comment-body p { font-size: 0.92rem; word-break: break-word; }

/* 标签云页面 */
.tag-cloud.all {
    border-radius: var(--radius);
    padding: 2rem;
}

/* 关于 */
.about-card { text-align: center; }

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mi-orange), #FF5FA2, var(--mi-blue));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    color: #fff;
    font-size: 2.6rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(255, 105, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.about-card h2 { margin-bottom: 0.5rem; }
.about-desc { color: var(--text-gray); margin-bottom: 1.5rem; }

.skills { text-align: left; max-width: 420px; margin: 0 auto 1.5rem; }

.skill { margin-bottom: 1rem; }

.skill span { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; }

.bar {
    height: 10px;
    background: var(--glass-border);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--mi-orange), #A05CFF);
    border-radius: 999px;
    animation: grow 1s ease;
}

@keyframes grow { from { width: 0 !important; } }

.contact { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

.btn-ghost {
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: var(--text);
    border-radius: 14px;
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
}

.btn-ghost:hover { border-color: var(--mi-orange); color: var(--mi-orange); opacity: 1; }

/* 空状态 */
.empty { color: var(--text-gray); text-align: center; padding: 2rem; }

/* 页脚 */
.footer {
    text-align: center;
    padding: 2.5rem 1rem 3rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

/* 回到顶部 */
.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--mi-orange);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s;
    z-index: 90;
}

.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* 后台管理 */
.admin-link { opacity: 0.75; font-size: 0.88rem; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-head h1 { margin: 0; }

.admin-form {
    display: flex;
    gap: 0.6rem;
    max-width: 360px;
    margin: 1rem 0;
}

.admin-form input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--text);
    font-size: 0.92rem;
    outline: none;
}

.admin-form input:focus { border-color: var(--mi-orange); }

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.5rem 1.1rem;
    border: none;
    background: none;
    color: var(--text-gray);
    font-size: 0.92rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.admin-tab.active { color: var(--mi-orange); border-bottom-color: var(--mi-orange); }

.admin-field { margin-bottom: 1rem; }

.admin-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.35rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--text);
    font-size: 0.92rem;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus { border-color: var(--mi-orange); }

.admin-field-foot { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }

.admin-msg { font-size: 0.88rem; color: var(--mi-orange); }
.admin-msg.error { color: #e5484d; }

.admin-list { display: flex; flex-direction: column; gap: 0.7rem; }
.form-desc { color: var(--text-gray); font-size: 0.9rem; }

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    flex-wrap: wrap;
}

.admin-item .muted { display: block; font-size: 0.8rem; color: var(--text-gray); margin-top: 0.15rem; }
.admin-item-actions { display: flex; gap: 0.5rem; }
.admin-item-actions .btn-ghost { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.admin-item-actions .danger:hover { border-color: #e5484d; color: #e5484d; }
.muted { color: var(--text-gray); }

/* 响应式 */
@media (max-width: 640px) {
    .header-inner { height: 56px; padding: 0 0.8rem; }
    .logo-text { display: none; }
    .nav-link { padding: 0.4rem 0.6rem; font-size: 0.88rem; }
    .hero-title { font-size: 1.4rem; }
    .post-full { padding: 1.3rem; }
    .post-full-title { font-size: 1.4rem; }
    .hero-stats { gap: 2rem; }
    .back-top { right: 1rem; bottom: 1rem; }
}
