/* InferTread 自定义样式 */

/* 基础 */
body {
    background-color: #0f0f1a;
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 像素风装饰线 */
.pixel-border {
    box-shadow:
        inset 0 0 0 2px rgba(245, 158, 11, 0.15),
        0 0 0 1px rgba(245, 158, 11, 0.05);
}

.pixel-border:hover {
    box-shadow:
        inset 0 0 0 2px rgba(245, 158, 11, 0.3),
        0 0 0 1px rgba(245, 158, 11, 0.1),
        0 4px 20px rgba(245, 158, 11, 0.08);
}

/* 卡片 hover 暖色效果 */
.card-hover {
    transition: all 0.2s ease;
}
.card-hover:hover {
    background-color: #1a1a2e;
    transform: translateY(-1px);
}

/* 导航链接 */
.nav-link {
    position: relative;
    padding: 0.25rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 分段控制 */
.segmented-control {
    display: inline-flex;
    background: #1f2937;
    border-radius: 0.5rem;
    padding: 3px;
    gap: 2px;
}
.segmented-control button {
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.segmented-control button:hover {
    color: #d1d5db;
}
.segmented-control button.active {
    background: #374151;
    color: #f59e0b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 编辑器标签页 */
.editor-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.editor-tab:hover {
    color: #d1d5db;
}
.editor-tab.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

/* 推演日志 */
.story-log {
    scroll-behavior: smooth;
}
.story-entry {
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 选项卡片 */
.choice-card {
    transition: all 0.15s ease;
    cursor: pointer;
}
.choice-card:hover {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateX(4px);
}

/* 输入框焦点 */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* 加载动画 */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* 世界卡片 */
.world-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}
.world-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}
.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.4;
}

/* 模态框背景 */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* 像素风标题 */
.pixel-title {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
