﻿/* 全局重置：精简基础样式，适配商务风 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif; /* 适配中文显示，贴近国内站点风格 */
}

body {
    background-color: #f5f7fa; /* 浅灰底，清爽不刺眼（参考ooiam常见底色） */
    color: #333;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏：简约商务风，弱化阴影，突出功能性 */
.nav {
    background: #fff;
    border-radius: 6px; /* 小弧度，更显精致 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* 浅阴影，避免厚重感 */
    padding: 12px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #2c6ed6; /* 顶部蓝色线条，强化品牌感（参考商务站常用设计） */
}

.nav a {
    color: #333;
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #2c6ed6; /* 主色调 hover 变化，统一交互感 */
}

.nav .user-info {
    color: #666;
    font-size: 14px;
}

/* 卡片容器：弱化边框，增强呼吸感 */
.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 22px;
    margin-bottom: 25px;
    border-left: 3px solid #2c6ed6; /* 左侧主色线条，区分模块，增强层次感 */
}

/* 标题样式：精简层级，突出重点 */
h1, h2, h3 {
    color: #333;
    margin-bottom: 18px;
    font-weight: 600;
}

h1 {
    font-size: 22px;
    border-bottom: 1px solid #eee; /* 细边框分隔，避免厚重 */
    padding-bottom: 8px;
    color: #2c6ed6; /* 主标题用主色，强化视觉焦点 */
}

h2 {
    font-size: 18px;
    margin-top: 25px;
}

h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}

/* 表单样式：扁平化设计，提升输入体验 */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
    background-color: #fafbfc; /* 输入框浅灰底，减少刺眼感 */
}

input:focus, select:focus {
    outline: none;
    border-color: #2c6ed6;
    box-shadow: 0 0 0 2px rgba(44, 110, 214, 0.1); /* 淡蓝色焦点框，精致不突兀 */
    background-color: #fff; /* 聚焦时变白，增强交互反馈 */
}

/* 按钮样式：商务风纯色按钮，弱化渐变 */
/* 按钮样式：商务风纯色按钮，弱化渐变 */
.btn {
    display: inline-block;
    padding: 9px 18px;
    background: #2c6ed6; /* 主色按钮，贴近商务站常用蓝色 */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid transparent; /* 预留边框位置，hover 时不抖动 */
}

.btn:hover {
    background: #245abc; /* 按钮加深色，增强反馈 */
    color: #fff;
}

/* 新增：次要按钮样式（用于编辑、目标链接） */

.btn-secondary {
    background: #165DFF; /* 商务风蓝色背景（可根据需求调整色值，如#2c6ed6与主按钮一致） */
    color: #ffffff !important; /* 强制白色文字，确保与蓝色背景对比明显 */
    border: 1px solid #165DFF; /* 边框与背景色一致，增强按钮质感 */
}

.btn-secondary:hover {
    background: #0E42D2; /*  hover时背景加深，保持交互反馈（比主色深1-2个色阶） */
    color: #ffffff !important; /* 悬停时文字仍为白色，避免变色 */
}

/* 原有危险按钮样式 */
.btn-danger {
    background: #e53935;
color: #ffffff !important; /* 强制白色文字，确保与蓝色背景对比明显 */
   
}

.btn-danger:hover {
    background: #c62828;
    color: #ffffff !important; /* 悬停时文字仍为白色，避免变色 */
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 表格样式：清爽线条，易读性优先 */
/* 表格样式：清爽线条，易读性优先 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
}

.table th, .table td {
    padding: 11px 15px;
    text-align: left;
    border-bottom: 1px solid #eee; /* 细边框分隔行 */
}

.table th {
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    border-top: 1px solid #eee; /* 顶部边框，强化表头 */
}

.table tr:hover {
    background: #fafbfc; /* hover 浅灰底，不刺眼 */
}

.table a {
    color: #2c6ed6;
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline; /* 链接 hover 下划线，明确可点击 */
}

/* 新增：表格内的次要按钮样式（强制覆盖链接颜色） */
.table a.btn-secondary {
    color: #fff !important; /* 确保按钮文字是白色，不被表格链接蓝色覆盖 */
    text-decoration: none !important; /* 去除按钮链接的下划线 */
}

.table a.btn-secondary:hover {
    text-decoration: none !important; /*  hover 时也不显示下划线 */
}

/* 提示信息：弱化色彩，增强融入感 */
.alert {
    padding: 12px 15px;
    margin: 18px 0;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 14px;
}

.alert-success {
    background: #f0f9f4;
    color: #2d7857;
    border-color: #c8e6c9;
}

.alert-danger {
    background: #fef4f5;
    color: #a72b23;
    border-color: #f8d7da;
}

/* 链接样式：统一全站链接风格 */
a {
    color: #2c6ed6;
    text-decoration: none;
}

a:hover {
    color: #245abc;
    text-decoration: underline;
}

/* 响应式调整：适配手机，保持简洁 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .nav a {
        margin: 0 8px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th, .table td {
        padding: 8px 10px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .card {
        padding: 18px;
    }
}