/* ============ 墨喵域名分发 · 强化样式 v2 ============ */
:root {
    --primary: #409eff;
    --primary-hover: #66b1ff;
    --primary-dark: #337ecc;
    --primary-light: #ecf5ff;
    --accent: #7c3aed;
    --accent-light: #f5f0ff;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --text-primary: #1f2937;
    --text-regular: #4b5563;
    --text-secondary: #6b7280;
    --text-placeholder: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6b7280;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 8px 32px rgba(64, 158, 255, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
    background: var(--bg-page);
}

/* ============ 动画渐变背景 ============ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(64, 158, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at 100% 20%, rgba(124, 58, 237, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

/* 噪点纹理 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 漂浮光球 */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 360px; height: 360px; background: rgba(64, 158, 255, 0.35); top: -80px; left: -80px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: rgba(124, 58, 237, 0.30); top: 30%; right: -100px; animation-delay: -6s; }
.orb-3 { width: 260px; height: 260px; background: rgba(6, 182, 212, 0.28); bottom: 5%; left: 20%; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

/* ============ 顶部导航 ============ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    transition: var(--transition);
}

.top-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.92);
}

.top-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}
.brand:hover { transform: scale(1.02); color: var(--primary); }

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 50%, #7c3aed 100%);
    background-size: 200% 200%;
    animation: logoGlow 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.35);
}

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

.nav-menu {
    display: flex;
    gap: 4px;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-regular);
    font-weight: 500;
    transition: var(--transition);
}
.nav-menu a:hover {
    background: rgba(64, 158, 255, 0.08);
    color: var(--primary);
    transform: translateY(-1px);
}
.nav-menu a.active {
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.12), rgba(124, 58, 237, 0.08));
    color: var(--primary);
    font-weight: 600;
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-name {
    font-weight: 500;
    color: var(--text-regular);
}

.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #409eff, #7c3aed);
    background-size: 200% 200%;
    animation: logoGlow 6s ease infinite;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.28);
    transition: var(--transition);
}
.balance-pill:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.4);
}

/* ============ 按钮 ============ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    font-family: inherit;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
    background: linear-gradient(135deg, #409eff, #337ecc);
    color: #fff;
    box-shadow: 0 4px 14px rgba(64, 158, 255, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #66b1ff, #409eff);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-color: var(--border);
    color: var(--text-regular);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4); }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4); }

.btn-block { width: 100%; }
.btn-lg { padding: 13px 30px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ============ 布局 ============ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 22px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

/* ============ 卡片 ============ */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 231, 235, 0.6);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(64, 158, 255, 0.2);
}

.card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
}

.card-body { padding: 22px; }

/* ============ Hero 首页 ============ */
.hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 50%, #7c3aed 100%);
    background-size: 200% 200%;
    animation: heroGradient 15s ease infinite;
    color: #fff;
    padding: 60px 48px;
    margin-bottom: 28px;
    min-height: 360px;
    box-shadow: 0 24px 60px rgba(64, 158, 255, 0.28);
    isolation: isolate;
}

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

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12) 0%, transparent 40%);
    pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    right: -10%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 620px;
    animation: heroEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-title {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -1px;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0 0 30px;
    line-height: 1.75;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-illustration {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-align: center;
    padding: 20px;
    line-height: 1.6;
    z-index: 1;
    pointer-events: none;
    animation: floatSlow 6s ease-in-out infinite;
    overflow: hidden;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(calc(-50% - 12px)) scale(1.02); }
}

@media (max-width: 900px) {
    .hero-illustration { display: none; }
    .hero { padding: 40px 26px; min-height: auto; }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 14px; }
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}
.hero-actions .btn:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.hero-actions .btn.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    backdrop-filter: blur(8px);
}
.hero-actions .btn.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border-color: #fff;
}

/* ============ 特性卡片 ============ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.feature {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    border: 1px solid rgba(229, 231, 235, 0.6);
    transition: var(--transition-slow);
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.06), rgba(124, 58, 237, 0.06));
    opacity: 0;
    transition: opacity 0.4s;
}
.feature:hover::before { opacity: 1; }

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(64, 158, 255, 0.15);
    border-color: rgba(64, 158, 255, 0.3);
}

.feature-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.12), rgba(124, 58, 237, 0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #409eff, #7c3aed);
    color: #fff;
    box-shadow: 0 12px 32px rgba(64, 158, 255, 0.4);
}

.feature h5 {
    position: relative;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.feature p {
    position: relative;
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

/* ============ 网格 ============ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.announce-item, .changelog-item {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
    transition: var(--transition);
}
.announce-item:hover, .changelog-item:hover {
    padding-left: 6px;
}
.announce-item:last-child, .changelog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.announce-title {
    font-weight: 600;
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--text-primary);
}
.announce-content {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 6px;
    line-height: 1.65;
}
.announce-time {
    color: var(--text-placeholder);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============ 域名卡片 ============ */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.domain-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 231, 235, 0.6);
    padding: 24px;
    transition: var(--transition-slow);
    overflow: hidden;
    isolation: isolate;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #409eff, #7c3aed, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.domain-card:hover::before { transform: scaleX(1); }

