/* d:\XAMpp\htdocs\view\css\cfstyle.css */

:root {
    --primary-color: #1890ff;
    --hover-color: #40a9ff;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --nav-bg: #001529;
    --nav-text: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* 主体内容区域 */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--hover-color);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.message.success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    display: block;
}

.message.error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    display: block;
}

.note {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============ 承包合同变更申请表 ============ */

/* 必填标记 */
.required {
    color: red;
    margin-left: 2px;
}

/* 复选组容器 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fafafa;
}

/* 单个复选项 */
.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* “其他：”后面的内联文本输入框 */
.inline-text {
    width: auto;
    min-width: 140px;
    padding: 5px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.inline-text:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.inline-text:disabled {
    background-color: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

/* 变更原因分块（权属原因 / 地块原因） */
.reason-block {
    margin-top: 10px;
}

.reason-block + .reason-block {
    margin-top: 14px;
}

.reason-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 文本域 */
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s;
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 字段级错误提示（红色） */
.field-error {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 6px;
}

/* 宽容器（列表页） */
.wide-container {
    max-width: 100%;
    width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 数据表格 */
.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
}

.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
    vertical-align: middle;
    line-height: 1.4;
}

.data-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f6faff;
}

.data-table tbody tr:hover {
    background-color: #e6f7ff;
}

.data-table td {
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 列表页操作列居中 */
.data-table td:last-child,
.data-table th:last-child {
    text-align: center;
}

/* 列表页下载按钮 */
.btn-download {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: var(--hover-color);
}

/* 空数据提示 */
.empty-tip {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 分页 */
.pagination {
    margin-top: 12px;
    text-align: center;
}
.btn-page {
    padding: 6px 16px;
    background-color: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}
.btn-page:hover:not(:disabled) {
    color: #1890ff;
    border-color: #1890ff;
}
.btn-page:disabled {
    cursor: not-allowed;
    color: #bbb;
    background-color: #fafafa;
}
.page-info {
    margin: 0 12px;
    font-size: 14px;
    color: #333;
}

/* ============ 系统设置 / 密钥状态 ============ */

/* 导航栏“密钥设置成功”徽标 */
.auth-status {
    background-color: #52c41a;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 5px 12px;
    border-radius: 12px;
    white-space: nowrap;
    margin-left: 12px;
}

/* 销毁密钥区域 */
.destroy-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* 危险操作按钮（销毁密钥） */
.btn-danger {
    width: 100%;
    padding: 12px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #ff7875;
}

.btn-danger:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ============ 导航栏下拉菜单 ============ */

.nav-item {
    position: relative;
}

.dropbtn .caret {
    font-size: 10px;
    margin-left: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 180px;
    background-color: #002140;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 4px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 9px 16px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}