/* 辞安易游授权系统 - EasyWeb 模板样式 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(to right, #D2E9FF, #FFECEC);
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    min-height: 100vh;
}
a { color: #1E9FFF; text-decoration: none; }
a:hover { color: #009688; }

/* ===== 主容器 ===== */
.site-content {
    margin: 0 auto;
    width: 60%;
    max-width: 800px;
    min-height: 100vh;
    padding: 8px 0 20px;
}
@media (max-width: 769px) {
    .site-content { margin: 0 auto; width: 100%; padding: 8px 10px 20px; }
}

/* ===== Logo区域 ===== */
.logo-box { text-align: center; padding: 10px 0 8px; }
.logo-box img {
    width: 55px; height: 55px; border-radius: 10em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); object-fit: cover;
}
.logo-box .site-title { font-size: 20px; font-weight: bold; color: #333; margin-top: 4px; }

/* ===== 导航栏：纯HTML两排固定布局，不滚动，无下拉 ===== */
.nav-tabs {
    margin-bottom: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 4px 6px;
}
.nav-tabs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 3px;
}
.nav-tabs ul li {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}
.nav-tabs ul li a {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    color: #555;
    border-radius: 6px;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
}
.nav-tabs ul li a:hover {
    background: #e8f4ff;
    color: #1E9FFF;
}
.nav-tabs ul li a.active {
    color: #fff;
    font-weight: bold;
    background: #1E9FFF;
    border-radius: 6px;
}

@media (max-width: 769px) {
    .nav-tabs ul { gap: 2px; }
    .nav-tabs ul li a { padding: 6px 9px; font-size: 12px; }
}

/* ===== 卡片 ===== */
.layui-card {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    border: none;
    overflow: hidden;
    background: #fff;
}
.layui-card .layui-card-header {
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    padding: 12px 15px;
}
.layui-card .layui-card-body { padding: 15px; }

/* ===== 表单 ===== */
.layui-form-item { margin-bottom: 12px; }
.layui-form-label { width: 80px; padding: 9px 10px; font-weight: normal; color: #666; }
.layui-input-block { margin-left: 95px; min-height: 36px; }
.layui-input, .layui-select { border-radius: 4px; height: 36px; line-height: 36px; }

/* ===== 按钮 ===== */
.layui-btn-radius { border-radius: 20px !important; }
.layui-btn-fluid { width: 100%; }

/* ===== 查询结果 ===== */
.result-box {
    display: none; margin-top: 15px; padding: 15px;
    border-radius: 8px; font-size: 14px; word-break: break-all; line-height: 1.8;
}
.result-box.success { background: #f0f9eb; border: 1px solid #e1f3d8; color: #67c23a; }
.result-box.error { background: #fef0f0; border: 1px solid #fde2e2; color: #f56c6c; }
.result-box.warning { background: #fdf6ec; border: 1px solid #faecd8; color: #e6a23c; }

/* ===== 公告 ===== */
.notice-card .notice-item {
    padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 13px; color: #666;
}
.notice-card .notice-item:last-child { border-bottom: none; }
.notice-card .notice-time { float: right; color: #999; font-size: 12px; }

/* 公告铃铛图标 - 火车移动3px动画 */
.notice-bell {
    display: inline-block;
    animation: bell-shake 1.5s ease-in-out infinite;
    transform-origin: center top;
}
@keyframes bell-shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    15% { transform: translateX(3px) rotate(5deg); }
    30% { transform: translateX(-3px) rotate(-5deg); }
    45% { transform: translateX(3px) rotate(3deg); }
    60% { transform: translateX(-3px) rotate(-3deg); }
    75% { transform: translateX(0) rotate(0deg); }
}

/* ===== 友情链接 ===== */
.links-box { text-align: center; padding: 5px 0; }
.links-box a {
    display: inline-block; margin: 4px 8px; padding: 5px 14px;
    background: #f5f5f5; border-radius: 15px; font-size: 13px; color: #666;
    transition: all 0.3s;
}
.links-box a:hover { background: #1E9FFF; color: #fff; }

/* ===== 版权 ===== */
.github-badge {
    display: inline-block; border-radius: 4px; overflow: hidden;
    font-size: 12px; line-height: 20px; margin: 3px; vertical-align: middle;
}
.github-badge .badge-subject { display: inline-block; background: #4d4d4d; color: #fff; padding: 2px 8px; }
.github-badge .badge-value { display: inline-block; background: #007ec6; color: #fff; padding: 2px 8px; }
.github-badge a { color: #fff; }
.github-badge .bg-green { background: #3bca6e; }

/* ===== 底部 ===== */
.footer { text-align: center; padding: 15px 0; color: #999; font-size: 13px; }
.footer a { color: #999; }
.footer a:hover { color: #1E9FFF; }

/* ===== 响应式 ===== */
@media (max-width: 769px) {
    .layui-form-label { width: 100%; float: none; text-align: left; padding: 5px 0; }
    .layui-input-block { margin-left: 0 !important; }
    .layui-input, .layui-select { width: 100% !important; }
    .logo-box img { width: 45px; height: 45px; }
    .logo-box .site-title { font-size: 18px; }
    .logo-box { padding: 6px 0 4px; }
}

/* ===== 表格 ===== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== 状态标签 ===== */
.status-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.status-tag.active { background: #e8f5e9; color: #4caf50; }
.status-tag.inactive { background: #ffebee; color: #f44336; }
.status-tag.pending { background: #fff3e0; color: #ff9800; }

/* ===== 加载 ===== */
.loading-spin { text-align: center; padding: 20px; color: #999; }