/* ====== Local static login page ====== */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
                 "Helvetica Neue", Arial, sans-serif;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

body {
    background: #f3f6f9;
    overflow: hidden;
}

/* ---- Top browser hint banner ---- */
.browser-hint {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #fff7e6;
    color: #856404;
    font-size: 13px;
    border-bottom: 1px solid #ffe1a8;
    z-index: 5;
}
.browser-hint .hint-icon {
    display: inline-block;
    width: 14px; height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    background: #f0a020;
    color: #fff;
    font-size: 11px;
    margin-right: 6px;
    vertical-align: -2px;
}
.browser-hint .hint-strong { color: #c0392b; font-weight: 600; }
.browser-hint .hint-close {
    position: absolute;
    right: 14px; top: 0;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 0 6px;
}

/* ---- Page layout ---- */
.login-all {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Hero illustration on the left ---- */
.hero {
    position: absolute;
    left: 0; top: 0;
    width: 65%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}
.hero-text {
    position: absolute;
    top: 110px;
    left: 110px;
    color: #2b2c42;
}
.hero-text h1 {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: 4px;
}
.hero-text p {
    font-size: 16px;
    color: #6b7480;
    margin: 0;
    letter-spacing: 1px;
}
.hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 980px;
    height: auto;
}

/* ---- Login card on the right ---- */
.login-card {
    position: relative;
    z-index: 2;
    width: 380px;
    margin-left: 55%;
    background: #ffffff;
    border-radius: 6px;
    padding: 30px 36px 28px;
    box-shadow: 0 8px 30px rgba(15, 25, 50, 0.08);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    margin-bottom: 4px;
}
.card-top .logo img {
    height: 28px;
    display: block;
}
.lang-select {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    user-select: none;
}
.lang-select img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}
.lang-select .arrow {
    font-size: 10px;
    color: #999;
    margin-left: 4px;
}

/* ---- Form fields ---- */
.form-area {
    margin-top: 24px;
}
.form-row {
    position: relative;
    height: 40px;
    margin-bottom: 16px;
    border: 1px solid #cdd2d9;
    border-radius: 3px;
    background: #fff;
    transition: border-color 0.15s ease;
}
.form-row:focus-within {
    border-color: #ee2233;
}
.form-row .left-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #b0b6c0;
    pointer-events: none;
}
.form-row input {
    width: 100%;
    height: 38px;
    border: 0;
    outline: none;
    padding: 0 12px 0 36px;
    font-size: 14px;
    color: #111;
    background: transparent;
    border-radius: 3px;
}
.form-row input::placeholder { color: #b0b6c0; }

.form-row.select-row {
    cursor: pointer;
    user-select: none;
    line-height: 38px;
    padding: 0 32px 0 36px;
    font-size: 14px;
    color: #111;
}
.form-row.select-row .arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
}

/* ---- Options row (remember + forgot) ---- */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 14px;
    font-size: 13px;
    color: #999;
}
.options-row label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}
.options-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0 6px 0 0;
    accent-color: #ee2233;
}
.options-row a {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}
.options-row a:hover { color: #ee2233; }

/* ---- Submit button ---- */
.login-btn {
    display: block;
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 3px;
    background: #ee2233;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.login-btn:hover  { background: #d81e2d; }
.login-btn:active { background: #b81825; }

/* ---- Footer ---- */
.copyright {
    margin-top: 36px;
    text-align: center;
    font-size: 12px;
    color: #b0b6c0;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 4px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---- Inline icon glyphs (simple SVG-style via Unicode/CSS) ---- */
.ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}
/* organisation icon */
.ico-org {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b0b6c0' stroke-width='1.4'><rect x='2.5' y='3' width='11' height='10' rx='1'/><line x1='8' y1='3' x2='8' y2='13'/><line x1='2.5' y1='8' x2='13.5' y2='8'/></svg>");
}
/* user icon */
.ico-user {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b0b6c0' stroke-width='1.4'><circle cx='8' cy='5.5' r='2.6'/><path d='M2.7 13.5c0-2.5 2.4-4.2 5.3-4.2s5.3 1.7 5.3 4.2'/></svg>");
}
/* lock icon */
.ico-lock {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b0b6c0' stroke-width='1.4'><rect x='3.5' y='7' width='9' height='6.5' rx='1'/><path d='M5.5 7V5.2a2.5 2.5 0 0 1 5 0V7'/></svg>");
}

/* ---- Responsive nudge ---- */
@media (max-width: 1100px) {
    .hero-img  { width: 560px; }
    .hero-text { left: 60px; top: 80px; }
    .login-card { margin-left: 60%; }
}
@media (max-width: 820px) {
    .hero { display: none; }
    .login-card { margin: 0 auto; }
}

/* =========================================================================
 *  消息中心 (messages.html) 样式
 * ========================================================================= */

body.page-board {
    background: #f3f6f9;
    overflow: auto;
}

.notice-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #d81e2d, #ee2233);
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    box-shadow: 0 2px 6px rgba(216, 30, 45, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}
.notice-banner strong { color: #ffe3a8; }
.notice-banner .notice-back {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 10px;
    border-radius: 3px;
}
.notice-banner .notice-back:hover { background: rgba(255, 255, 255, 0.15); }

.notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffe3a8;
    box-shadow: 0 0 0 0 rgba(255, 227, 168, 0.7);
    animation: notice-pulse 1.6s infinite;
    flex-shrink: 0;
}
@keyframes notice-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 227, 168, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 227, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 227, 168, 0); }
}

.board-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 28px 40px;
}

.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.board-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.board-logo { height: 26px; }
.board-sub  { color: #6b7480; font-size: 16px; }


/* ---- Layout ---- */
.board-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 880px) {
    .board-grid { grid-template-columns: 1fr; }
}

.board-col { display: flex; flex-direction: column; gap: 16px; }

.card {
    background: #fff;
    border-radius: 6px;
    padding: 20px 22px;
    box-shadow: 0 4px 16px rgba(15, 25, 50, 0.05);
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2b2c42;
    margin: 0 0 4px 0;
}
.card-desc {
    color: #8a8f99;
    font-size: 12px;
    margin: 0 0 14px 0;
}

/* ---- Form ---- */
.field {
    display: block;
    margin-bottom: 12px;
}
.field-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.field input,
.field textarea {
    width: 100%;
    border: 1px solid #cdd2d9;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    color: #111;
    outline: none;
    transition: border-color 0.15s ease;
    resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: #ee2233; }

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.primary-btn {
    background: #ee2233;
    color: #fff;
    border: 0;
    border-radius: 3px;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.primary-btn:hover { background: #d81e2d; }
.ghost-btn {
    background: #fff;
    color: #666;
    border: 1px solid #cdd2d9;
    border-radius: 3px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}
.ghost-btn:hover { background: #f5f6f8; }

/* ---- Template list ---- */
.template-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.template-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f7f8fa;
    border: 1px solid #eceff3;
    border-radius: 3px;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.template-list code {
    flex: 1;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    color: #c0392b;
    word-break: break-all;
    white-space: pre-wrap;
    background: transparent;
    padding: 0;
}
.copy-btn {
    flex-shrink: 0;
    border: 1px solid #cdd2d9;
    background: #fff;
    color: #555;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
}
.copy-btn:hover  { background: #f0f4fb; }
.copy-btn.copied { background: #28a745; color: #fff; border-color: #28a745; }

.template-tip {
    font-size: 12px;
    color: #8a8f99;
    margin: 6px 0 0 0;
    line-height: 1.6;
}
.template-tip code {
    background: #f7f8fa;
    color: #c0392b;
    padding: 0 4px;
    border-radius: 2px;
    font-family: Consolas, "Courier New", monospace;
}

/* ---- Message list ---- */
.list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.count {
    display: inline-block;
    background: #ee2233;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    min-width: 22px;
    text-align: center;
    padding: 0 6px;
    border-radius: 999px;
    margin-left: 4px;
}
.list-meta { color: #8a8f99; font-size: 12px; }

.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item {
    border: 1px solid #eceff3;
    border-radius: 4px;
    padding: 10px 12px;
    background: #fafbfc;
}
.msg-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7480;
    margin-bottom: 6px;
}
.msg-user { color: #2b2c42; font-weight: 600; }
.msg-body {
    font-size: 13px;
    color: #111;
    line-height: 1.6;
    word-break: break-word;
}

.empty {
    text-align: center;
    color: #b0b6c0;
    padding: 26px 0;
    font-size: 13px;
}

.board-foot {
    margin-top: 24px;
    text-align: center;
    color: #b0b6c0;
    font-size: 12px;
}

/* ---- Drill entry on the login page ---- */
.notice-entry {
    position: fixed;
    right: 14px;
    bottom: 12px;
    font-size: 12px;
    color: #b0b6c0;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px dashed #d8dde4;
    z-index: 6;
}
.notice-entry:hover {
    color: #ee2233;
    border-color: #ee2233;
}
