/* static/css/landing.css */
:root {
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-sub: #a1a1aa;
    --glow-orange: rgba(255, 100, 0, 0.15);
    --glow-blue: rgba(0, 100, 255, 0.15);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 20% 40%, var(--glow-orange) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, var(--glow-blue) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 移除 Top Bar */
.top-bar { display: none; }

/* 返回按钮图片样式 */
.back-icon-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 200;
}
.back-icon-btn:hover { transform: scale(1.1); }
.back-icon-btn img { width: 100%; height: 100%; object-fit: contain; }

/* 通用磨砂卡片 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

/* === 登录页 === */
.login-box { width: 380px; padding: 50px 40px; position: relative; }
.login-title { font-size: 24px; margin-bottom: 30px; color: #ddd; font-weight: normal; text-align: center; }

.input-group { width: 100%; margin-bottom: 20px; }
.input-label { font-size: 12px; color: var(--text-sub); margin-bottom: 8px; display: block; }
.glass-input {
    width: 100%; padding: 14px 16px; background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border); border-radius: 30px;
    color: white; outline: none; font-size: 14px; box-sizing: border-box;
    transition: border 0.3s;
}
.glass-input:focus { border-color: white; background: rgba(0,0,0,0.5); }

/* 节点选择行 */
.node-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.node-btn {
    width: 46px; height: 46px; /* 与输入框等高 */
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%; /* 圆形按钮 */
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}
.node-btn:hover { background: rgba(255,255,255,0.2); }
.node-btn img { width: 24px; height: 24px; }

.btn-primary {
    width: 100%; padding: 14px; margin-top: 10px; border-radius: 30px;
    border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.1);
    color: white; cursor: pointer; transition: all 0.3s; font-size: 16px;
}
.btn-primary:hover { background: rgba(255, 255, 255, 0.2); }

/* === 节点设置弹窗 === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 999;
    display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal-box {
    width: 400px; background: #1a1a1a; border: 1px solid #333; border-radius: 20px; padding: 30px;
    box-shadow: 0 50px 100px black; position: relative;
}
.modal-close { position: absolute; top: 20px; right: 20px; color: #888; cursor: pointer; font-size: 24px; }
.node-list-item { 
    display: flex; justify-content: space-between; padding: 10px; 
    border-bottom: 1px solid #333; color: #ddd; font-size: 14px; align-items: center;
}

/* === Dashboard (一级界面) === */
.dash-grid { display: flex; gap: 30px; }
.dash-card { width: 260px; height: 380px; padding: 40px 20px; justify-content: space-between; text-align: center; cursor: pointer; }
.dash-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }

/* 图片图标 */
.dash-img { width: 170px; height: 170px; margin-bottom: 10px; object-fit: contain; }
.dash-h3 { font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.dash-p { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.btn-pill { padding: 8px 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.15); border: none; color: white; margin-top: auto; }

/* === Category (二级界面) === */
.cat-container { display: flex; gap: 40px; }
.cat-card { width: 320px; padding: 40px; min-height: 480px; }
.cat-img { width: 2100px; height: 200px; margin-bottom: 20px; object-fit: contain; }

/* 居中核心代码 */
.cat-btn-group {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 按钮水平居中 */
}

.cat-btn {
    width: 80%; /* 按钮宽度控制 */
    padding: 16px; margin-bottom: 15px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    border-radius: 30px; color: #ccc; text-align: center; cursor: pointer;
    text-decoration: none; display: block; font-size: 14px;
}
.cat-btn:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.5); }