/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

/* ===== 侧边栏 ===== */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 220px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e8ecf0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 4px; }

.sidebar-logo {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f0f2f5;
    flex-shrink: 0;
}
.sidebar-logo span {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a6b;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.nav-group {
    margin-bottom: 4px;
}
.nav-group-title {
    font-size: 12px;
    color: #999;
    padding: 16px 20px 8px;
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}
.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.5;
}
.nav-item:hover {
    color: #3b7ddd;
    background: #f5f8ff;
}
.nav-item:hover svg { opacity: 0.8; }
.nav-item.active {
    color: #3b7ddd;
    background: #eef4ff;
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    background: #3b7ddd;
    border-radius: 0 2px 2px 0;
}
.nav-item.active svg { opacity: 1; color: #3b7ddd; }

.nav-arrow {
    width: 14px !important;
    height: 14px !important;
    margin-left: auto;
    transition: transform 0.2s;
}
.sub-open > .nav-arrow { transform: rotate(180deg); }

.nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.nav-sub.sub-open { max-height: 200px; }
.nav-sub.sub-hidden { max-height: 0; }

.nav-sub-item {
    display: block;
    padding: 9px 20px 9px 48px;
    font-size: 13px;
    color: #777;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-sub-item:hover { color: #3b7ddd; background: #f9fbff; }
.nav-sub-item.active { color: #3b7ddd; font-weight: 600; background: #f0f5ff; }

/* ===== 顶部栏 ===== */
.topbar {
    position: fixed;
    top: 0; left: 220px; right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    z-index: 99;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
}
.topbar-company {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.topbar-avatar {
    width: 36px;
    height: 36px;
    background: #3b7ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.topbar-avatar svg { width: 20px; height: 20px; }

.topbar-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 120px;
    padding: 6px 0;
    list-style: none;
    z-index: 200;
}
.topbar-right:hover .topbar-dropdown,
.topbar-dropdown:hover { display: block; }
.topbar-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    right: 0;
    width: 100%;
    height: 15px;
}
.topbar-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: background 0.2s;
}
.topbar-dropdown a:hover { background: #f5f8ff; color: #3b7ddd; }

/* ===== 主内容区 ===== */
.main-wrapper {
    margin-left: 220px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 24px 30px;
}

/* ===== 页面标题栏 ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ===== 统计卡片 ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8ecf0;
    transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.stat-card .stat-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}
.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
}
.stat-card .stat-value.blue { color: #3b7ddd; }
.stat-card .stat-value.green { color: #52c41a; }
.stat-card .stat-value.orange { color: #fa8c16; }
.stat-card .stat-value.red { color: #f5222d; }

/* ===== 快捷操作 ===== */
.quick-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e8ecf0;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}
.quick-action:hover { background: #f5f8ff; }
.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quick-action-icon svg { width: 28px; height: 28px; }
.quick-action-icon.blue { background: #eef4ff; color: #3b7ddd; }
.quick-action-icon.green { background: #e6f7e9; color: #52c41a; }
.quick-action-icon.orange { background: #fff7e6; color: #fa8c16; }
.quick-action-icon.purple { background: #f0e6ff; color: #722ed1; }
.quick-action span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* ===== 内容表格区 ===== */
.content-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
}
.content-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f2f5;
}

/* ===== 通用表格 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    background: #fafbfc;
    border-bottom: 1px solid #f0f2f5;
}
.data-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }

/* ===== 状态标签 ===== */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.tag.success { background: #e6f7e9; color: #52c41a; }
.tag.warning { background: #fff7e6; color: #fa8c16; }
.tag.danger { background: #fff1f0; color: #f5222d; }
.tag.info { background: #eef4ff; color: #3b7ddd; }
.tag.default { background: #f5f5f5; color: #999; }

/* ===== 操作按钮 ===== */
.link-btn {
    font-size: 14px;
    color: #3b7ddd;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.link-btn:hover { opacity: 0.7; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border: 1px solid #e8ecf0;
    transition: all 0.2s;
}
.pagination a:hover { border-color: #3b7ddd; color: #3b7ddd; }
.pagination .active { background: #3b7ddd; color: #fff; border-color: #3b7ddd; }

/* ===== 表单通用 ===== */
.form-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    padding: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-input {
    width: 100%;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: #3b7ddd; box-shadow: 0 0 0 2px rgba(59,125,221,0.1); }
.form-input::placeholder { color: #bbb; }
.form-select {
    width: 100%;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group { flex: 1; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    background: #3b7ddd;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { background: #2d6bc4; }
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: #3b7ddd; color: #3b7ddd; }

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: #3b7ddd; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar-logo span, .nav-group-title, .nav-item span, .nav-arrow { display: none; }
    .nav-item { justify-content: center; padding: 12px; }
    .nav-item svg { margin: 0; }
    .topbar { left: 60px; }
    .main-wrapper { margin-left: 60px; }
}

/* ===== 列表项样式 ===== */
.order-list-item:last-child { border-bottom: none !important; }

/* ===== 旧页面兼容样式 ===== */
/* 让旧的 ddgl/wz1200 等容器在新布局下正常显示 */
.wz1200 {
    width: 100%;
    min-width: auto;
}
.NallDiv {
    width: 100%;
}
.ddgl {
    display: flex;
    gap: 0;
}
.ddgl_right,
.ddgl_right1 {
    float: none;
    width: 100% !important;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    padding: 24px;
    margin-left: 0;
}
.ddgl_left {
    display: none; /* 隐藏旧侧边栏，使用新的 sidebar */
}
.ddgl_tit {
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 20px;
    padding-bottom: 16px;
}
.ddgl_tit h2 {
    font-weight: 600;
    font-size: 18px;
    color: #1a1a2e;
    line-height: normal;
    padding-left: 0;
}
.ddgl_tit h2:before {
    display: none;
}

/* 旧的顶栏隐藏 */
#header {
    display: none !important;
}

/* 旧的面包屑样式 */
.dqwz {
    padding: 0;
    margin-bottom: 16px;
}
.dqwz p {
    font-size: 13px;
    color: #999;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

/* 旧的订单卡片样式 */
.shnrbox {
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.shnrbox:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.shnr_left h3 {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
    line-height: 1.6;
}
.shnr_left p {
    font-size: 13px;
    color: #888;
    padding-top: 8px;
}
.shnr_right p {
    font-size: 13px;
    color: #888;
}
.shnr_right p span {
    color: #f5222d;
    font-weight: 600;
}

/* 旧的按钮样式覆盖 */
.btn3 {
    background: #fa8c16;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    display: inline-block;
}
.btn4 {
    background: #3b7ddd;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    display: inline-block;
}
.btn5 {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    text-decoration: none;
    color: #555;
    display: inline-block;
}
.btnsl {
    background: #3b7ddd;
    color: #fff;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

/* 旧的表单控件 */
.wby2 {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.wby3 {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.wby5 {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

/* 旧的分页 */
.fynr ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}
.fynr li {
    display: inline-block;
}
.fynr a, .fynr span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border: 1px solid #e8ecf0;
}
.fynr .hover2 a {
    background: #3b7ddd;
    color: #fff;
    border-color: #3b7ddd;
}

/* 旧的搜索筛选栏 */
.shnr ul {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
}
.shnr li {
    float: none;
}

/* 旧的企业信息表格 */
.company_table {
    border: none;
    width: 100%;
    border-collapse: collapse;
}
.company_table tr th {
    text-align: right;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    background: #fafbfc;
    padding: 12px 16px;
    border: 1px solid #f0f2f5;
    min-width: 120px;
}
.company_table tr td {
    text-align: left;
    font-size: 14px;
    color: #333;
    padding: 12px 16px;
    border: 1px solid #f0f2f5;
    min-width: 200px;
}
.company_table img {
    max-width: 120px;
    border-radius: 6px;
    cursor: pointer;
}

/* 证件图片容器 */
.sctpbox {
    margin-right: 12px;
    float: left;
}
.sctpbox img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e8ecf0;
}
.xzsca {
    display: inline-block;
    margin-right: 12px;
    text-align: center;
}
.xzsca img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e8ecf0;
}

/* 过期提醒 */
.expire-reminder {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 24px;
}

/* 隐藏旧的 Disnone 类 */
.Disnone { display: none !important; }

/* ===== 旧页面深度兼容 ===== */

/* 隐藏所有旧的侧边栏背景和右侧装饰面板 */
.NleftDiv,
.ddgl_left,
[class*="background:url(http://pingtan"] {
    display: none !important;
}
/* 旧页面的右侧装饰面板（14vw带背景图的ul） */
#wz1200 > .ddgl > div:last-child,
.wz1200 .ddgl > div[style*="14vw"],
.ddgl > div[style*="14vw"] {
    display: none !important;
}

/* 确保旧的 ddgl 容器适配新布局 */
.wz1200 .ddgl,
.NallDiv .ddgl {
    display: flex;
    gap: 0;
}
.wz1200 .ddgl > .ddgl_right,
.NallDiv .ddgl > .ddgl_right {
    flex: 1;
    float: none;
    width: auto !important;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    padding: 24px;
}
/* 隐藏 ddgl 里的旧侧边栏 */
.wz1200 .ddgl > .ddgl_left,
.NallDiv .ddgl > .ddgl_left,
.wz1200 .ddgl > div:first-child[class*="ddgl_left"],
.wz1200 .ddgl > div:first-child img[src*="act"] {
    /* 不隐藏，因为 new_left_tab 现在输出的是 .sidebar */
}

/* 旧页面中的 new_left_tab 输出的 .sidebar 需要在 main-wrapper 里 */
/* 但旧页面没有 main-wrapper，所以 sidebar 需要独立工作 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
}

/* 旧页面中的 topbar 也需要独立工作 */
.topbar {
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
}

/* 旧页面的 ddgl 容器需要 margin-left 来避开侧边栏 */
.wz1200,
.NallDiv {
    margin-left: 220px;
    margin-top: 60px;
    padding: 24px 30px;
    width: auto;
    min-width: auto;
}

/* 旧页面中的 main-wrapper 也适用 */
.main-wrapper {
    margin-left: 220px;
    margin-top: 60px;
}

/* 确保旧的 body 样式不冲突 */
body {
    background: #f0f2f5;
    overflow-x: hidden;
}

/* 旧页面中的 #header 完全隐藏 */
#header,
.header,
.headerbox {
    display: none !important;
}

/* 旧页面中内联的背景图片样式覆盖 */
[style*="background:url(http://pingtan"] {
    background: none !important;
}
[style*="background: url(http://pingtan"] {
    background: none !important;
}
[style*="background:url('http://pingtan"] {
    background: none !important;
}
[style*="background: url('http://pingtan"] {
    background: none !important;
}

/* 旧的 footer 样式 */
#bottomtitle {
    text-align: center;
    padding: 24px 0 12px;
    color: #bbb;
    font-size: 13px;
    margin-top: 20px;
}
#bottomtitle p {
    margin-top: 6px;
    font-size: 13px;
    color: #bbb;
}
#bottomtitle a {
    color: #999;
    text-decoration: none;
}

/* 旧的 lefttab 样式（在 gonggao 等页面中使用） */
#lefttab {
    list-style: none;
    padding: 0;
    margin: 0;
}
#lefttab li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 旧的 shxq/shnrs 列表 */
.shxq {
    width: 100%;
}
.shnrs ul {
    list-style: none;
    padding: 0;
}
.shnrs li {
    margin-bottom: 12px;
}

/* 旧的在线签名等页面的容器 */
.online-box,
.sqxm,
.sqbh_ss {
    width: 100%;
    max-width: none;
}

/* 旧的 wby 系列输入框 */
input[class*="wby"] {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
input[class*="wby"]:focus {
    border-color: #3b7ddd;
    box-shadow: 0 0 0 2px rgba(59,125,221,0.1);
}

/* 旧的 select 样式 */
select.form-control,
select[name] {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    height: 36px;
    padding: 0 28px 0 12px;
    font-size: 14px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: #fff;
}

/* 旧的 layui 相关样式覆盖 */
.layui-layer { font-family: inherit; }
.layui-layer-btn a { font-size: 14px; }

/* ===== nong_apply 等旧表单页面适配 ===== */
/* 旧的 flex 布局容器 */
.addg {
    display: flex;
    gap: 0;
}
.addg_right {
    flex: 1;
    float: none;
    width: auto !important;
    padding: 24px 30px 0 !important;
}

/* 步骤条 */
#toptab {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    padding: 30px 40px !important;
    margin-bottom: 20px;
}
#toptab .active {
    background: #3b7ddd !important;
    color: #fff !important;
}
#toptab .normal {
    border: 1px solid #d9d9d9 !important;
    color: #999 !important;
}
#toptab .tabtext {
    color: #333 !important;
    font-size: 18px !important;
}
#toptab .border {
    background: #e8ecf0 !important;
}

/* 表单容器 */
#formbox {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    padding: 30px 40px !important;
    margin-top: 0 !important;
}
#formitem {
    border-bottom: 1px solid #f0f2f5 !important;
    padding-bottom: 25px !important;
    margin-bottom: 25px;
}
#formitem .title {
    font-size: 18px !important;
    font-weight: 600;
    color: #1a1a2e !important;
    margin-bottom: 20px !important;
}
#formbox .ontitle {
    color: #3b7ddd !important;
    font-size: 14px !important;
}

/* 表单行 */
.follitem {
    margin-bottom: 16px;
}
.formtitle {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    min-width: 80px;
}
.in_right {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* 按钮 */
.sendbtn, .onsendbtn {
    background: #3b7ddd !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0 !important;
    margin-top: 20px !important;
}
.sendbtn:hover, .onsendbtn:hover {
    background: #2d6bc4 !important;
    box-shadow: 0 4px 12px rgba(59,125,221,0.3);
}

/* 签章/删除/查看按钮组 */
.qianbtn, .scbtn, .ckbtn {
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    color: #fff;
    display: inline-block;
    margin-right: 6px;
}
.qianbtn { background: #3b7ddd; }
.scbtn { background: #f5222d; }
.ckbtn { background: #52c41a; }

/* 附件上传区域 */
.fjscbox {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #fafbfc;
}
.fjscbox:hover {
    border-color: #3b7ddd;
}
.fjscbox img {
    max-width: 120px;
    border-radius: 6px;
}

/* 项目信息框 */
#xmbox {
    border: 1px solid #3b7ddd !important;
    border-radius: 8px !important;
    padding: 24px 30px !important;
    margin-bottom: 30px !important;
}
#xmtitle {
    font-size: 18px !important;
    font-weight: 600;
    color: #1a1a2e !important;
}

/* 开户类型选择 */
#khlx {
    display: flex;
    gap: 20px;
    margin: 16px 0;
}

/* 旧的警告文字颜色修正 */
.redcolor, .color_red, [style*="color: red"], [style*="color:red"] {
    color: #f5222d !important;
}
.bluecolor, .color_blue, [style*="color: #1890FF"], [style*="color:#1890FF"], [style*="color: #1e88e5"], [style*="color:#1e88e5"] {
    color: #3b7ddd !important;
}

/* 旧的背景色修正 */
[style*="background-color: #1890FF"], [style*="background-color:#1890FF"],
[style*="background: #1890FF"], [style*="background:#1890FF"],
[style*="background-color: #1e88e5"], [style*="background-color:#1e88e5"] {
    background-color: #3b7ddd !important;
}

/* 确保旧页面的 body 不重复设置背景 */
body {
    background: #f0f2f5;
    min-height: 100vh;
}
