/* ============================================
   AGENT ERA - 精致游戏UI
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(102, 126, 234, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: 
        radial-gradient(ellipse at top, #1a1a3e 0%, transparent 50%),
        radial-gradient(ellipse at bottom, #0f3460 0%, transparent 50%),
        var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 游戏容器 */
.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 12px;
    gap: 12px;
}

/* ============================================
   顶部导航栏
   ============================================ */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    box-shadow: var(--shadow-sm);
}

/* Logo */
.nav-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 时间显示 */
.nav-center .time-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.time-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.time-svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.time-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.time-main {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.time-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* 右侧资源 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.resource-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.resource-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: var(--radius-sm);
}

.resource-icon.gem {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.resource-icon.coin {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.resource-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.resource-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.resource-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* AGENT 数量 */
.agent-count-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.agent-count-nav:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.agent-icon-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: var(--radius-sm);
    background: var(--info-gradient);
}

.agent-info-nav {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.agent-value-nav {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.agent-label-nav {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 用户头像 */
.user-avatar {
    position: relative;
}

.avatar-ring {
    width: 48px;
    height: 48px;
    padding: 3px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-secondary);
    border-radius: 50%;
    animation: rotate 10s linear infinite reverse;
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    display: flex;
    flex: 1;
    gap: 12px;
    overflow: hidden;
}

/* 面板通用样式 */
.left-panel,
.right-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow-y: auto;
}

.center-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* 领主信息 */
.lord-section {
    padding: 20px;
}

.lord-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.lord-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.lord-avatar {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.lord-info {
    flex: 1;
}

.lord-level {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lord-level span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lord-exp-bar {
    height: 12px;
    background: var(--bg-card-hover);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.lord-exp-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.lord-exp-text {
    font-size: 12px;
    color: var(--text-muted);
}

.lord-bonuses {
    display: flex;
    gap: 16px;
    justify-content: space-around;
}

.bonus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex: 1;
}

.bonus-icon {
    font-size: 28px;
}

.bonus-label {
    font-size: 12px;
    color: var(--text-muted);
}

.bonus-value {
    font-size: 18px;
    font-weight: 700;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.panel-icon {
    font-size: 20px;
}

.panel-badge {
    padding: 4px 12px;
    background: var(--success-gradient);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 菜单按钮 */
.menu-section {
    margin-top: 8px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    width: 100%;
    color: var(--text-primary);
}

.menu-btn:hover {
    transform: translateX(4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.menu-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
}

.menu-btn.active:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.menu-btn .btn-icon {
    font-size: 24px;
}

.menu-btn .btn-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

/* 空视图 */
.empty-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   左侧面板 - Agent控制台
   ============================================ */
/* Agent状态卡片 */
.agent-status-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.status-visual {
    margin-bottom: 20px;
}

.status-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 99;
    transition: stroke-dashoffset 0.5s ease;
}

/* 添加渐变定义 */
.agent-status-card .ring-svg::before {
    content: '';
}

/* 我们需要在JS中添加SVG渐变，或者直接用CSS方式 */
.status-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-main {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.countdown-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.pulse {
    background: #38ef7d;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.status-text {
    color: var(--text-secondary);
}

/* 动作时间线 */
.actions-section {
    margin-top: 8px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.title-icon {
    font-size: 16px;
}

.action-timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
}

.action-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 36px;
    bottom: -8px;
    width: 2px;
    background: var(--border-color);
}

.action-item:last-child::before {
    display: none;
}

.action-item.completed {
    opacity: 0.7;
}

.action-item.active {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.action-item.pending {
    opacity: 0.5;
}

.action-marker {
    position: relative;
    z-index: 1;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid var(--bg-secondary);
}

.action-item.completed .marker-dot {
    background: #38ef7d;
}

.action-item.active .marker-dot {
    background: #fbbf24;
    animation: pulse 1.5s ease-in-out infinite;
}

.action-content {
    flex: 1;
}

.action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.action-icon {
    font-size: 16px;
}

.action-name {
    font-size: 14px;
    font-weight: 500;
}

.action-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   中央面板 - 世界视图
   ============================================ */
/* 视图切换 */
.view-switcher {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card-hover);
}

.view-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.view-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.view-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 18px;
}

/* 视图内容 */
.view-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: none;
}

.view-content.active {
    display: block;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.stat-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-decoration.blue {
    background: var(--info-gradient);
}

.stat-decoration.purple {
    background: var(--warning-gradient);
}

.stat-decoration.orange {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.stat-icon-wrapper.blue {
    background: var(--info-gradient);
}

.stat-icon-wrapper.purple {
    background: var(--warning-gradient);
}

.stat-icon-wrapper.orange {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.stat-icon {
    font-size: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.stat-trend.up {
    color: #38ef7d;
}

.stat-trend.down {
    color: #f87171;
}

.stat-trend.neutral {
    color: var(--text-muted);
}

/* 事件流 */
.events-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.header-icon {
    font-size: 18px;
}

.header-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.event-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.event-card.new {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    border-color: rgba(56, 239, 125, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.event-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.event-icon-wrapper.success {
    background: var(--success-gradient);
}

.event-icon-wrapper.info {
    background: var(--info-gradient);
}

.event-icon-wrapper.warning {
    background: var(--warning-gradient);
}

.event-icon {
    font-size: 22px;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.event-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.event-expand-icon {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}

.event-card.expanded {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

.event-ai-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-left: 60px;
}

.ai-section {
    margin-bottom: 12px;
}

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

.ai-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ai-content {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

/* ============================================
   右侧面板 - 指挥中心
   ============================================ */
.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* 战略方向选择 */
.direction-card {
    margin-bottom: 8px;
}

.direction-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.direction-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.direction-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.direction-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.4);
}

.dir-icon {
    font-size: 24px;
}

.dir-name {
    font-size: 12px;
    font-weight: 500;
}

.dir-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-gradient);
    border-radius: 50%;
    font-size: 10px;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-normal);
}

.direction-btn.active .dir-check {
    opacity: 1;
    transform: scale(1);
}

/* 快速操作按钮 */
.quick-actions {
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    color: var(--text-primary);
}

.quick-btn:hover {
    transform: translateX(4px);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.quick-btn.primary {
    background: var(--primary-gradient);
    border-color: transparent;
}

.quick-btn.primary:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 22px;
}

.btn-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.btn-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.quick-btn.primary .btn-hint {
    color: rgba(255, 255, 255, 0.85);
}

/* 影响力条 */
.influence-section {
    margin-bottom: 8px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.influence-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.header-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.influence-track {
    height: 10px;
    background: var(--bg-card-hover);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.influence-fill {
    height: 100%;
    background: var(--warning-gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.influence-tips {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 系统状态 */
.system-status {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.status-label {
    font-size: 12px;
    color: var(--text-muted);
}

.status-value {
    font-size: 13px;
    font-weight: 500;
}

.status-value.online {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #38ef7d;
}

.status-value.online .status-dot {
    width: 8px;
    height: 8px;
    background: #38ef7d;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   底部日志面板
   ============================================ */
.log-panel {
    height: 160px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border-color);
}

.log-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.log-icon {
    font-size: 16px;
}

.log-controls {
    display: flex;
    gap: 8px;
}

.log-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.log-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.log-content {
    flex: 1;
    padding: 12px 20px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.log-entry {
    display: flex;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.log-time {
    color: var(--text-muted);
    min-width: 70px;
}

.log-source {
    color: var(--text-secondary);
    min-width: 100px;
    font-weight: 500;
}

.log-message {
    flex: 1;
    color: var(--text-primary);
}

.log-entry.info .log-message {
    color: #60a5fa;
}

.log-entry.success .log-message {
    color: #38ef7d;
}

.log-entry.warning .log-message {
    color: #fbbf24;
}

.log-entry.error .log-message {
    color: #f87171;
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .left-panel,
    .right-panel {
        width: 260px;
    }
}

@media (max-width: 1000px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
        height: 300px;
    }
}

/* ============================================
   游戏介绍视图
   ============================================ */
.game-intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.intro-header {
    text-align: center;
    margin-bottom: 20px;
}

.intro-title {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 20px;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-normal);
    display: flex;
    gap: 16px;
}

.intro-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.intro-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.intro-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: var(--radius-md);
}

.intro-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.intro-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.intro-footer {
    width: 100%;
    max-width: 900px;
}

.intro-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    border: 1px solid rgba(56, 239, 125, 0.2);
    border-radius: var(--radius-lg);
}

.tip-icon {
    font-size: 20px;
}

.intro-tip span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* NPC列表 */
.npc-section {
    margin-bottom: 20px;
}

.npc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.npc-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.npc-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.npc-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.npc-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.npc-info {
    flex: 1;
}

.npc-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.npc-job {
    font-size: 12px;
    color: var(--text-muted);
}

.npc-attributes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.npc-attr {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.attr-name {
    font-size: 11px;
    color: var(--text-muted);
}

.attr-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.npc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.npc-lv {
    padding: 4px 12px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: white;
    font-weight: 600;
}

@media (max-width: 800px) {
    .intro-content {
        grid-template-columns: 1fr;
    }
}
