@import url("../../tokens.css"); :root { --red: var(--color-accent); --red-soft: var(--color-accent-soft); --green: var(--color-green); --green-dark: var(--color-ink); --gold: var(--color-gold); --ink: var(--color-ink); --muted: var(--color-ink-2); --paper: var(--color-paper); --paper-2: var(--color-paper-2); --line: var(--color-rule); --white: var(--color-panel); --shadow: var(--shadow-card); } .auth-layer-message { /* 认证页 layui 消息提示皮肤,替代浏览器原生 alert。 */ min-width: 160px; border-radius: 999px !important; background: rgba(38, 48, 44, .94) !important; box-shadow: 0 16px 42px rgba(38, 48, 44, .24) !important; } .auth-layer-message .layui-layer-content { padding: 10px 18px !important; color: #fffdf8 !important; font-size: 14px; font-weight: 800; line-height: 1.6; text-align: center; } * { box-sizing: border-box; } html, body { overflow-x: clip; } html { scrollbar-gutter: stable; } body { margin: 0; color: var(--ink); font-family: var(--font-body); background: var(--paper); } a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; } @media (hover: hover) and (pointer: fine) { a, .btn, .card, button, summary { cursor: pointer; } } .container { width: min(var(--layout-max), calc(100% - 72px)); margin: 0 auto; } .site-header { position: sticky; top: 0; z-index: 20; background: linear-gradient(115deg, rgba(110, 38, 32, .96) 0%, rgba(200, 59, 50, .96) 48%, rgba(139, 52, 39, .96) 100%); border-bottom: 1px solid rgba(255, 253, 248, .2); box-shadow: 0 4px 0 rgba(93, 30, 26, .2), 0 18px 38px rgba(83, 32, 26, .34), 0 30px 70px rgba(83, 32, 26, .22); backdrop-filter: blur(18px); } .nav { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; } .brand { display: flex !important; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 253, 248, .92); box-shadow: 0 10px 28px rgba(63, 28, 22, .18); font-size: 24px; font-weight: 800; white-space: nowrap; } .brand-logo { display: block; width: 270px; height: auto; } .footer .brand-logo { width: 270px; } .auth-page-brand .brand-logo { width: 220px; } .brand-logo-mark { width: 48px; height: 48px; } .brand-text { color: var(--ink); font-weight: 900; } .brand-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red); box-shadow: 0 10px 24px rgba(200, 59, 50, .22); font-weight: 800; } .nav-links { display: flex; align-items: center; gap: 26px; color: #fffdf8; font-size: 15px; white-space: nowrap; } .nav-links a.active, .nav-links a:hover { color: #fff7d8; } .nav-links a, .nav-actions a { color: inherit; position: relative; transition: color .22s ease, transform .22s ease; } .nav-links a:after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, #f5d99b, #fff3c8); transform: scaleX(0); transform-origin: center; transition: transform .24s ease; } .nav-links a.active:after, .nav-links a:hover:after { transform: scaleX(1); } .nav-actions { display: flex; align-items: center; gap: 14px; color: #fffdf8; font-size: 15px; white-space: nowrap; } .nav-user-entry { min-width: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; } .nav-user-avatar { width: 32px; height: 32px; position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 248, 230, .56); border-radius: 50%; color: var(--red-deep); background: #fff4dc; font-size: 13px; font-weight: 900; } .nav-user-avatar img { width: 100%; height: 100%; position: relative; z-index: 1; object-fit: cover; } .nav-user-avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; } .nav-user-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .profile-current-genealogy { min-width: 0; max-width: 240px; display: grid; gap: 2px; margin-left: auto; padding: 7px 12px; border: 1px solid rgba(255, 248, 230, .28); border-radius: 12px; color: #fff8e6; background: rgba(79, 29, 26, .18); line-height: 1.2; } .profile-current-genealogy span { color: rgba(255, 248, 230, .72); font-size: 11px; font-weight: 700; } .profile-current-genealogy strong { overflow: hidden; color: #fff8e6; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; } .profile-mobile-menu-toggle, .profile-mobile-menu, .site-menu-toggle, .site-mobile-menu { display: none; } .btn { min-width: 118px; height: 44px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 800; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; will-change: transform; } .btn:hover { transform: translateY(-2px); } .btn.primary { color: #fff; background: var(--red); box-shadow: 0 14px 30px rgba(200, 59, 50, .24); } .btn.primary:hover { box-shadow: 0 18px 38px rgba(200, 59, 50, .3); } .site-header .btn.primary { color: #8f332b; background: linear-gradient(135deg, #fff8e6, #f1d49a); box-shadow: 0 12px 28px rgba(64, 26, 21, .22); } .site-header .btn.primary:hover { box-shadow: 0 16px 34px rgba(64, 26, 21, .3); } .btn.ghost { color: var(--red); border-color: rgba(200, 59, 50, .28); background: rgba(255, 255, 255, .68); } .btn.danger { border-color: #8a322b; color: #fffdf8; background: #8a322b; box-shadow: 0 10px 22px rgba(138, 50, 43, .18); } .btn.danger:hover { border-color: #71251f; background: #71251f; } .inner-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 12%, rgba(196, 146, 69, .16), transparent 24%), linear-gradient(125deg, #fffaf0 0%, #f7efe2 48%, #edf4ef 100%); } .inner-hero:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(138, 50, 43, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 50, 43, .05) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); } .inner-hero .container { position: relative; z-index: 2; min-height: 410px; padding: 68px 0 72px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; } .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; color: #8a5a3b; font-weight: 800; } .eyebrow:before { content: ""; width: 42px; height: 2px; background: var(--red); } h1, h2, h3, h4, p { margin-top: 0; } h1 { margin-bottom: 20px; color: var(--ink); font-family: "SimSun", "Songti SC", serif; font-size: 52px; line-height: 1.16; } h2 { margin-bottom: 14px; font-family: "SimSun", "Songti SC", serif; font-size: 42px; line-height: 1.25; } h3 { margin-bottom: 12px; font-size: 23px; } .lead { max-width: 620px; margin-bottom: 0; color: #645d52; font-size: 18px; line-height: 1.9; } .hero-card { min-height: 260px; padding: 28px; border: 1px solid rgba(224, 211, 189, .88); border-radius: 24px; background: rgba(255, 253, 248, .92); box-shadow: var(--shadow); } .section { padding: 76px 0; } .section.alt { background: #fffdf8; } .section-head { margin-bottom: 34px; text-align: center; } .section-head p { max-width: 720px; margin: 14px auto 0; color: var(--muted); font-size: 17px; line-height: 1.9; } .grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .card { padding: 24px; border-radius: 18px; background: #fffdf8; border: 1px solid var(--line); box-shadow: 0 16px 42px rgba(57, 48, 36, .07); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease; will-change: transform; } .card:hover { transform: translateY(-6px); border-color: rgba(196, 146, 69, .38); box-shadow: 0 24px 60px rgba(57, 48, 36, .11); } .card.soft { background: #fbf7ed; } .card.dark { color: #fff; background: linear-gradient(155deg, var(--green-dark), var(--green)); } .card.dark p { color: rgba(255, 255, 255, .78); } .card p, .muted { color: var(--muted); line-height: 1.8; } .tag-row { display: flex; gap: 10px; flex-wrap: wrap; } .tag { padding: 6px 12px; border-radius: 999px; color: var(--green); background: #eaf0eb; font-size: 14px; font-weight: 700; } .toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .input, select, textarea { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid #e2d4bf; border-radius: 999px; color: var(--ink); background: #fbf8f1; font: inherit; } textarea { min-height: 128px; padding: 14px 16px; border-radius: 18px; resize: vertical; } .form-grid { display: grid; gap: 16px; } .form-card { max-width: 560px; margin: 0 auto; padding: 34px; } .auth-layout { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 62px 24px; background: radial-gradient(circle at 18% 20%, rgba(200, 59, 50, .09), transparent 24%), linear-gradient(125deg, #fffaf0, #f7efe2 54%, #edf4ef); } /* 认证类页面共用祖堂背景,登录、注册、找回密码只保留自己的差异样式 */ .auth-scenic-layout { position: relative; isolation: isolate; min-height: 100vh; padding: 56px 24px 72px; place-items: center; background: linear-gradient(90deg, rgba(255, 253, 248, .86), rgba(255, 253, 248, .46) 45%, rgba(255, 253, 248, .88)), linear-gradient(135deg, rgba(200, 59, 50, .08), transparent 34%), url("../images/ancestral-hall-new.png") center / cover no-repeat; } .auth-scenic-layout:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(251, 247, 237, .42), rgba(251, 247, 237, .86)), radial-gradient(circle at 50% 42%, rgba(255, 253, 248, .3), transparent 30%); backdrop-filter: blur(2px); } .auth-page-brand { position: absolute; left: clamp(18px, 4vw, 56px); top: clamp(18px, 4vw, 42px); z-index: 3; } /* 认证卡片公共样式,避免登录、注册、找回密码页面重复维护 */ .auth-card { width: min(440px, 100%); padding: 38px; border-radius: 16px; border-color: rgba(224, 211, 189, .9); background: rgba(255, 253, 248, .94); box-shadow: 0 26px 70px rgba(57, 48, 36, .16); } .auth-card:hover { transform: none; } .auth-card h1 { margin-bottom: 12px; font-size: 40px; } .auth-card .lead { margin-bottom: 28px; font-size: 16px; } .auth-card .form-grid { gap: 14px; } .auth-card .auth-field { display: grid; gap: 8px; color: var(--ink); font-weight: 800; } .auth-card .auth-field b { color: var(--red); } .auth-card .auth-form-status:empty { display: none; } .auth-card .input { height: 50px; background: #fffaf1; } .auth-card .btn.primary, .auth-card .btn.ghost { position: relative; overflow: hidden; height: 50px; } .auth-card .btn.primary { width: 100%; margin-top: 2px; } .auth-card .btn.primary:before, .auth-card .btn.ghost:before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 38%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent); transform: skewX(-18deg); transition: left .48s ease; } .auth-card .btn.primary:hover, .auth-card .btn.ghost:hover { transform: translateY(-3px) scale(1.012); } .auth-card .btn.primary:hover { box-shadow: 0 18px 42px rgba(200, 59, 50, .34); } .auth-card .btn.ghost:hover { color: #fff; border-color: rgba(200, 59, 50, .2); background: var(--red); box-shadow: 0 16px 34px rgba(200, 59, 50, .2); } .auth-card .btn.primary:hover:before, .auth-card .btn.ghost:hover:before { left: 110%; } .auth-card .btn.primary:active, .auth-card .btn.ghost:active { transform: translateY(-1px) scale(.99); } .auth-links { display: flex; justify-content: space-between; gap: 16px; color: #8a5a3b; font-weight: 800; } .auth-links a { transition: color .22s ease, transform .22s ease; } .auth-links a:hover { color: var(--red); transform: translateY(-1px); } /* 验证码输入和按钮的通用双列布局,窄屏在页面 CSS 中改为单列 */ .code-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; } /* 接口请求期间的公共状态,只由 JS 切换 class,不在 JS 内写样式 */ .is-loading { pointer-events: none; opacity: .72; } /* 业务请求的加载、空数据、失败和无权限状态 */ .api-empty, .api-state { padding: 22px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: rgba(255, 253, 248, .7); text-align: center; font-weight: 800; } .api-state--loading { color: var(--muted); } .api-state--error, .api-state--forbidden { border-color: rgba(160, 50, 45, .28); color: var(--red); background: rgba(160, 50, 45, .06); } .footer { padding: 60px 0 36px; color: rgba(255, 255, 255, .78); background: #3f3a35; } .footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 48px; padding-bottom: 38px; border-bottom: 1px solid rgba(255, 255, 255, .12); } .footer h4 { margin: 0 0 18px; color: #fff; font-size: 17px; } .footer p, .footer a { display: block; color: inherit; margin: 10px 0; line-height: 1.8; } .footer a { width: fit-content; transition: color .22s ease, transform .22s ease; } .footer a:hover { color: #fff; transform: translateX(4px); } .footer .brand { padding: 0; border-radius: 0; background: transparent; box-shadow: none; } .footer .brand:hover { transform: translateX(0) translateY(-2px); } .copyright, .footer-legal { padding-top: 28px; color: rgba(255, 255, 255, .48); font-size: 14px; } .footer-legal { display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; text-align: left; } .footer-legal a { display: inline-flex; width: auto; margin: 0; color: inherit; font-size: inherit; line-height: inherit; } .footer-legal a:hover { color: #fff; transform: none; } .profile-layer-confirm { border-radius: 8px !important; overflow: hidden; } .profile-layer-confirm .layui-layer-title { height: 50px; line-height: 50px; border-bottom: 1px solid rgba(224, 211, 189, .72); background: #fffaf0; color: var(--ink); font-weight: 900; } .profile-layer-confirm .layui-layer-content { color: var(--muted); line-height: 1.8; } .profile-layer-confirm .layui-layer-btn a { border-radius: 999px; } .profile-layer-confirm .layui-layer-btn .layui-layer-btn0 { border-color: var(--red); background: var(--red); } .pending-layer-dialog { border-radius: 8px !important; overflow: hidden; box-shadow: 0 20px 60px rgba(38, 30, 21, .18) !important; } .pending-layer-dialog .layui-layer-title { height: 52px; line-height: 52px; border-bottom: 1px solid rgba(224, 211, 189, .72); background: #fffaf0; color: var(--ink); font-weight: 900; font-size: 16px; } .pending-layer-dialog .layui-layer-content { padding: 28px 28px 16px !important; color: var(--ink); font-size: 16px; line-height: 1.8; text-align: center; } .pending-layer-dialog .layui-layer-btn { padding: 0 24px 24px; text-align: center; } .pending-layer-dialog .layui-layer-btn a { height: 38px; min-width: 108px; padding: 0 24px; border-radius: 999px; line-height: 38px; font-weight: 800; } .pending-layer-dialog .layui-layer-btn .layui-layer-btn0 { border-color: var(--red); background: var(--red); } .profile-popup-select { display: grid; gap: 10px; padding: 4px 0; } .profile-popup-select button { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; } .profile-popup-select button:hover { border-color: rgba(200, 59, 50, .38); color: var(--red); background: #fff4ef; } @media (max-width: 1320px) { .page-profile .nav-links, .page-profile-module .nav-links { display: none; } .profile-mobile-menu-toggle { min-width: 58px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid rgba(255, 248, 230, .38); border-radius: 10px; color: #fff8e6; background: rgba(79, 29, 26, .2); font: inherit; font-size: 13px; font-weight: 800; } .page-profile .nav-actions, .page-profile-module .nav-actions { display: none; } .profile-mobile-menu.is-open { display: block; position: absolute; top: 100%; right: 0; left: 0; max-height: calc(100vh - 72px); overflow-y: auto; padding: 14px 0 18px; border-bottom: 1px solid rgba(255, 253, 248, .24); background: rgba(121, 42, 35, .99); box-shadow: 0 22px 38px rgba(83, 32, 26, .28); } .profile-mobile-menu-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } .profile-mobile-workspace { display: grid; gap: 8px; } .profile-mobile-workspace .workspace-nav-group { border-color: rgba(255, 248, 230, .16); background: transparent; } .profile-mobile-workspace .workspace-nav-group[open] { background: rgba(255, 253, 248, .08); } .profile-mobile-menu .profile-mobile-workspace summary { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; color: #fff8e6; font-weight: 900; cursor: pointer; } .profile-mobile-menu .profile-mobile-workspace .workspace-nav-group.is-open > summary { color: #fff7d8; background: rgba(255, 253, 248, .16); } .profile-mobile-workspace .workspace-nav-items, .profile-mobile-account-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; } .profile-mobile-menu a, .profile-mobile-menu button { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; border: 1px solid rgba(255, 248, 230, .16); border-radius: 10px; color: #fff8e6; background: rgba(255, 253, 248, .08); font: inherit; font-weight: 800; text-align: left; } .profile-mobile-menu button { width: 100%; cursor: pointer; } .profile-mobile-menu a.is-current { border-color: rgba(255, 241, 202, .76); color: #fff7d8; background: rgba(255, 253, 248, .2); } } @media (max-width: 620px) { .profile-mobile-workspace .workspace-nav-items, .profile-mobile-account-actions { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 1120px) { .nav-links { display: none; } .site-menu-toggle { min-width: 58px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid rgba(255, 248, 230, .38); border-radius: 10px; color: #fff8e6; background: rgba(79, 29, 26, .2); font: inherit; font-size: 13px; font-weight: 800; } .has-site-mobile-menu .nav-actions { display: none; } .site-mobile-menu.is-open { display: block; position: absolute; top: 100%; right: 0; left: 0; padding: 14px 0 18px; border-bottom: 1px solid rgba(255, 253, 248, .24); background: rgba(121, 42, 35, .99); box-shadow: 0 22px 38px rgba(83, 32, 26, .28); } .site-mobile-menu-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .site-mobile-menu a { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; border: 1px solid rgba(255, 248, 230, .16); border-radius: 10px; color: #fff8e6; background: rgba(255, 253, 248, .08); font: inherit; font-weight: 800; text-align: left; } .site-mobile-menu a.active { border-color: rgba(255, 241, 202, .76); color: #fff7d8; background: rgba(255, 253, 248, .2); } .inner-hero .container, .grid-2 { grid-template-columns: 1fr; } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 720px) { .container { width: calc(100% - 28px); } .nav-actions a:not(.btn) { display: none; } .page-profile-module .nav, .page-profile .nav { height: 70px; gap: 10px; } .page-profile-module .brand, .page-profile .brand { padding: 7px 10px; } .page-profile-module .brand-logo, .page-profile .brand-logo { width: 114px; } .page-profile-module .brand-logo-mark { width: 38px; height: 38px; } .page-profile-module .brand-text { display: none; } .page-profile-module .nav-actions { display: none; } .profile-current-genealogy { max-width: 112px; padding: 7px 9px; } .profile-current-genealogy span { display: none; } .profile-current-genealogy strong { font-size: 13px; } .profile-mobile-menu-toggle { min-width: 50px; padding: 0 9px; } .profile-mobile-menu-inner { grid-template-columns: 1fr; } .site-mobile-menu-inner { grid-template-columns: 1fr; } .inner-hero .container { padding: 46px 0 54px; } h1 { font-size: 38px; } h2 { font-size: 32px; } .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; } .auth-scenic-layout { padding: 36px 14px 48px; align-items: start; } .auth-card { padding: 28px 22px; } .auth-card h1 { font-size: 34px; } } /* 统一业务媒体:只承载后端授权地址,加载失败时保留可理解的回退状态。 */ .media-frame { position: relative; min-width: 0; margin: 0; overflow: clip; border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-panel-soft); } .media-preview { width: 100%; display: block; padding: 0; border: 0; background: transparent; font: inherit; } .media-frame img, .media-frame video { width: 100%; display: block; object-fit: cover; background: var(--color-paper-2); } .media-frame img { aspect-ratio: 4 / 3; } .media-frame video { max-height: min(72vh, 720px); aspect-ratio: 16 / 9; } .media-frame figcaption { padding: var(--space-xs) var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.6; } .media-fallback { min-height: 132px; display: grid; place-items: center; padding: var(--space-md); color: var(--color-ink-2); background: var(--color-paper-2); text-align: center; font-size: var(--text-sm); font-weight: 600; } .media-fallback[hidden] { display: none; } .media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 280px)); gap: var(--space-sm); margin-top: var(--space-md); justify-content: start; } .media-gallery .media-frame img { object-fit: contain; } .media-download { min-height: var(--control-height); display: flex; align-items: center; padding: var(--space-xs) var(--space-sm); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-sm); color: var(--color-accent-strong); background: var(--color-panel); font-size: var(--text-sm); font-weight: 700; overflow-wrap: anywhere; } .media-avatar { width: 48px; height: 48px; position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; overflow: clip; border-radius: 50%; color: var(--color-accent-strong); background: var(--color-accent-soft); font-weight: 800; } .media-avatar img { width: 100%; height: 100%; position: relative; z-index: 1; object-fit: cover; } .media-avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; } .media-avatar img:not([hidden]) + .media-avatar-fallback { visibility: hidden; } .media-avatar.is-media-error .media-avatar-fallback { visibility: visible; } .media-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: var(--space-lg); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-dialog); color: var(--color-ink); background: var(--color-panel); box-shadow: var(--shadow-dialog); } .media-dialog::backdrop { background: var(--color-overlay); backdrop-filter: blur(4px); } .media-dialog img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; } .media-dialog-close { min-height: 40px; display: block; margin: 0 0 var(--space-sm) auto; padding: 0 var(--space-sm); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); background: var(--color-panel); font: inherit; font-weight: 700; } :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; } :where(button, .btn, input, select, textarea):disabled, :where(button, .btn)[aria-disabled="true"] { cursor: not-allowed; opacity: .52; box-shadow: none; transform: none; } :where(button, .btn)[aria-busy="true"] { cursor: progress; opacity: .72; pointer-events: none; } .api-state, .api-empty { padding: var(--space-md); border-radius: var(--radius-md); background: var(--color-panel-soft); } .api-state--error, .api-state--forbidden, [data-state="error"] { border-color: color-mix(in oklch, var(--color-error) 32%, var(--color-rule)); color: var(--color-error); background: var(--color-error-soft); } .api-state--success, [data-state="success"] { border-color: color-mix(in oklch, var(--color-success) 30%, var(--color-rule)); color: var(--color-success); background: var(--color-success-soft); } @media (max-width: 768px) { .media-gallery { grid-template-columns: minmax(0, 280px); } .media-dialog { padding: var(--space-sm); } } @media (prefers-reduced-motion: reduce) { *:not(:where(.page-home-portal, .page-home-portal *)), *:not(:where(.page-home-portal, .page-home-portal *))::before, *:not(:where(.page-home-portal, .page-home-portal *))::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }