/* ======================================
   AI短剧ERP 全局通用样式 V1.0
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background: #f5f7fa;
    font-size: 14px;
    color: #333;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 16px;
}
.card-body {
    padding: 20px;
}

/* 登录页 */
.login-body {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-card {
    max-width: 480px;
    width: 100%;
    padding: 50px 40px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.login-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 35px;
    color: #2c3e50;
}
.form-item { margin-bottom: 24px; }
.form-item label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}
.form-item input {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border 0.2s;
}
.form-item input:focus { border-color: #3498db; }
.btn {
    width: 100%;
    height: 50px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background: #34495e; }
.tip {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    height: 20px;
}

/* 顶部导航 + 下拉菜单 */
.top-wrap {
    height: 46px;
    background: #2c3e50;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.menu-container { background: #2c3e50; color: #fff; padding: 0; }
.menu-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-item { position: relative; margin: 0; }
.menu-link {
    display: block;
    padding: 12px 18px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    white-space: nowrap;
}
.menu-link:hover { background: #34495e; color: #3498db; }
.menu-link.active { background: #3498db; color: #fff; }
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #34495e;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    border-radius: 0 0 6px 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.sub-menu > li { margin: 0; padding: 0; }
.sub-menu .menu-link { padding: 10px 16px; }
.sub-menu .menu-link.logout-link { color: #ff6b6b; }
.menu-item:hover > .sub-menu { display: block; }
.menu-divider {
    height: 1px;
    background: #2c3e50;
    margin: 0;
}
.user-info-item {
    padding: 8px 16px;
    font-size: 12px;
    color: #bdc3c7;
    line-height: 1.4;
    white-space: nowrap;
}

/* 主框架布局 */
.main-container {
    display: flex;
    margin-top: 46px;
    height: calc(100vh - 46px);
}
.left-tabs {
    width: 220px;
    background: #fff;
    border-right: 1px solid #e4e7ed;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tab-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}
.system-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    padding: 12px 0 18px 0;
    border-bottom: 1px solid #e4e7ed;
    margin-bottom: 12px;
}
.close-all-tabs {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.close-all-tabs:hover {
    background: #fff0f0;
    border-color: #ff4444;
    color: #ff4444;
}
.tab-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: #f5f7fa;
    border-radius: 5px;
    margin-bottom: 7px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.tab-item.active {
    background: #2d8cf0;
    color: #fff;
}
.tab-close {
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
    font-size: 12px;
}
.copyright-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.right-iframe {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}

/* 修改密码弹窗 */
.pwd-modal-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
}
.pwd-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}
.pwd-modal-header {
    padding: 16px 20px;
    background: #2c3e50;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pwd-modal-close {
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.pwd-modal-body { padding: 24px 20px; }
.pwd-modal-footer {
    padding: 16px 20px;
    background: #f5f5f5;
    text-align: right;
}
.pwd-form-item { margin-bottom: 18px; }
.pwd-form-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.pwd-form-item input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
}
.pwd-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.pwd-btn-cancel {
    background: #eee;
    color: #666;
    margin-right: 10px;
}
.pwd-btn-submit { background: #2d8cf0; color: #fff; }
.pwd-tip {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}
.pwd-tip.error {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fbc4c4;
    display: block;
}
.pwd-tip.success {
    background: #f0f9ff;
    color: #67c23a;
    border: 1px solid #b3e19d;
    display: block;
}

/* 全屏按钮 */
.fullscreen-btn {
    background: transparent;
    border: none;
    color: #ecf0f1;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 10px;
    transition: background 0.3s;
}
.fullscreen-btn:hover {
    background: #34495e;
    color: #3498db;
}



/* 精致系统蓝色按钮 和左侧按钮风格统一 */
.btn-add {
    display: inline-block;
    background-color: #409eff;
    color: #fff !important;
    padding: 7px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 18px;
    border: none;
    box-shadow: 0 1px 3px rgba(64,158,255,0.2);
}
.btn-add:hover {
    background-color: #337ecc;
}

/* 标准全边框精致表格 */
.table-data {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
}
/* 表头样式 */
.table-data th {
    border: 1px solid #e5e7eb;
    padding: 12px;
    background: #f5f7fa;
    font-weight: normal;
}
/* 单元格样式 */
.table-data td {
    border: 1px solid #e5e7eb;
    padding: 12px;
}

/* 对齐公共类 */
.text-left { text-align: left; }
.text-center { text-align: center; }

/* 状态文字 */
.text-enable { color: #67c23a; }
.text-disable { color: #f56c6c; }

/* 传统操作链接 标准配色 */
.link-edit {
    color: #409eff;
    text-decoration: none;
    margin-right: 10px;
}
.link-del {
    color: #f56c6c;
    text-decoration: none;
}








/* 以下为 增量差异样式 直接追加即可 */

/* 表单必填红星 */
.form-item label .required {
    color: red;
}

/* textarea、select 统一样式兼容 */
.form-item textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
    height: auto;
    padding: 10px 15px;
}
.form-item select {
    height: 46px;
}

/* 返回按钮 新版适配 */
.btn-back {
    display: inline-block;
    padding: 7px 22px;
    background: #6c757d;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    text-decoration: none;
}
.btn-back:hover {
    background: #5a6268;
}

/* 规则提醒 新版主题色适配 */
.rule-reminder {
    margin: 30px auto;
    padding: 15px;
    border-left: 4px solid #409eff;
    background: #f8f9fa;
    border-radius: 4px;
}
.rule-reminder h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 15px;
}
.rule-reminder ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 分类卡片 新版边框+阴影适配 */
.category-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
}
.category-card {
    width: calc(16.67% - 20px);
    min-width: 140px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.category-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-color: #409eff;
}
.category-card i {
    font-size: 36px;
    margin-bottom: 15px;
    color: #409eff;
}
.category-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
}
.category-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 分类导航 新版激活色适配 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.category-nav a {
    padding: 6px 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.category-nav a.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}
.category-nav a span {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* 检索栏 兼容保留 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.search-bar span {
    color: #333;
    font-size: 14px;
}

/* 状态文字颜色类 新增 */
.text-enable { color: #67c23a; }
.text-disable { color: #f56c6c; }








