/* ═══════════════════════════════════════════════
   【新增】星空专栏入口
   ═══════════════════════════════════════════════ */

.starry-column-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 0 20px 60px;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    flex-shrink: 0;
    margin-top: 10px;
}

.starry-column-entry.fading-out {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.starry-column-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-family: "Noto Serif SC", "Poppins", serif;
    text-shadow: 0 0 10px rgba(0, 223, 216, 0.2);
}

.starry-column-hint .hint-line {
    display: block;
}

/* ═══════════════════════════════════════════════
   星空专栏按钮
   【修改点】高度、字体大小与 .manual-star-chip 完全一致
   【保持】按钮长度更长（padding 左右更大）
   ═══════════════════════════════════════════════ */
.starry-column-btn {
    position: relative;
    background: rgba(10, 20, 35, 0.6);
    border: 1.5px solid rgba(0, 223, 216, 0.25);
    color: rgba(255, 255, 255, 0.85);
    
    /* ═══ 与 .manual-star-chip 完全一致 ═══ */
    padding: 8px 0;              /* 上下内边距与 chip 相同 → 高度一致 */
    font-size: 14px;             /* 字体大小与 chip 相同 */
    /* ═══════════════════════════════════ */
    
    /* ═══ 保持按钮长度更长 ═══ */
    /* 通过更大的水平 padding 实现，而不是 width */
    padding-left: 40px;           /* 左侧额外空间 */
    padding-right: 40px;         /* 右侧额外空间 */
    /* ═══════════════════════ */
    
    border-radius: 30px;           /* 圆角与 chip 相同 */
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 3px;         /* 保持更宽松的字母间距 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 按钮内部发光层 */
.starry-column-btn .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 223, 216, 0.5) 0%, rgba(100, 200, 255, 0.2) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
}

.starry-column-btn .btn-icon {
    position: relative;
    z-index: 2;
    font-size: 16px;             /* 图标稍大，保持视觉平衡 */
    color: rgba(0, 223, 216, 0.9);
    text-shadow: 0 0 10px rgba(0, 223, 216, 0.5);
    animation: iconPulse 3s ease-in-out infinite;
}

.starry-column-btn .btn-text {
    position: relative;
    z-index: 2;
    font-weight: 300;            /* 与 .chip-text 一致 */
    letter-spacing: 1px;         /* 与 .chip-text 一致 */
}

/* 悬停效果 */
.starry-column-btn:hover {
    color: #fff;
    border-color: rgba(0, 223, 216, 0.7);
    box-shadow: 
        0 0 25px rgba(0, 223, 216, 0.4),
        inset 0 0 15px rgba(0, 223, 216, 0.15);
    transform: translateY(-2px);  /* 与 chip 悬停幅度一致 */
}

.starry-column-btn:hover .btn-glow {
    width: 150px;                /* 与 chip hover 一致 */
    height: 150px;
}

/* 点击反馈 */
.starry-column-btn:active {
    transform: scale(0.95);      /* 与 chip 一致 */
}

