body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    height: 100%;
}

.container {
    width: 100%;
    max-width: 100%; /* 填充满整个屏幕宽度 */
    margin: 0;
    background-color: transparent;
    min-height: 100vh;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.header-gradient {
    background-image: url('../img/header_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.version {
    color: white;
    font-size: 14px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 15px;
}

.form-container {
    padding: 20px 25px;
    margin-top: -60px;
    background-color: #e9ecef;
    border-radius: 20px;
    z-index: 10;
    margin-left: 0;
    margin-right: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    align-items: baseline;
}

.tabs a {
    text-decoration: none;
    color: #888;
    font-size: 18px;
    font-weight: normal;
    padding: 0;
    margin-right: 20px;
}

.tabs a.active {
    color: #333;
    font-size: 26px;
    font-weight: 600;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-size: 14px;
}

.flash-message.error {
    background-color: #e74c3c;
}

.flash-message.success {
    background-color: #2ecc71;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.label-with-icon {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #3b3b3b;
}

.label-with-icon .icon-img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.form-group input {
    width: 100%;
    padding: 18px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    color: #333;
}

.form-group input::placeholder {
    color: #c1c1c1;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    margin-top: 10px;
}

.btn-primary {
    background-color: #3d6eff;
}

.btn-dark {
    background-color: rgb(25, 28, 50);
}


/* --- 最终版验证码区域样式 (已修改) --- */

/* 验证码外层容器的整体布局 */
.captcha-container {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    width: 100%;
    height: 55px; /* 您可以根据需要调整整体高度 */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px; /* 圆角更大一些 */
    padding-left: 18px; /* 左边距 */
    box-sizing: border-box;
}

/* 文本输入框的样式 */
.captcha-container .captcha-field {
    flex-grow: 1; /* 让输入框占据所有剩余空间 */
    border: none !important; /* 强制去掉边框 */
    outline: none;
    height: 100%;
    padding: 0;
    font-size: 16px;
    background-color: transparent !important; /* 强制使用透明背景 */
}

/* 包裹两个图片的容器 */
.captcha-images-wrapper {
    display: flex;
    align-items: center;
    padding-right: 12px; /* 稍微减小右边距以配合 */
}

/* 可点击的验证码主图片 */
.captcha-image {
    height: 38px; /* 调整验证码图片的高度 */
    width: 90px;
    cursor: pointer;
}

/* 新增的绿色刷新图标 */
.refresh-icon {
    width: 22px;       /* 稍微调整图标宽度 */
    height: 22px;      /* 稍微调整图标高度 */
    margin-left: 8px;  /* 减小与左边验证码图片的间距 */
    cursor: pointer;   /* 鼠标悬停时显示手型，暗示可以点击 */
}

/* --- 身份核实页面的新样式 --- */
/* 为此页面指定特定的背景色，与源文件一致 */
.verify-page-body {
    background-color: #f4f5f7;
}

/* --- 主要容器 --- */
.container {
    width: 100%;
    max-width: 100%; /* 填充满整个屏幕宽度 */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- 页面标题 --- */
.title {
    display: block;
    font-size: 25px;
    text-align: center;
    margin: 25px auto;
    color: #333;
}

/* --- 表单区域 --- */
.form_area {
    padding: 0 25px; /* 与源文件一致的内边距 */
}

.form-group {
    margin-bottom: 20px;
}

/* --- 输入框上方的标签 --- */
.form-label {
    display: block; /* 块级元素，使其独占一行 */
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px; /* 标签与输入框之间的间距 */
    color: #333;
}

/* --- 带图标的输入框容器 (关键样式) --- */
.inputBox {
    display: flex;
    align-items: center;
    height: 70px;
    background-color: #ffffff;
    border-radius: 40px; /* 较大的圆角以形成椭圆效果 */
    padding: 0 20px;
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 添加细微阴影 */
}

.inputBox img {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}

/* --- 输入框本身 --- */
.inputBox input {
    flex-grow: 1; /* 占据所有剩余空间 */
    height: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0;
    font-size: 16px;
    color: #333;
}

.inputBox input::placeholder {
    color: #aaa;
}

.verify-captcha-box {
    padding-right: 14px;
}

.verify-captcha-box input {
    min-width: 0;
}

.verify-code-button {
    width: 116px;
    height: 42px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(25, 28, 50);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 42px;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
}

.verify-code-button:disabled {
    background: #c7ccd6;
    cursor: default;
}

.inputBox .verify-captcha-image {
    width: 108px;
    height: 42px;
    margin-right: 0;
    object-fit: contain;
    flex: 0 0 auto;
    cursor: pointer;
    border-radius: 8px;
}

.verify-flash-messages {
    margin-bottom: 16px;
}

/* --- “下一步”按钮 --- */
.btn-submit {
    width: 90%;
    height: 60px;
    background-color: rgb(25, 28, 50);
    color: white;
    border: none;
    border-radius: 50px; /* 更大的圆角 */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 60px;
    margin: 40px auto 0;
    display: block;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #3a3f63; /* 鼠标悬停时变亮 */
}

/* --- START: 新增后台管理页面样式 --- */

.admin-body {
    background-color: #f0f2f5; /* 后台页面的浅灰色背景 */
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.logout-link {
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.data-cards-container {
    display: grid;
    gap: 15px;
}

.data-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    word-break: break-all; /* 防止长字符串撑破布局 */
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
    flex-shrink: 0; /* 防止标签被压缩 */
}

.data-value {
    color: #333;
    text-align: right;
}

.admin-subtitle {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

/* --- END: 新增后台管理页面样式 --- */

/* --- OK PAY login page --- */
body.okpay-login-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #ffffff;
    color: #292b31;
}

.okpay-login-body .container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: block;
    background: #ffffff;
    box-shadow: none;
}

.okpay-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 108px 27px 34px;
    box-sizing: border-box;
}

.okpay-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.okpay-mark-card {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(34, 41, 52, 0.12);
}

.okpay-brand-icon {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.okpay-mark {
    width: 62px;
    height: 46px;
    overflow: visible;
}

.okpay-mark path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.okpay-mark-o {
    stroke: #026a73;
    stroke-width: 10;
}

.okpay-mark-k-stem {
    stroke: #df6a60;
    stroke-width: 10;
}

.okpay-mark-k-arm {
    stroke: #45b8aa;
    stroke-width: 10;
}

.okpay-brand h1 {
    margin: 28px 0 0;
    font-size: 28px;
    line-height: 1;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0;
    color: #2c2d31;
}

.okpay-form {
    margin-top: 69px;
}

.okpay-card {
    width: 100%;
    padding: 31px 30px 52px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 4px;
    box-shadow:
        0 28px 44px rgba(39, 45, 57, 0.06),
        0 2px 18px rgba(39, 45, 57, 0.04);
}

.okpay-tabs {
    justify-content: center;
    gap: 66px;
    align-items: flex-start;
    margin: 0 0 48px;
}

.okpay-tabs a {
    position: relative;
    margin: 0;
    padding: 0 0 16px;
    color: #888b91;
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0;
}

.okpay-tabs a.active {
    color: #2e3035;
    font-size: 22px;
    font-weight: 700;
}

.okpay-tabs a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: #eba28d;
}

.okpay-fields {
    display: grid;
    gap: 27px;
}

.okpay-field {
    display: flex;
    align-items: center;
    width: 100%;
    height: 62px;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: #f5f6f8;
    overflow: hidden;
}

.okpay-field input {
    width: 100%;
    height: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 28px;
    border: 0;
    outline: none;
    box-sizing: border-box;
    background: transparent;
    color: #25272c;
    font-size: 18px;
    line-height: 62px;
}

.okpay-field input::placeholder {
    color: #bbbfc6;
}

.okpay-captcha-field input {
    padding-right: 12px;
}

.okpay-captcha-image {
    width: 118px;
    height: 48px;
    margin-right: 18px;
    object-fit: contain;
    flex: 0 0 auto;
    cursor: pointer;
}

.okpay-forgot {
    display: block;
    margin-top: 24px;
    color: #50535b;
    font-size: 17px;
    line-height: 1.4;
    text-align: right;
    text-decoration: none;
}

.okpay-version {
    margin-top: 31px;
    color: #b8bbc2;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

.okpay-submit {
    display: block;
    width: 100%;
    height: 64px;
    margin: 42px 0 0;
    border: 0;
    border-radius: 999px;
    background: #272c3c;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 64px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.okpay-submit:active {
    transform: translateY(1px);
}

.okpay-login-body .flash-messages {
    margin: -25px 0 25px;
}

.okpay-login-body .flash-message {
    border-radius: 14px;
}

@media (max-width: 430px) {
    .okpay-shell {
        padding: 11.8vh 24px 28px;
    }

    .okpay-form {
        margin-top: 8vh;
    }

    .okpay-card {
        padding: 31px 30px 45px;
    }

    .okpay-submit {
        margin-top: 22px;
    }
}

@media (min-width: 431px) and (max-height: 760px) {
    .okpay-shell {
        padding-top: 36px;
        padding-bottom: 24px;
    }

    .okpay-mark-card {
        width: 68px;
        height: 68px;
    }

    .okpay-brand h1 {
        margin-top: 18px;
    }

    .okpay-form {
        margin-top: 32px;
    }

    .okpay-card {
        padding-top: 26px;
        padding-bottom: 36px;
    }

    .okpay-tabs {
        margin-bottom: 34px;
    }

    .okpay-fields {
        gap: 20px;
    }

    .okpay-forgot {
        margin-top: 18px;
    }

    .okpay-version {
        margin-top: 18px;
    }

    .okpay-submit {
        margin-top: 20px;
    }
}

@media (max-width: 360px) {
    .okpay-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .okpay-card {
        padding-left: 22px;
        padding-right: 22px;
    }

    .okpay-tabs {
        gap: 50px;
    }

    .okpay-captcha-image {
        width: 102px;
        margin-right: 14px;
    }
}
