/* 基础背景与字体 */
html, body {
    background: #181A20;
    color: #EAECEF;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 通用超大容器，方便页面居中 */
.container, .main {
    margin: 0 auto;
    max-width: 1280px;
}

/* 通用按钮风格 */
.btn,
button,
input[type="button"],
input[type="submit"] {
    background: #F0B90B;
    color: #181A20;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: #ffcb47;
    color: #181A20;
}

/* 通用输入框 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background: #23262F;
    color: #EAECEF;
    font-size: 1.05rem;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
    border: 1.2px solid #23262F;
    transition: border 0.18s;
}
input:focus, textarea:focus {
    border: 1.2px solid #F0B90B;
}

/* 通用链接 */
a {
    color: #F0B90B;
    text-decoration: none;
    transition: color .18s;
}
a:hover {
    text-decoration: underline;
    color: #ffd451;
}

/* 通用表格 */
table {
    border-collapse: collapse;
    width: 100%;
    background: #23262F;
    color: #EAECEF;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}
th, td {
    padding: 13px 12px;
    border-bottom: 1px solid #23262F;
}
th {
    background: #23262F;
    color: #F0B90B;
    font-weight: 700;
}
tr:last-child td {
    border-bottom: none;
}

/* 提示消息 */
.msg-list,
ul.msg-list {
    margin: 12px 0 0 0;
    padding: 0 8px;
    list-style: none;
    color: #ff7474;
    font-size: .97rem;
}
.success {
    color: #3ae174 !important;
}
.warning {
    color: #ffd451 !important;
}
.error {
    color: #ff7474 !important;
}

/* 通用弹窗(可选) */
.popup-bg {
    position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.18); display: none; z-index: 1111;
    justify-content: center; align-items: center;
}
.popup {
    background: #23262F; color: #EAECEF; border-radius: 16px; min-width: 270px;
    max-width: 90vw; max-height: 90vh; overflow: auto;
    box-shadow: 0 8px 32px #0005; padding: 28px 32px 18px 32px; position: relative;
}

/* 通用卡片 */
.card {
    background: #23262F;
    border-radius: 16px;
    box-shadow: 0 4px 32px #0003;
    padding: 24px 20px;
    margin-bottom: 18px;
}

/* 通用字体颜色工具 */
.text-yellow { color: #F0B90B; }
.text-green  { color: #16c784; }
.text-red    { color: #e43c19; }
.text-gray   { color: #bbb; }

/* 响应式基础 */
@media (max-width: 750px) {
    .container, .main {
        padding: 0 8px;
        max-width: 100vw;
    }
    .card { padding: 18px 10px; }
}

/* ===================== */
/* 专业量化风格 弹窗提示  */
/* ===================== */

.modal-mask {
    position: fixed; top:0; left:0; width:100vw; height:100vh;
    background: rgba(24,26,32,0.82);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    animation: fadein .22s;
}
.modal-popup {
    background: #23262F;
    border-radius: 18px;
    box-shadow: 0 8px 36px #0006;
    padding: 38px 42px 32px 42px;
    min-width: 330px;
    text-align: center;
    color: #19d67d;
    font-size: 1.22rem;
    font-weight: 700;
    opacity: 1;
    transform: translateY(0px) scale(1);
    animation: popupin .23s;
    transition: all .22s;
}
.modal-popup.error { color: #fa5252; }
.modal-icon {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: inherit;
}
@keyframes fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes popupin {
    0% { opacity:0; transform: translateY(30px) scale(.97);}
    100% { opacity:1; transform: translateY(0) scale(1);}
}