/*系统专栏图标按钮*/
.starry-card-system {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    margin-right: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(197, 160, 89, 0.7);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.starry-card-system:hover {
    background: rgba(197, 160, 89, 0.15);
    color: #c5a059;
}

.starry-card-system svg {
    display: block;
}

/* 删除按钮 */
.starry-card-delete {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.2);
    color: rgba(255, 100, 100, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0;
    transition: all 0.2s ease;
}

.starry-card-delete:hover {
    background: rgba(255, 100, 100, 0.25);
    border-color: rgba(255, 100, 100, 0.5);
    color: #ff4d4f;
}

.starry-card-delete svg {
    display: block;
}


/* ═══════════════════════════════════════════════
   【补充】星空专栏页面 - 完整样式
   ═══════════════════════════════════════════════ */

#starryLeft {
    background: linear-gradient(135deg, #0a0e17 0%, #121a2b 100%);
    position: relative;
    overflow: hidden;
    /* 新增：确保电脑端 flex 分栏时正确居中并撑开 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.starry-cover-wrapper {
    position: relative;
    width: 95%;        /* 从 85% 改为 95%，电脑端更饱满 */
    height: 85%;       /* 从 80% 改为 85%，增加高度利用率 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 223, 216, 0.1);
}

.starry-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) saturate(1.1);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.starry-cover-wrapper:hover .starry-cover {
    transform: scale(1.05);
    filter: brightness(0.8) saturate(1.2);
}

.starry-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(8, 12, 20, 0.95) 0%, rgba(8, 12, 20, 0.6) 50%, transparent 100%);
    text-align: center;
}

.starry-cover-title {
    font-family: 'Noto Serif SC', 'Cinzel', serif;
    font-size: clamp(24px, 3vw, 36px);
    color: #00dfd8;
    letter-spacing: 6px;
    margin: 0 0 10px 0;
    text-shadow: 
        0 0 20px rgba(0, 223, 216, 0.5),
        0 0 40px rgba(0, 150, 255, 0.3);
}

.starry-cover-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    margin: 0;
}

@media (min-width: 769px) {

    #starryLeft {
        flex: 1 1 50% !important;
        min-width: 0 !important;       

        display: flex;
        align-items: center;
        justify-content: center;
    }

    #starryLeft + .layout-right {
        flex: 1 1 50% !important;
        max-width: none !important;
    }

    #starryLeft .starry-cover-wrapper {
        width: 100%;
        height: 100%;
    }

    #starryLeft .starry-cover {
        width: 100%;
        height: 100%;

        /* 核心修改 */
        object-fit: scale-down;
       
        /* 修改这里：将 center 换成 top (贴着最顶部)，或者用百分比控制 */
        /* 核心修改：X轴居中，Y轴设置为 40% (你可以自由调整这个数字) */
        object-position: center 40%;
       
        //object-position: center center;

        background: transparent;
    }
}


/* ─────────────────────────────────────────────
   右侧头部（含双返回按钮）
   ───────────────────────────────────────────── */

.starry-header {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 223, 216, 0.1);
}

.starry-list-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* 左上角：返回首页 */
.back-btn-inline {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 223, 216, 0.35);
    border-radius: 6px;
    color: #00dfd8;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.back-btn-inline:hover {
    background: rgba(0, 223, 216, 0.15);
    border-color: rgba(0, 223, 216, 0.6);
}

.back-btn-inline svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 右上角：返回专栏列表 */
.back-to-list-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 223, 216, 0.35);
    border-radius: 6px;
    color: #00dfd8;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.back-to-list-btn:hover {
    background: rgba(0, 223, 216, 0.15);
    border-color: rgba(0, 223, 216, 0.6);
}

.back-to-list-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ─────────────────────────────────────────────
   卡片列表容器
   ───────────────────────────────────────────── */
/* 默认：自然流式，不限制 */
.starry-cards-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 8px;
}

/* ═══════════════════════════════════════════════
   电脑端限定：限制高度 + 滚动条
   ═══════════════════════════════════════════════ */
@media (min-width: 769px) {
    .starry-cards-container {
        max-height: calc(5 * 72px + 4 * 16px);  /* 5卡片 + 4间距 */
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 223, 216, 0.3) transparent;
    }

    .starry-cards-container::-webkit-scrollbar {
        width: 4px;
    }

    .starry-cards-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .starry-cards-container::-webkit-scrollbar-thumb {
        background: rgba(0, 223, 216, 0.3);
        border-radius: 2px;
    }

    /* 防止卡片被压缩 */
    .starry-card {
        flex-shrink: 0;
    }
}

.starry-cards-container::-webkit-scrollbar {
    width: 4px;
}

.starry-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.starry-cards-container::-webkit-scrollbar-thumb {
    background: rgba(0, 223, 216, 0.3);
    border-radius: 2px;
}


/* ─────────────────────────────────────────────
   星空卡片
   ───────────────────────────────────────────── */

.starry-card {
    position: relative;
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(0, 223, 216, 0.12);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    overflow: hidden;
}

.starry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #00dfd8, #007cf0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.starry-card:hover {
    background: rgba(20, 35, 60, 0.8);
    border-color: rgba(0, 223, 216, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 223, 216, 0.1);
    transform: translateY(-2px);
}

.starry-card:hover::before {
    opacity: 1;
}

.starry-card.built-in {
    border-color: rgba(0, 223, 216, 0.2);
    background: rgba(0, 223, 216, 0.05);
}

