/* ========================================================================== Delta Framework — design tokens ========================================================================== */ :root { --color-primary: #4f46e5; --color-primary-dark: #3730a3; --color-primary-light: #eef0fd; --color-accent: #06b6d4; --color-violet: #8b5cf6; --color-success: #17a568; --color-success-bg: #e4f8ef; --color-error: #e0334d; --color-error-bg: #fdecee; --color-warning: #d97706; --color-warning-bg: #fdf3e3; --color-info: #4f46e5; --color-info-bg: #eef0fd; --color-text: #1c2030; --color-text-muted: #6b7280; --color-text-faint: #9aa1b1; --color-border: #e7e9f2; --color-surface: #ffffff; --color-surface-muted: #f6f7fc; --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --shadow-sm: 0 1px 2px rgba(23, 26, 60, 0.06); --shadow-md: 0 10px 28px rgba(23, 26, 60, 0.10); --shadow-lg: 0 30px 70px rgba(30, 25, 90, 0.22); --gradient-brand: linear-gradient(120deg, #4338ca 0%, #6d28d9 45%, #06b6d4 100%); --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; --transition: 0.18s ease; } * { box-sizing: border-box; } body { margin: 0; padding: 34px 16px 50px; background: radial-gradient(circle at 12% 0%, rgba(109, 40, 217, 0.16), transparent 45%), radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.16), transparent 45%), #eef0f9; font-family: var(--font-sans); color: var(--color-text); line-height: 1.55; } a { color: var(--color-primary); } .icon { width: 1.15em; height: 1.15em; flex-shrink: 0; } /* ========================================================================== Brand (above the shell) ========================================================================== */ .brand-block { text-align: center; margin: 0 auto 22px; } .brand-block .brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 1.3em; box-shadow: var(--shadow-md); margin-bottom: 10px; } .brand-block .brand-title { font-size: 1.7em; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text); } .brand-block .brand-title span { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; } .brand-block .brand-tagline { margin-top: 2px; font-size: 0.88em; color: var(--color-text-muted); } /* ========================================================================== Shell ========================================================================== */ .shell { max-width: 1140px; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--color-surface); } /* ========================================================================== Header / navigation ========================================================================== */ .shell-header { background: var(--gradient-brand); position: relative; } .shell-header-inner { display: flex; align-items: center; gap: 4px; padding: 10px 16px; } .nav-toggle { display: none; margin-left: auto; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; } .nav-toggle-close { display: none; } .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; } .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; } .nav { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; flex: 1; min-width: 0; } .nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: var(--radius-sm); color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.93em; font-weight: 500; white-space: nowrap; transition: background var(--transition), color var(--transition); } .nav-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; } .nav-link.active { background: rgba(255, 255, 255, 0.22); color: #fff; font-weight: 600; } .nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff4d6d; color: #fff; font-size: 0.72em; font-weight: 700; } .nav-user { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-left: 12px; flex-shrink: 0; } .user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); color: #fff; font-weight: 700; font-size: 0.85em; overflow: hidden; flex-shrink: 0; } .user-avatar img { width: 100%; height: 100%; object-fit: cover; } .user-name { font-weight: 600; font-size: 0.9em; color: #fff; max-width: 140px; overflow: hidden; text-overflow: ellipsis; } .nav-link-icon { padding: 9px; color: rgba(255, 255, 255, 0.85); } .nav-link-guest { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 600; } .nav-link-guest:hover { background: rgba(255, 255, 255, 0.26); color: #fff; } /* ========================================================================== Content ========================================================================== */ .shell-content { padding: 30px 34px 34px; } .page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; } .page-head-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: var(--radius-md); background: var(--gradient-brand); color: #fff; flex-shrink: 0; box-shadow: var(--shadow-sm); font-size: 1.2em; font-weight: 700; overflow: hidden; } .page-head-icon img { width: 100%; height: 100%; object-fit: cover; } .page-head-icon .icon { width: 1.4em; height: 1.4em; } .page-head h1 { margin: 0 0 4px; font-size: 1.55em; letter-spacing: -0.01em; } .page-subtitle { margin: 0; color: var(--color-text-muted); font-size: 0.96em; } h1, h2, h3, h4 { color: var(--color-text); letter-spacing: -0.01em; } .section { margin-bottom: 30px; } .section:last-child { margin-bottom: 0; } .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .section-title h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.08em; } .section-title .icon { color: var(--color-primary); } .pill { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--color-surface-muted); color: var(--color-text-muted); font-size: 0.82em; font-weight: 600; border: 1px solid var(--color-border); } /* ========================================================================== Stat tiles ========================================================================== */ .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; } .stat-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-muted); } .stat-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; color: #fff; font-size: 1.3em; } .stat-tile.tone-primary .stat-tile-icon { background: linear-gradient(135deg, #4f46e5, #6366f1); } .stat-tile.tone-success .stat-tile-icon { background: linear-gradient(135deg, #17a568, #22c55e); } .stat-tile.tone-violet .stat-tile-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); } .stat-tile.tone-accent .stat-tile-icon { background: linear-gradient(135deg, #0891b2, #06b6d4); } .stat-tile-value { font-size: 1.5em; font-weight: 800; line-height: 1.1; } .stat-tile-label { color: var(--color-text-muted); font-size: 0.86em; } /* ========================================================================== Alerts ========================================================================== */ .alert { display: flex; align-items: flex-start; gap: 10px; background: var(--color-info-bg); color: var(--color-primary-dark); padding: 13px 16px; width: 100%; margin-bottom: 16px; border-radius: var(--radius-sm); border-left: 4px solid var(--color-info); font-size: 0.95em; } .alert .icon { margin-top: 0.15em; flex-shrink: 0; } .alert.alert-error { background: var(--color-error-bg); color: #9c1a30; border-left-color: var(--color-error); } .alert.alert-success { background: var(--color-success-bg); color: #146336; border-left-color: var(--color-success); } .alert.alert-info { background: var(--color-info-bg); color: var(--color-primary-dark); border-left-color: var(--color-info); } /* ========================================================================== Status / badges ========================================================================== */ .status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9em; font-weight: 600; color: var(--color-text-muted); } .status-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd2e0; flex-shrink: 0; } .status.is-online { color: var(--color-success); } .status.is-online .status-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); } .role-badge { display: inline-flex; align-items: center; padding: 4px 11px; margin: 0 6px 6px 0; border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary-dark); font-size: 0.8em; font-weight: 600; } .confirm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 0.78em; font-weight: 700; } .confirm-badge .icon { width: 0.95em; height: 0.95em; } .confirm-badge.is-yes { background: var(--color-success-bg); color: var(--color-success); } .confirm-badge.is-no { background: var(--color-warning-bg); color: var(--color-warning); } /* ========================================================================== Tables ========================================================================== */ .table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); } .table { border: 0; table-layout: fixed; width: 100%; margin-bottom: 0; border-collapse: collapse; font-size: 0.95em; } .table th { font-weight: 600; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 12px 14px; background: var(--color-surface-muted); color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); } .table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; overflow-wrap: break-word; vertical-align: middle; } .table tbody tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: var(--color-primary-light); } .cell-user { display: flex; align-items: center; gap: 10px; } .cell-user .user-avatar { width: 30px; height: 30px; font-size: 0.8em; background: var(--gradient-brand); } .cell-user-meta { display: flex; flex-direction: column; gap: 2px; } .cell-user-meta .cell-user-sub { font-size: 0.82em; color: var(--color-text-faint); } .table .row-action { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); text-decoration: none; font-weight: 600; font-size: 0.94em; } .table .row-action:hover { color: var(--color-primary-dark); } /* ========================================================================== Meta grid (info page) ========================================================================== */ .meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; } .meta-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-muted); } .meta-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--color-primary-light); color: var(--color-primary); flex-shrink: 0; } .meta-item-label { display: block; font-size: 0.78em; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; } .meta-item-value { display: block; font-weight: 600; word-break: break-word; } /* ========================================================================== Section / post cards (materials) ========================================================================== */ .section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } .section-card { display: block; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-muted); text-decoration: none; color: inherit; transition: box-shadow var(--transition), transform var(--transition); } .section-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } .section-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-brand); color: #fff; margin-bottom: 14px; } .section-card h3 { margin: 0 0 6px; font-size: 1.05em; } .section-card p { margin: 0 0 12px; color: var(--color-text-muted); font-size: 0.9em; } .post-list { display: flex; flex-direction: column; gap: 14px; } .post-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-muted); text-decoration: none; color: inherit; transition: box-shadow var(--transition); } .post-card:hover { box-shadow: var(--shadow-md); } .post-card-thumb { width: 60px; height: 60px; border-radius: 12px; flex-shrink: 0; overflow: hidden; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: #fff; } .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; } .post-card h3 { margin: 0 0 6px; font-size: 1.02em; } .post-card-excerpt { color: var(--color-text-muted); font-size: 0.92em; margin: 0 0 8px; } .post-card-meta { display: flex; gap: 14px; font-size: 0.8em; color: var(--color-text-faint); } .post-card-meta span { display: inline-flex; align-items: center; gap: 5px; } .post-article-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 22px; } .post-article-meta { display: flex; gap: 16px; color: var(--color-text-muted); font-size: 0.9em; margin-bottom: 22px; flex-wrap: wrap; } .post-article-meta span { display: inline-flex; align-items: center; gap: 6px; } .post-article-body { line-height: 1.75; white-space: pre-line; } .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-muted); text-decoration: none; font-size: 0.9em; font-weight: 600; margin-bottom: 18px; } .back-link:hover { color: var(--color-primary); } /* ========================================================================== Pagination ========================================================================== */ .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; } .page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.9em; transition: background var(--transition); } .page-btn:hover { background: var(--color-primary-light); } .page-btn.is-current { background: var(--gradient-brand); color: #fff; border-color: transparent; } .page-btn.is-disabled { opacity: 0.4; pointer-events: none; } .page-info { color: var(--color-text-muted); font-size: 0.85em; margin: 0 6px; } /* ========================================================================== Forms ========================================================================== */ textarea, .input { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.95em; font-family: inherit; background: var(--color-surface); color: var(--color-text); transition: border-color var(--transition), box-shadow var(--transition); } textarea { resize: vertical; height: 120px; margin-bottom: 12px; } .input { margin-bottom: 12px; } textarea:focus, .input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); } .input.captchaInput { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; } .input.captchaInput img { border-radius: var(--radius-sm); } .w100 { width: 100%; } .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gradient-brand); color: white; border: 0; border-radius: var(--radius-sm); padding: 12px 20px; font-size: 0.95em; font-weight: 600; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); box-shadow: var(--shadow-sm); } .button:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .button:active { transform: translateY(0); } .button-ghost { background: var(--color-surface); color: var(--color-primary); border: 1px solid var(--color-border); box-shadow: none; } .button-ghost:hover { background: var(--color-primary-light); box-shadow: none; } /* ========================================================================== Auth card ========================================================================== */ .auth-shell { display: flex; justify-content: center; padding: 10px 0 6px; } .auth-card { width: 100%; max-width: 380px; text-align: center; } .auth-box { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-muted); padding: 28px 26px; } .auth-card .page-head-icon { margin: 0 auto 14px; } .auth-card h1 { font-size: 1.35em; margin-bottom: 4px; } .auth-card .page-subtitle { margin-bottom: 20px; } .auth-card form { text-align: left; } /* ========================================================================== Profile hero ========================================================================== */ .profile-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; } .profile-hero-avatar { width: 72px; height: 72px; border-radius: 20px; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7em; font-weight: 800; flex-shrink: 0; overflow: hidden; box-shadow: var(--shadow-md); } .profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; } .profile-hero h1 { margin: 0 0 4px; font-size: 1.5em; } .profile-hero-roles { margin-top: 8px; } .info-list { display: grid; grid-template-columns: 190px 1fr; row-gap: 12px; column-gap: 16px; } .info-list dt { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted); font-weight: 600; font-size: 0.92em; } .info-list dt .icon { color: var(--color-text-faint); width: 1em; height: 1em; } .info-list dd { margin: 0; } /* ========================================================================== Chat / dialogs ========================================================================== */ .chat-panel { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; } .chat-panel-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--color-surface-muted); border-bottom: 1px solid var(--color-border); } .chat-panel-header .user-avatar { width: 38px; height: 38px; font-size: 1em; background: var(--gradient-brand); color: #fff; } .chat-panel-header-meta { display: flex; flex-direction: column; gap: 2px; } .chat-panel-header-meta strong { font-size: 0.98em; } .chat-panel-header .pill { margin-left: auto; } .messageBox { display: flex; flex-direction: column; padding: 22px 24px 6px; max-height: 56vh; overflow-y: auto; } .messageBox .message { width: fit-content; min-width: 220px; max-width: 74%; padding: 22px 16px 14px; position: relative; background: var(--color-surface-muted); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 14px; display: flex; flex-direction: column; } .messageBox .message.fromMe { align-self: end; background: var(--gradient-brand); color: white; border-color: transparent; } .messageBox .message a { color: inherit; text-decoration: none; } img.dialogImage { max-width: 280px; max-height: 280px; border-radius: var(--radius-sm); } a.fileLink { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline !important; } .messageBox .message .name { font-weight: 600; font-size: 0.85em; position: absolute; top: 8px; left: 16px; text-decoration: none; opacity: 0.7; } .messageBox .message.fromMe .name { opacity: 0.85; } .messageBox .message .text { margin-top: 10px; margin-bottom: 10px; word-break: break-word; } .messageBox .message .date { font-size: 0.72em; align-self: end; opacity: 0.65; } .deliveryStatus { background: #cbd2e0; width: 8px; height: 8px; border-radius: 50%; position: absolute; right: 10px; top: 10px; } .deliveryStatus.viewed { background: #22c55e; } .chat-compose { border-top: 1px solid var(--color-border); background: var(--color-surface-muted); padding: 16px 24px; } .chat-compose textarea { margin-bottom: 10px; height: 80px; } .chat-compose-actions { display: flex; align-items: center; gap: 10px; } .chat-compose-actions .button { margin-left: auto; } /* ========================================================================== File input ========================================================================== */ .input-file { position: relative; display: inline-block; margin: 0; } .input-file span { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; outline: none; text-decoration: none; font-size: 0.9em; font-weight: 600; color: var(--color-primary-dark); background-color: var(--color-primary-light); border: 1px dashed var(--color-primary); border-radius: var(--radius-sm); padding: 11px 14px; box-sizing: border-box; transition: background-color var(--transition); } .input-file input[type=file] { position: absolute; z-index: -1; opacity: 0; display: block; width: 0; height: 0; } .input-file:hover span { background-color: #e2e6fb; } .input-file:active span { background-color: #d6dcf8; } .input-file input[type=file]:disabled + span { background-color: var(--color-surface-muted); color: var(--color-text-muted); border-color: var(--color-border); } /* ========================================================================== Misc ========================================================================== */ .empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--color-text-muted); background: var(--color-surface-muted); border: 1px dashed var(--color-border); border-radius: var(--radius-md); } .empty-state .icon { width: 2em; height: 2em; color: var(--color-text-faint); } /* ========================================================================== Footer ========================================================================== */ .shell-footer { background: var(--gradient-brand); color: rgba(255, 255, 255, 0.9); } .shell-footer-inner { padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85em; } .shell-footer a { color: #fff; text-decoration: none; font-weight: 700; } .footer-meta { color: rgba(255, 255, 255, 0.75); } /* ========================================================================== Responsive ========================================================================== */ @media (max-width: 860px) { .nav-toggle { display: inline-flex; } .nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 2px; background: var(--color-primary-dark); padding: 10px 14px 16px; display: none; } .nav.open { display: flex; } .nav-link { padding: 11px 12px; } .nav-user { margin-left: 0; margin-top: 8px; padding-left: 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.2); } .user-name { max-width: none; } } @media (max-width: 640px) { body { padding: 16px 8px 30px; } .shell-content { padding: 20px 16px 26px; } .page-head, .profile-hero { gap: 12px; } .page-head-icon { width: 42px; height: 42px; } .info-list { grid-template-columns: 1fr; row-gap: 4px; } .info-list dt { margin-top: 8px; } .shell-footer-inner { justify-content: center; text-align: center; } .brand-block .brand-title { font-size: 1.4em; } }