472 lines
8.9 KiB
CSS
472 lines
8.9 KiB
CSS
/* ── Beta Application Modal ── */
|
||
/* Word-document style: paper-white panel, larger serif-ish typography, clear form fields */
|
||
|
||
.beta-application-modal {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 1000;
|
||
display: grid;
|
||
place-items: center;
|
||
}
|
||
|
||
.beta-application-modal__backdrop {
|
||
position: absolute;
|
||
inset: 0;
|
||
border: 0;
|
||
background: rgba(0, 0, 0, 0.58);
|
||
backdrop-filter: blur(8px);
|
||
-webkit-backdrop-filter: blur(8px);
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* ── Panel: paper-like document ── */
|
||
.beta-application-modal__panel {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: min(800px, 94vw);
|
||
max-height: 90vh;
|
||
overflow: hidden;
|
||
border: 1px solid #d9d5cf;
|
||
border-radius: 4px;
|
||
background: #faf8f4;
|
||
color: #1e1e1e;
|
||
box-shadow:
|
||
0 2px 0 #e8e4dc,
|
||
0 4px 0 #d9d5cf,
|
||
0 8px 32px rgba(0, 0, 0, 0.2),
|
||
0 24px 80px rgba(0, 0, 0, 0.12);
|
||
font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
|
||
font-size: 14px;
|
||
line-height: 1.8;
|
||
}
|
||
|
||
/* ── Header ── */
|
||
.beta-modal-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
padding: 28px 36px 20px;
|
||
border-bottom: 2px solid #1e1e1e;
|
||
flex-shrink: 0;
|
||
background: #f5f1ea;
|
||
}
|
||
|
||
.beta-modal-header__left {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
}
|
||
|
||
.beta-modal-header__icon {
|
||
font-size: 28px;
|
||
color: #166534;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.beta-modal-header h2 {
|
||
margin: 0;
|
||
font-size: 22px;
|
||
font-weight: 900;
|
||
color: #1e1e1e;
|
||
letter-spacing: 1px;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.beta-modal-header__subtitle {
|
||
margin: 2px 0 0;
|
||
font-size: 13px;
|
||
color: #6b7280;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.beta-modal-header__subtitle strong {
|
||
color: #166534;
|
||
font-weight: 800;
|
||
}
|
||
|
||
.beta-modal-header__close {
|
||
display: grid;
|
||
width: 34px;
|
||
height: 34px;
|
||
place-items: center;
|
||
border: 1px solid #d5cfc4;
|
||
border-radius: 4px;
|
||
background: #f5f1ea;
|
||
color: #8c8276;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
flex-shrink: 0;
|
||
transition: background 120ms ease, color 120ms ease;
|
||
}
|
||
|
||
.beta-modal-header__close:hover {
|
||
background: #ede6da;
|
||
color: #1e1e1e;
|
||
}
|
||
|
||
.beta-modal-header__close:disabled,
|
||
.beta-modal-footer__btn:disabled {
|
||
opacity: 0.58;
|
||
cursor: wait;
|
||
}
|
||
|
||
/* ── Scrollable body ── */
|
||
.beta-modal-body {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 32px 40px;
|
||
background: #faf8f4;
|
||
}
|
||
|
||
/* ── Document sections ── */
|
||
.beta-doc-section {
|
||
margin-bottom: 28px;
|
||
padding-bottom: 28px;
|
||
border-bottom: 1px dashed #d9d2c5;
|
||
}
|
||
|
||
.beta-doc-section:last-of-type {
|
||
border-bottom: 0;
|
||
margin-bottom: 0;
|
||
padding-bottom: 0;
|
||
}
|
||
|
||
.beta-doc-section__title {
|
||
margin: 0 0 18px;
|
||
font-size: 16px;
|
||
font-weight: 900;
|
||
color: #1e1e1e;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
|
||
.beta-required {
|
||
color: #dc2626;
|
||
font-style: normal;
|
||
font-weight: 800;
|
||
}
|
||
|
||
.beta-doc-section__desc {
|
||
margin: 0 0 12px;
|
||
font-size: 14px;
|
||
color: #4b5563;
|
||
line-height: 1.7;
|
||
}
|
||
|
||
/* ── Single-column grid for form fields ── */
|
||
.beta-doc-grid {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
.beta-doc-grid--two {
|
||
margin-top: 14px;
|
||
}
|
||
|
||
/* ── Text field (Word underline style) ── */
|
||
.beta-text-field {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 6px;
|
||
}
|
||
|
||
.beta-text-field__label {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: #1e1e1e;
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.beta-text-field__label::after {
|
||
content: ":";
|
||
}
|
||
|
||
.beta-text-field__input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
border: 0;
|
||
border-bottom: 1px solid #c5beb2;
|
||
outline: none;
|
||
background: transparent;
|
||
padding: 2px 0;
|
||
font-size: 14px;
|
||
font-family: inherit;
|
||
color: #1e1e1e;
|
||
line-height: 1.8;
|
||
transition: border-color 140ms ease;
|
||
}
|
||
|
||
.beta-text-field__input::placeholder {
|
||
color: #c4c4c4;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.beta-text-field__input:focus {
|
||
border-bottom-color: #166534;
|
||
border-bottom-width: 2px;
|
||
margin-bottom: -1px;
|
||
}
|
||
|
||
.beta-text-field__input[readonly] {
|
||
color: #6b7280;
|
||
cursor: default;
|
||
}
|
||
|
||
/* ── Form group (spans full row when needed) ── */
|
||
.beta-form-group {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.beta-form-group--full {
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
.beta-form-group__label {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: #1e1e1e;
|
||
}
|
||
|
||
.beta-form-group__label::after {
|
||
content: ":";
|
||
}
|
||
|
||
/* ── Radio group ── */
|
||
.beta-radio-group {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px 14px;
|
||
}
|
||
|
||
.beta-radio {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
color: #374151;
|
||
padding: 3px 0;
|
||
user-select: none;
|
||
}
|
||
|
||
.beta-radio input[type="radio"] {
|
||
appearance: none;
|
||
width: 16px;
|
||
height: 16px;
|
||
border: 2px solid #b8b0a4;
|
||
border-radius: 50%;
|
||
margin: 0;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
transition: border-color 120ms ease, background 120ms ease;
|
||
}
|
||
|
||
.beta-radio input[type="radio"]:checked {
|
||
border-color: #166534;
|
||
background: #166534;
|
||
box-shadow: inset 0 0 0 3px #ffffff;
|
||
}
|
||
|
||
.beta-radio:hover input[type="radio"] {
|
||
border-color: #166534;
|
||
}
|
||
|
||
.beta-radio span {
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* ── Checkbox group ── */
|
||
.beta-checkbox-group {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px 14px;
|
||
}
|
||
|
||
.beta-checkbox {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
color: #374151;
|
||
padding: 3px 0;
|
||
user-select: none;
|
||
}
|
||
|
||
.beta-checkbox input[type="checkbox"] {
|
||
appearance: none;
|
||
width: 16px;
|
||
height: 16px;
|
||
border: 2px solid #b8b0a4;
|
||
border-radius: 3px;
|
||
margin: 0;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
transition: border-color 120ms ease, background 120ms ease;
|
||
}
|
||
|
||
.beta-checkbox input[type="checkbox"]:checked {
|
||
border-color: #166534;
|
||
background: #166534;
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
|
||
background-size: 10px;
|
||
background-position: center;
|
||
background-repeat: no-repeat;
|
||
}
|
||
|
||
.beta-checkbox:hover input[type="checkbox"] {
|
||
border-color: #166534;
|
||
}
|
||
|
||
.beta-checkbox span {
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* ── Textarea ── */
|
||
.beta-textarea {
|
||
width: 100%;
|
||
min-height: 140px;
|
||
resize: vertical;
|
||
border: 1px solid #c5beb2;
|
||
border-radius: 4px;
|
||
outline: none;
|
||
background: #ffffff;
|
||
padding: 12px 14px;
|
||
font-size: 14px;
|
||
font-family: inherit;
|
||
color: #1e1e1e;
|
||
line-height: 1.8;
|
||
transition: border-color 140ms ease;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.beta-textarea::placeholder {
|
||
color: #c4c4c4;
|
||
}
|
||
|
||
.beta-textarea:focus {
|
||
border-color: #166534;
|
||
box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.1);
|
||
}
|
||
|
||
/* ── Rules list ── */
|
||
.beta-rules-list {
|
||
margin: 0 0 18px;
|
||
padding-left: 22px;
|
||
}
|
||
|
||
.beta-rules-list li {
|
||
font-size: 14px;
|
||
color: #374151;
|
||
line-height: 1.9;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.beta-rules-list li strong {
|
||
color: #166534;
|
||
}
|
||
|
||
/* ── Agreement checkbox row ── */
|
||
.beta-agree-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 8px;
|
||
margin-bottom: 18px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: #166534;
|
||
user-select: none;
|
||
}
|
||
|
||
.beta-agree-row input[type="checkbox"] {
|
||
appearance: none;
|
||
width: 18px;
|
||
height: 18px;
|
||
border: 2px solid #b8b0a4;
|
||
border-radius: 3px;
|
||
margin-top: 2px;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
transition: border-color 120ms ease, background 120ms ease;
|
||
}
|
||
|
||
.beta-agree-row input[type="checkbox"]:checked {
|
||
border-color: #166534;
|
||
background: #166534;
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
|
||
background-size: 12px;
|
||
background-position: center;
|
||
background-repeat: no-repeat;
|
||
}
|
||
|
||
/* ── Footer ── */
|
||
.beta-modal-footer {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 10px;
|
||
padding: 16px 36px 20px;
|
||
border-top: 1px solid #e0dbd2;
|
||
flex-shrink: 0;
|
||
background: #f5f1ea;
|
||
}
|
||
|
||
.beta-modal-footer__message {
|
||
flex: 1;
|
||
margin: 0;
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.beta-modal-footer__message--success {
|
||
color: #166534;
|
||
}
|
||
|
||
.beta-modal-footer__message--error {
|
||
color: #dc2626;
|
||
}
|
||
|
||
.beta-modal-footer__btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 40px;
|
||
padding: 0 24px;
|
||
border: 0;
|
||
border-radius: 4px;
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
transition: opacity 120ms ease, transform 120ms ease;
|
||
}
|
||
|
||
.beta-modal-footer__btn:active {
|
||
transform: scale(0.97);
|
||
}
|
||
|
||
.beta-modal-footer__btn--secondary {
|
||
background: #e8e3d9;
|
||
color: #5c5348;
|
||
}
|
||
|
||
.beta-modal-footer__btn--secondary:hover {
|
||
background: #dbd4c7;
|
||
}
|
||
|
||
.beta-modal-footer__btn--primary {
|
||
background: #166534;
|
||
color: #ffffff;
|
||
}
|
||
|
||
.beta-modal-footer__btn--primary:hover {
|
||
background: #14532d;
|
||
}
|