.starry-card.built-in::after {
    content: '✦';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 14px;
    color: rgba(0, 223, 216, 0.6);
    text-shadow: 0 0 10px rgba(0, 223, 216, 0.3);
}

.starry-card.empty {
    opacity: 0.5;
    cursor: not-allowed;
}

.starry-card.empty:hover {
    transform: none;
    border-color: rgba(0, 223, 216, 0.12);
    box-shadow: none;
}


/* ─────────────────────────────────────────────
   卡片头部
   ───────────────────────────────────────────── */

.starry-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.starry-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 223, 216, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 223, 216, 0.2);
    color: #00dfd8;
    flex-shrink: 0;
}

.starry-card-icon svg {
    width: 20px;
    height: 20px;
}

.starry-card-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    flex: 1;
    letter-spacing: 1px;
}

.starry-card-config {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.starry-card-config:hover {
    background: rgba(0, 223, 216, 0.15);
    border-color: rgba(0, 223, 216, 0.4);
    color: #00dfd8;
    transform: rotate(30deg);
}


/* ─────────────────────────────────────────────
   卡片内容
   ───────────────────────────────────────────── */

.starry-card-contribution {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0 0 12px 0;
    padding-left: 48px;
}

.starry-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 48px;
    margin-bottom: 8px;
}

.starry-card-field {
    font-size: 12px;
    color: #00dfd8;
    background: rgba(0, 223, 216, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 223, 216, 0.2);
    letter-spacing: 1px;
}

.starry-card-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.starry-card-status.active {
    color: rgba(100, 255, 150, 0.8);
    background: rgba(100, 255, 150, 0.1);
    border: 1px solid rgba(100, 255, 150, 0.2);
}

.starry-card-status.empty {
    color: rgba(255, 150, 100, 0.8);
    background: rgba(255, 150, 100, 0.1);
    border: 1px solid rgba(255, 150, 100, 0.2);
}

.starry-card-remarks {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    margin: 0;
    padding-left: 48px;
    letter-spacing: 1px;
}


/* ─────────────────────────────────────────────
   添加卡片按钮（管理员）
   ───────────────────────────────────────────── */

.add-card-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: rgba(0, 223, 216, 0.1);
    border: 1.5px dashed rgba(0, 223, 216, 0.3);
    border-radius: 30px;
    color: rgba(0, 223, 216, 0.8);
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-card-btn:hover {
    background: rgba(0, 223, 216, 0.2);
    border-style: solid;
    border-color: rgba(0, 223, 216, 0.5);
    box-shadow: 0 0 20px rgba(0, 223, 216, 0.2);
}

.add-card-btn span {
    font-size: 18px;
    font-weight: 300;
}


/* ─────────────────────────────────────────────
   配置模态框
   ───────────────────────────────────────────── */

.starry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.starry-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.starry-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: linear-gradient(135deg, #0d1b2a 0%, #121a2b 100%);
    border: 1px solid rgba(0, 223, 216, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 223, 216, 0.1);
    animation: fadeInUp 0.3s ease;
}

.starry-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 223, 216, 0.1);
}

.starry-modal-header h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 2px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.3);
    color: rgba(255, 100, 100, 0.8);
    transform: rotate(90deg);
}

.starry-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 223, 216, 0.3) transparent;
}

.starry-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 223, 216, 0.1);
}

.btn-secondary {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary {
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(0, 223, 216, 0.2), rgba(0, 124, 240, 0.2));
    border: 1.5px solid rgba(0, 223, 216, 0.3);
    border-radius: 20px;
    color: #00dfd8;
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 223, 216, 0.3), rgba(0, 124, 240, 0.3));
    border-color: rgba(0, 223, 216, 0.5);
    box-shadow: 0 0 20px rgba(0, 223, 216, 0.2);
}


/* ─────────────────────────────────────────────
   模态框配置表单
   ───────────────────────────────────────────── */

.config-section {
    margin-bottom: 24px;
    position: relative;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-label {
    display: block;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: rgba(0, 223, 216, 0.8);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.config-label.secondary {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    font-size: 13px;
}

.config-label.sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 223, 216, 0.15);
    color: #00dfd8;
    margin-left: 8px;
    font-weight: normal;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.lang-tag.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.hint-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: normal;
    font-family: 'Poppins', sans-serif;
    margin-left: 8px;
}

