/* Frontend Custom Styles */

/* Article List Styles */
.article-card { transition: all 0.3s ease; border-left: 4px solid transparent; }
.article-card:hover { border-left-color: #3b82f6; transform: translateX(5px); background: #f8fafc; }
.category-link.active { background: #3b82f6; color: white; }

/* Article Detail Styles */
.article-content { line-height: 1.8; color: #374151; font-size: 16px; word-wrap: break-word; white-space: pre-line; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: #111827; border-bottom: 2px solid #f3f4f6; padding-bottom: 0.5rem; display: block; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #1f2937; display: block; }
.article-content p { margin-bottom: 1.25rem !important; display: block; }
.article-content img { max-width: 100%; border-radius: 8px; margin: 1.5rem auto; display: block; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.article-content a { color: #3b82f6; text-decoration: underline; }
.article-content a:hover { color: #2563eb; }
.article-content pre { background: #f8fafc; padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid #e2e8f0; white-space: pre-wrap; }
.article-content code { font-family: monospace; font-size: 0.9em; background: #f1f5f9; padding: 0.2rem 0.4rem; border-radius: 4px; }
.article-content p, .article-content h2, .article-content h3, .article-content ul, .article-content ol { white-space: normal; }

/* Login Shell Styles */
.login-shell{max-width:1180px;margin:64px auto;padding:0;display:flex;align-items:stretch;min-height:calc(100vh - 128px);border-radius:20px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 22px 65px rgba(2,6,23,0.14);background:#fff}
.login-left{flex:1;position:relative;display:flex;flex-direction:column;justify-content:center;padding:44px 44px 42px;background-image:url('/file/images/demo-1.jpg');background-size:cover;background-position:center}
.login-left::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg, rgba(2,6,23,0.70), rgba(2,6,23,0.42))}
.login-left-content{position:relative;z-index:1;max-width:560px}
.login-left-logo{position:absolute;top:26px;left:44px;z-index:2;display:flex;align-items:center;gap:12px;margin-bottom:0}
.login-left-logo img{height:40px;max-width:220px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,0.35))}
.login-left-brand{display:flex;flex-direction:column;line-height:1.05;color:#ffffff}
.login-left-brand .en{font-size:18px;font-weight:800;letter-spacing:0.02em}
.login-left-brand .cn{margin-top:4px;font-size:14px;font-weight:700;opacity:0.92}
.login-left a.login-left-logo{color:inherit;text-decoration:none;cursor:pointer}
.login-left a.login-left-logo:hover{opacity:0.95}
.login-left h2{font-size:40px;line-height:1.15;letter-spacing:-0.02em;color:#ffffff}
.login-left h2 span{display:block}
.login-left p{margin-top:14px;max-width:560px;color:rgba(255,255,255,0.88);font-size:16px;line-height:1.85}
.login-right{width:460px;display:flex;align-items:flex-start;justify-content:center;padding:60px 34px 30px;background:#ffffff}
.login-card{margin:0;width:100%;max-width:420px;padding:0;border:0;box-shadow:none;background:transparent}
@media (max-width: 900px){.login-shell{flex-direction:column;margin:40px 20px;min-height:auto}.login-left{padding:22px 22px 22px}.login-right{width:100%;padding:22px}.login-left h2{font-size:34px}.login-left-logo{position:relative;top:auto;left:auto;margin-bottom:16px}}

/* User Center Styles */
.user-center-nav-logout {
    color: #ef4444;
}
.user-center-stat-unit {
    font-size: 14px;
    color: #60a5fa;
}
.user-center-security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}
.user-center-security-item:last-child {
    border-bottom: none;
}
.user-center-security-title {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
}
.user-center-security-desc {
    font-size: 14px;
    color: var(--text-sub);
}
.batch-toolbar-container {
    display: none;
    margin-right: 10px;
}
.batch-close-btn {
    margin-right: 5px;
}
.batch-delete-btn {
    background-color: #ef4444;
    color: white;
    border: none;
}
.project-table-checkbox-col {
    width: 40px;
}
.public-share-fields-container {
    display: none;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}
.public-share-label-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.public-share-required-star {
    color: red;
}
.current-cover-preview {
    margin-top: 10px;
    display: none;
}
.current-cover-preview img {
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.recommend-tags-container {
    margin-top: 5px;
}
.share-settings-modal-content {
    max-width: 600px;
}
.share-settings-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}
.share-settings-password-container {
    display: flex;
    gap: 10px;
}
.share-settings-password-container button {
    white-space: nowrap;
}

/* Login Tabbar & Panels */
.login-tabbar {
    display: flex;
    gap: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 4px;
    border-radius: 12px;
    margin: 10px 0 16px;
}
.login-tabbar button {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 10px 8px;
    font-weight: 700;
    cursor: pointer;
}
.wx-login-card {
    margin-bottom: 16px;
}
.wx-login-title {
    text-align: center;
    color: #111827;
    font-weight: 700;
    margin-bottom: 10px;
}
.wx-login-qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.wx-login-qr-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.wx-login-desc {
    text-align: center;
    color: #374151;
    margin-bottom: 10px;
}
.wx-login-code-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}
.wx-login-code {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #111827;
}
.wx-login-timer {
    font-size: 14px;
    color: #6b7280;
}
.wx-login-refresh-container {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}
.wx-login-refresh-btn {
    padding: 8px 14px;
}
.wx-login-status {
    text-align: center;
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
}

/* Bind Modal */
.bind-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.bind-modal-container {
    width: min(420px, calc(100% - 32px));
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.bind-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}
.bind-modal-desc {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}
.bind-modal-error {
    display: none;
    background: #fee2e2;
    color: #dc2626;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}
.bind-modal-submit {
    width: 100%;
}
