* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
    background: #0f0c29; 
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e0e0e0; 
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; }

/* 头部导航 */
.header {
    background:#0d1117;
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header .logo { 
    font-size: 24px; 
    font-weight: bold; 
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header .nav-right { display: flex; gap: 15px; align-items: center; }
.header .credits { 
    background: rgba(0,210,255,0.2); 
    padding: 8px 20px; 
    border-radius: 20px; 
    font-weight: bold;
    color: #00d2ff;
}
.header .btn { 
    background: rgba(255,255,255,0.1); 
    padding: 8px 20px; 
    border-radius: 20px; 
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}
.header .btn:hover { 
    background: rgba(255,255,255,0.2); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 布局 */
.container { display: flex; min-height: calc(100vh - 70px); }

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: #0d1117;
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.1);
}
.sidebar h3 { 
    margin: 30px 0 10px 0; 
    color: #00d2ff; 
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar a { 
    display: block; 
    padding: 12px 15px; 
    margin-bottom: 5px; 
    border-radius: 8px; 
    transition: all 0.3s;
    background: rgba(255,255,255,0.02);
}
.sidebar a:hover { 
    background: rgba(0,210,255,0.1); 
    transform: translateX(5px);
}
.sidebar a.active { 
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
    box-shadow: 0 5px 15px rgba(0,210,255,0.3);
}

/* 主内容区 */
.main-content { 
    flex: 1; 
    padding: 30px; 
    overflow-y: auto;
    background: rgba(0,0,0,0.1);
}
.main-content h1 { 
    margin-bottom: 30px; 
    color: #fff;
    font-size: 28px;
}

/* 统计卡片 */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px; 
}
.stat-card { 
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 25px; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(0,210,255,0.3);
}
.stat-card h3 { 
    color: #00d2ff; 
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
}
.stat-card .number { 
    font-size: 36px; 
    font-weight: bold; 
    color: #fff;
}

/* 表格 */
.data-table { 
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1);
}
table { width: 100%; border-collapse: collapse; }
th { 
    background: rgba(0,210,255,0.2); 
    color: white; 
    padding: 15px; 
    text-align: left;
    font-weight: 600;
}
td { 
    padding: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e0e0e0;
}
tr:hover { background: rgba(255,255,255,0.05); }

/* 按钮 */
.btn, .btn-primary, .btn-small, .btn-danger, .btn-success {
    padding: 10px 20px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-primary { 
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
}
.btn-success { 
    background: linear-gradient(45deg, #00b09b, #96c93d);
    color: white;
}
.btn-small { 
    background: rgba(0,210,255,0.2); 
    color: white; 
    padding: 6px 12px; 
    font-size: 12px;
}
.btn-danger { 
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white; 
    padding: 6px 12px; 
}
.btn:hover, .btn-primary:hover, .btn-small:hover, .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 表单 */
.form-box, .generator-box {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 30px; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}
input[type="text"], input[type="password"], input[type="url"], input[type="number"], select, textarea {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 8px; 
    font-size: 16px;
    background: rgba(0,0,0,0.2);
    color: #e0e0e0;
}
input::placeholder { color: rgba(255,255,255,0.3); }

/* 提示框 */
.success { 
    background: rgba(40, 167, 69, 0.2); 
    color: #d4edda; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid rgba(40, 167, 69, 0.3);
}
.error { 
    background: rgba(220, 53, 69, 0.2); 
    color: #f8d7da; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid rgba(220, 53, 69, 0.3);
}
.info { 
    background: rgba(0, 123, 255, 0.2); 
    color: #cce5ff; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* 结果展示 */
.result-box { 
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 30px; 
    border-radius: 15px; 
    margin-top: 20px; 
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.result-box img { 
    max-width: 100%; 
    max-width: 300px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.result-box input { 
    width: 100%; 
    padding: 12px; 
    margin: 15px 0; 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    color: #e0e0e0;
}

/* 弹窗 */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    z-index: 1000; 
}
.modal-content { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: rgba(30, 30, 50, 0.9);
    backdrop-filter: blur(20px);
    padding: 30px; 
    border-radius: 15px; 
    width: 400px; 
    border: 1px solid rgba(255,255,255,0.1);
}
.close { 
    position: absolute; 
    right: 15px; 
    top: 15px; 
    font-size: 28px; 
    cursor: pointer; 
    color: #999;
}
.close:hover { color: #fff; }

/* 登录页 */
.login-body { 
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.login-box { 
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    padding: 40px; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.1);
    width: 400px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.login-box h2 { 
    color: white; 
    text-align: center; 
    margin-bottom: 30px; 
    font-size: 28px;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* 备注单元格样式 */
.note-cell {
    position: relative;
    min-width: 180px;
}
.note-text {
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.note-input {
    vertical-align: middle;
    margin-right: 5px;
}
/* 图片放大模态框 */
#imageModal .modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

#modalImage {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* 移除之前的.modal样式冲突 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow: auto;
}