.config-input,
.config-textarea,
.config-select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(0, 223, 216, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.config-input:focus,
.config-textarea:focus,
.config-select:focus {
    border-color: rgba(0, 223, 216, 0.4);
    box-shadow: 0 0 15px rgba(0, 223, 216, 0.1);
}

.config-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.config-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300dfd8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.config-select option {
    background: #0d1b2a;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px;
}


/* ─────────────────────────────────────────────
   专家搜索下拉
   ───────────────────────────────────────────── */

.expert-search-box {
    position: relative;
    margin-bottom: 8px;
}

.expert-search-input {
    padding-right: 40px !important;
}

.expert-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.expert-search-box:focus-within .expert-search-icon {
    opacity: 0.8;
    color: #00dfd8;
}

.expert-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(15, 25, 45, 0.98);
    border: 1px solid rgba(0, 223, 216, 0.2);
    border-radius: 10px;
    margin-top: 4px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.expert-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0, 223, 216, 0.1);
}

.dropdown-item.selected {
    background: rgba(0, 223, 216, 0.15);
}

.dropdown-item.selected .dropdown-item-text {
    color: #00dfd8;
}

.dropdown-item-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-category {
    font-size: 10px;
    color: rgba(0, 223, 216, 0.6);
    background: rgba(0, 223, 216, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.dropdown-check {
    color: #00dfd8;
    margin-left: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-style: italic;
}


/* ─────────────────────────────────────────────
   已选专家标签
   ───────────────────────────────────────────── */

.selected-experts-area {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(0, 223, 216, 0.2);
    color: #00dfd8;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.selected-experts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 40px;
}

.selected-empty {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-style: italic;
    padding: 10px 0;
    width: 100%;
    text-align: center;
}

.selected-expert-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 223, 216, 0.15);
    border: 1px solid rgba(0, 223, 216, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    animation: tagIn 0.3s ease;
    transition: all 0.2s ease;
}

.selected-expert-tag:hover {
    background: rgba(0, 223, 216, 0.25);
    border-color: rgba(0, 223, 216, 0.5);
}

.tag-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.tag-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 100, 100, 0.2);
    border: none;
    color: rgba(255, 100, 100, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.tag-remove:hover {
    background: rgba(255, 100, 100, 0.4);
    color: #fff;
    transform: rotate(90deg);
}


/* ─────────────────────────────────────────────
   动画
   ───────────────────────────────────────────── */

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

@keyframes tagIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ─────────────────────────────────────────────
   响应式适配
   ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .starry-cover-wrapper {
        width: 95%;
        height: 90%;
    }
    
    .starry-cover-title {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .starry-cover-subtitle {
        font-size: 12px;
    }
    
    .starry-cards-container {
        max-height: calc(100vh - 200px);
    }
    
    .starry-card {
        padding: 16px 20px;
    }
    
    .starry-card-contribution,
    .starry-card-meta,
    .starry-card-remarks {
        padding-left: 0;
    }
    
    .starry-card-header {
        margin-bottom: 8px;
    }
    
    .starry-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .expert-dropdown {
        max-height: 200px;
    }
    
    .dropdown-item {
        padding: 12px 15px;
    }
    
    .selected-experts-list {
        gap: 6px;
    }
    
    .selected-expert-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .tag-text {
        max-width: 150px;
    }
    
    .config-input,
    .config-textarea,
    .config-select {
        font-size: 16px; /* 防止 iOS 缩放 */
    }
}

@media (max-width: 360px) {
    .starry-card-name {
        font-size: 16px;
    }
    
    .starry-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .dropdown-item-text {
        font-size: 12px;
    }
    
    .dropdown-item-category {
        font-size: 9px;
        padding: 1px 6px;
    }
    
    .selected-expert-tag {
        font-size: 10px;
    }
}

/* ─────────────────────────────────────────────
   星空专栏配置导入/导出按钮
   ───────────────────────────────────────────── */
.starry-admin-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}

.btn-starry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-starry-icon:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,1);
}

.btn-starry-icon svg {
    display: block;
}

