/* style.css - 最终满血版 V11.5 */
:root {
    --ios-blue: #007AFF;
    --ios-red: #FF3B30;
    --ios-green: #34C759;
    --ios-gold: #FF9500;
    --ios-bg: #F2F2F7;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-heavy: rgba(255, 255, 255, 0.85);
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* 全局重置 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; 
}

body { 
    background: var(--ios-bg); 
    color: #1d1d1f; 
    height: 100vh; 
    width: 100vw; 
    overflow: hidden; 
}

/* 弥散背景逻辑 - 还原精确颜色 */
.diffuse-bg {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1;
    background: radial-gradient(at 0% 0%, hsla(253,16%,90%,1) 0, transparent 50%), 
                radial-gradient(at 100% 100%, hsla(225,39%,90%,1) 0, transparent 50%);
}

/* 苹果风按钮 - 还原平滑过渡函数 */
.btn-ios {
    padding: 14px 28px; 
    border-radius: 14px; 
    border: none; 
    font-size: 16px; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}
.btn-ios:active { transform: scale(0.96); opacity: 0.8; }
.btn-primary { background: var(--ios-blue); color: white; box-shadow: 0 4px 12px rgba(0,122,255,0.3); }
.btn-secondary { background: rgba(0,0,0,0.05); color: #1d1d1f; }
.btn-danger { background: var(--ios-red); color: white; }

/* 磨砂卡片 */
.glass-card {
    background: var(--glass); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4); 
    border-radius: 20px; 
    box-shadow: var(--shadow);
}

/* 输入框 */
.input-ios {
    width: 100%; 
    padding: 16px; 
    border-radius: 12px; 
    border: 1px solid rgba(0,0,0,0.1);
    background: white; 
    font-size: 17px; 
    outline: none; 
    transition: all 0.2s ease;
}
.input-ios:focus { 
    border-color: var(--ios-blue); 
    box-shadow: 0 0 0 4px rgba(0,122,255,0.1); 
}

/* 侧边栏武器项 - V11.1 锁定逻辑专用 */
.weapon-item {
    padding: 15px; 
    border-radius: 12px; 
    background: white; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.weapon-item.active { 
    border-color: var(--ios-blue); 
    background: #F0F8FF; 
}
.weapon-item.locked { 
    opacity: 0.4; 
    filter: grayscale(1); 
    cursor: not-allowed; 
    background: #f2f2f7; 
}

/* 导航项 */
.nav-item {
    padding: 15px; 
    border-radius: 12px; 
    cursor: pointer; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color:#555; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.nav-item.active { 
    background: white; 
    color: var(--ios-blue); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

/* 研发矩阵七层专用 */
.tier-card { 
    position: relative; 
    padding: 25px; 
    border-radius: 20px; 
    background: var(--glass-heavy); 
    margin-bottom: 35px; 
    border: 1px solid rgba(0,0,0,0.05); 
}
.tier-watermark { 
    position: absolute; 
    right: 20px; 
    top: -10px; 
    font-size: 60px; 
    font-weight: 900; 
    color: rgba(0,0,0,0.03); 
    font-style: italic; 
    pointer-events: none; 
}
.tech-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 15px; 
    margin-top: 20px; 
}
.tech-card { 
    padding: 20px; 
    border-radius: 18px; 
    background: white; 
    border: 1px solid rgba(0,0,0,0.05); 
    text-align: center; 
    box-shadow: var(--shadow);
}
.node-locked { 
    filter: grayscale(1) opacity(0.4); 
    cursor: not-allowed; 
    pointer-events: none;
}

/* 排行榜专用 */
.rank-item {
    display: flex; 
    align-items: center; 
    padding: 16px; 
    background: white; 
    border-radius: 16px; 
    margin-bottom: 10px; 
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rank-num { width: 40px; font-size: 20px; font-weight: 800; font-style: italic; color: #ccc; }
.gold { color: #FFD700; } 
.silver { color: #C0C0C0; } 
.bronze { color: #CD7F32; }

/* 战斗页面 HUD 增量 */
.hud-pill {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 24px; 
    border-radius: 99px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-weight: 700; 
    color: #1d1d1f; 
    font-size: 18px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}

[v-cloak] { display: none; }

/* 动画库 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}