.domain-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(64, 158, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}
.domain-card:hover::after { opacity: 1; }

.domain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(64, 158, 255, 0.16), 0 8px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(64, 158, 255, 0.3);
}

.domain-card > * { position: relative; z-index: 1; }

.domain-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    transition: var(--transition);
}

.tag-primary { background: linear-gradient(135deg, rgba(64,158,255,0.15), rgba(64,158,255,0.08)); color: var(--primary-dark); }
.tag-success { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.08)); color: #047857; }
.tag-warning { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08)); color: #b45309; }
.tag-info    { background: #f3f4f6; color: var(--text-secondary); }
.tag-purple  { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.08)); color: #6d28d9; }

.domain-meta {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 18px;
}
.domain-meta strong {
    background: linear-gradient(135deg, #409eff, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
    font-weight: 800;
}

.ns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 16px;
}
.ns-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f3f4f6;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-regular);
    font-family: 'Monaco', 'Menlo', monospace;
    transition: var(--transition);
}
.ns-badge:hover { background: var(--primary-light); color: var(--primary); }

/* ============ 表单 ============ */
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    transition: var(--transition);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(64, 158, 255, 0.12);
    transform: translateY(-1px);
}

.form-select {
    width: 100%;
    padding: 11px 38px 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    transition: var(--transition);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(64, 158, 255, 0.12);
}

.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-regular);
    margin-bottom: 6px;
}
.form-hint {
    font-size: 12px;
    color: var(--text-placeholder);
    margin-top: 6px;
}

/* ============ 表格 ============ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 231, 235, 0.6);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.table-wrap:hover { box-shadow: var(--shadow-md); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

table thead { background: linear-gradient(180deg, #fafbfc, #f4f6f9); }

table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--text-regular);
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

table tbody tr { transition: var(--transition); }
table tbody tr:hover { background: linear-gradient(90deg, rgba(64, 158, 255, 0.04), rgba(124, 58, 237, 0.03)); }
table tbody tr:last-child td { border-bottom: none; }

.empty-row {
    text-align: center;
    color: var(--text-placeholder);
    padding: 50px 0 !important;
    font-size: 13px;
}

/* ============ 提示条 ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: rgba(16, 185, 129, 0.08); border-color: var(--success); color: #047857; }
.alert-info    { background: rgba(64, 158, 255, 0.08); border-color: var(--primary); color: var(--primary-dark); }
.alert-danger  { background: rgba(239, 68, 68, 0.08); border-color: var(--danger); color: #b91c1c; }
.alert-warning { background: rgba(245, 158, 11, 0.08); border-color: var(--warning); color: #b45309; }

/* ============ 侧边栏 ============ */
.layout {
    display: flex;
    min-height: calc(100vh - 64px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: var(--radius-lg);
    padding: 16px 0;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.sidebar-section-title {
    padding: 10px 22px;
    font-size: 11px;
    color: var(--text-placeholder);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 10px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-regular);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.sidebar-item:hover {
    background: rgba(64, 158, 255, 0.08);
    color: var(--primary);
    transform: translateX(3px);
}

.sidebar-item.active {
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.15), rgba(124, 58, 237, 0.1));
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.15);
}

.sidebar-item i { width: 18px; text-align: center; font-size: 15px; }

.sidebar-illustration {
    margin: 16px 14px;
    height: 140px;
    background: linear-gradient(135deg, rgba(64,158,255,0.08), rgba(124,58,237,0.08));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-placeholder);
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
    pointer-events: none;
    overflow: hidden;
    border: 1px dashed rgba(64, 158, 255, 0.2);
}
.sidebar-illustration img { width: 100%; height: 100%; object-fit: cover; }

.main-content { flex: 1; min-width: 0; }

@media (max-width: 768px) { .sidebar { display: none; } .layout { padding: 16px; } }

/* ============ 弹窗 ============ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.modal-backdrop.show { display: flex; animation: fadeIn 0.25s; }

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-body { padding: 22px; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #fafbfc;
}
.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
    transform: rotate(90deg);
}

/* ============ 滚动进入动画 ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 辅助类 ============ */
.text-muted { color: var(--text-secondary); }
.text-small { font-size: 12px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #409eff, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ DNS 类型折叠 ============ */
.dns-types-wrap {
    position: relative;
    margin-bottom: 12px;
}
.dns-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 26px;       /* 默认只显示一行 */
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dns-types-wrap.expanded .dns-types-list {
    max-height: 500px;      /* 展开时足够高 */
}
.dns-types-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 10px;
    font-size: 11px;
    color: var(--primary);
    background: rgba(64, 158, 255, 0.08);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}
.dns-types-toggle:hover {
    background: rgba(64, 158, 255, 0.15);
    transform: scale(1.03);
}
.dns-types-toggle i {
    transition: transform 0.3s;
}
.dns-types-wrap.expanded .dns-types-toggle i {
    transform: rotate(180deg);
}

/* ============ Loading 遮罩 ============ */
.loading-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}
.loading-box {
    background: #fff;
    border-radius: 18px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    min-width: 280px;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid rgba(64, 158, 255, 0.15);
    border-top-color: #409eff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}
.loading-sub {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}