:root {
    --bg: #f5f8ff;
    --bg-soft: #edf4ff;
    --card: #ffffff;
    --line: #e4ebf5;
    --text: #1d2b4f;
    --muted: #6d7c9b;
    --primary: #2f74ff;
    --primary-dark: #1e56c9;
    --shadow: 0 22px 60px rgba(32, 78, 160, 0.12);
    --admin-blue: #3199db;
    --admin-blue-dark: #2a89cd;
    --admin-bg: #f6f8fc;
    --success: #37b6df;
    --danger: #c9cfdc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
}

.section-card {
    background: var(--card);
    border: 1px solid rgba(210, 223, 244, 0.9);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #e7efff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.section-eyebrow.is-blue {
    background: #dfe9ff;
}

.primary-button,
.secondary-button,
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary), #3b8cff);
    color: #fff;
    box-shadow: 0 16px 35px rgba(47, 116, 255, 0.28);
}

.secondary-button {
    border-color: #cbd9ff;
    background: #fff;
    color: var(--primary);
}

.primary-button:hover,
.secondary-button:hover,
.admin-btn:hover,
.site-nav-item > a:hover,
.site-nav-dropdown a:hover,
.admin-actions a:hover,
.site-footer-links a:hover,
.preview-links a:hover,
.section-more:hover {
    transform: translateY(-1px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(221, 230, 246, 0.88);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 76px;
}

.site-brand,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-brand-mark {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: linear-gradient(160deg, #f8b98c, #c85c3d 80%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.site-brand-mark::before,
.site-brand-mark::after {
    content: "";
    position: absolute;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
}

.site-brand-mark::before {
    width: 13px;
    height: 28px;
    left: 11px;
    top: 11px;
    transform: rotate(-10deg);
}

.site-brand-mark::after {
    width: 13px;
    height: 28px;
    right: 11px;
    top: 11px;
    transform: rotate(12deg);
}

.site-brand-copy,
.mobile-brand span {
    display: flex;
    flex-direction: column;
}

.site-brand-copy strong,
.mobile-brand strong {
    font-size: 18px;
}

.site-brand-copy small,
.mobile-brand small {
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav-item {
    position: relative;
}

.site-nav-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--text);
    font-size: 15px;
}

.site-nav-item.is-active > a {
    color: #ff8b1f;
    font-weight: 700;
}

.site-nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 164px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(27, 52, 109, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.site-nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
}

.site-nav-item:hover .site-nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 12px;
}

.site-tool,
.site-avatar,
.mobile-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
}

.site-avatar {
    background: linear-gradient(180deg, #f4f8ff, #fff);
    color: var(--text);
}

.site-nav-toggle,
.admin-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(47, 116, 255, 0.1);
}

.site-nav-toggle span,
.admin-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.site-main {
    padding-bottom: 48px;
}

.hero-section {
    padding: 24px 0 10px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    gap: 44px;
    padding: 52px 48px 44px;
    background: linear-gradient(135deg, #f4f8ff 0%, #edf4ff 42%, #dce9ff 100%);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0;
    max-width: 620px;
    font-size: 19px;
    line-height: 1.8;
    color: #5c6c8d;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-tag {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d8e3fb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
}

.hero-visual {
    display: flex;
    align-items: center;
}

.hero-visual-frame {
    width: 100%;
    padding: 32px;
    border: 1px dashed #b7caf7;
    border-radius: 32px;
    background: rgba(244, 248, 255, 0.55);
}

.hero-visual-card {
    position: relative;
    min-height: 248px;
    padding: 34px 30px;
    border: 1px dashed #d2def9;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.hero-visual-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -28px;
    top: -42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(230, 239, 255, 0.2));
}

.hero-visual-card h2 {
    position: relative;
    z-index: 1;
    margin: 18px 0 14px;
    font-size: clamp(34px, 4vw, 52px);
}

.hero-visual-card p {
    position: relative;
    z-index: 1;
    max-width: 450px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.hero-floating-sheet {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 116px;
    height: 92px;
    border-radius: 22px;
    transform: rotate(12deg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 239, 255, 0.76));
    box-shadow: 0 20px 30px rgba(54, 86, 152, 0.12);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.metric-card {
    padding: 24px 28px;
}

.metric-card strong {
    display: block;
    font-size: 32px;
}

.metric-card span {
    color: var(--muted);
}

.content-section {
    padding: 16px 0;
}

.content-card {
    padding: 34px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head > div:first-child {
    display: flex;
    align-items: center;
    gap: 18px;
}

.section-head.is-compact > div:first-child {
    gap: 0;
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2f74ff, #5996ff);
    color: #fff;
    font-weight: 700;
}

.section-more {
    color: var(--muted);
}

.resource-grid,
.split-grid,
.download-grid,
.product-grid,
.gallery-grid {
    display: grid;
    gap: 20px;
}

.resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: #fbfdff;
}

.table-card table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th,
.table-card td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #edf2fb;
}

.table-card th {
    color: #8090b2;
    font-size: 14px;
    font-weight: 700;
    background: rgba(247, 250, 255, 0.85);
}

.table-card td:first-child {
    font-weight: 700;
}

.table-card tr:last-child td {
    border-bottom: 0;
}

.table-tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.notice-card,
.preview-card {
    padding: 32px;
}

.notice-list {
    display: grid;
    gap: 18px;
}

.notice-item {
    padding: 20px 22px;
    border: 1px solid #ebf1fb;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.notice-item strong {
    display: block;
    margin-bottom: 8px;
}

.notice-item span,
.preview-card p {
    color: var(--muted);
}

.preview-card {
    background: linear-gradient(160deg, #203864, #325697 70%, #446ec7);
    color: #fff;
}

.preview-card p {
    color: rgba(255, 255, 255, 0.72);
}

.preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.preview-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-grid,
.product-grid,
.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card,
.product-card,
.gallery-card,
.media-card,
.mobile-list-card,
.mobile-product-card {
    border: 1px solid #e8eef8;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.download-card {
    padding: 28px;
}

.download-type,
.product-tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.download-card h3,
.product-card h3,
.media-card h3,
.gallery-card h3 {
    margin: 18px 0 12px;
    font-size: 22px;
}

.download-card p,
.product-card p,
.media-card p,
.gallery-card p,
.about-card p,
.mobile-summary-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.download-card a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 700;
}

.product-card {
    padding: 28px;
    background: linear-gradient(180deg, #f9fbff, #ffffff);
}

.product-card strong {
    display: block;
    margin: 8px 0 14px;
    font-size: 32px;
}

.media-card {
    padding: 26px;
}

.media-thumb {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 180px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(145deg, #dfe9ff, #f4f8ff);
}

.media-thumb span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(32, 56, 100, 0.86);
    color: #fff;
}

.gallery-card {
    padding: 20px;
}

.gallery-art {
    min-height: 190px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.75), transparent 32%),
        linear-gradient(135deg, #e6eefc, #bcd3ff 52%, #eef4ff);
}

.about-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 34px;
}

.about-card h2 {
    margin: 16px 0 14px;
    font-size: 34px;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer {
    padding: 0 0 36px;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    border: 1px solid rgba(220, 229, 246, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.site-footer p {
    margin: 8px 0 0;
    color: var(--muted);
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}

.mobile-hero {
    padding: 22px 0 8px;
}

.mobile-hero-card,
.mobile-summary-card {
    padding: 30px 24px;
}

.mobile-hero-card h1 {
    margin: 18px 0 14px;
    font-size: 34px;
    line-height: 1.18;
}

.mobile-hero-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.mobile-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.mobile-stack {
    display: grid;
    gap: 16px;
}

.mobile-list-card,
.mobile-product-card {
    padding: 22px;
}

.mobile-list-card strong {
    display: block;
    margin-bottom: 10px;
}

.mobile-list-card span {
    color: var(--muted);
    line-height: 1.7;
}

.mobile-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-product-card h3 {
    margin: 18px 0 10px;
}

.page-login {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
        radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(135deg, #7f949b 0%, #566b74 32%, #394b57 68%, #6d8289 100%);
}

.login-shell {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: min(100%, 680px);
    min-height: 100vh;
    justify-content: center;
    padding: 48px 24px;
    margin: 0 auto;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.login-brand-mark {
    position: relative;
    width: 28px;
    height: 28px;
    transform: skewX(-18deg);
    border-radius: 6px;
    background: linear-gradient(135deg, #3ab2ff, #6ad0ff);
}

.login-brand-mark::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -10px;
    width: 18px;
    height: 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.login-brand strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.login-brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
}

.login-card {
    width: min(100%, 476px);
    padding: 34px 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 26px 60px rgba(14, 27, 43, 0.26);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #dbe7f5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(47, 116, 255, 0.12);
}

.login-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #20304d;
}

.login-field input::placeholder {
    color: #8ea0bd;
}

.login-field-icon,
.login-field-tail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #7c8ba6;
    flex-shrink: 0;
}

.login-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 12px;
}

.login-field.is-captcha {
    box-shadow: none;
}

.captcha-image-wrap {
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe7f5;
    border-radius: 6px;
    background: #f5fbff;
}

.captcha-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
}

.login-submit {
    min-height: 46px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(180deg, #4b85d8, #3f73c2);
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.login-alert,
.login-tip {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.login-alert {
    border: 1px solid #ffd2d2;
    background: #fff5f5;
    color: #c24c4c;
}

.login-tip {
    border: 1px solid #e6eef8;
    background: #f8fbff;
    color: #6e7e9d;
}

.login-tip code {
    color: #2f74ff;
}

.page-admin {
    background: var(--admin-bg);
}

.admin-shell {
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-shell.is-compact {
    grid-template-columns: 78px minmax(0, 1fr);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--admin-blue), var(--admin-blue-dark));
    color: #fff;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 24px;
    font-weight: 700;
}

.admin-logo small,
.admin-sidebar-foot small {
    color: rgba(255, 255, 255, 0.78);
}

.admin-menu {
    display: grid;
    gap: 2px;
    padding: 12px 0;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.94);
}

.admin-menu-link.is-active {
    background: rgba(0, 0, 0, 0.08);
}

.admin-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
}

.admin-sidebar-foot {
    margin-top: auto;
    padding: 18px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-shell.is-compact .admin-logo {
    justify-content: center;
}

.admin-shell.is-compact .admin-logo > div,
.admin-shell.is-compact .admin-menu-text,
.admin-shell.is-compact .admin-sidebar-foot {
    display: none;
}

.admin-shell.is-compact .admin-menu-link {
    justify-content: center;
}

.admin-main-shell {
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e9edf5;
    box-shadow: 0 4px 14px rgba(34, 68, 120, 0.06);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #4a5a7b;
}

.admin-user-menu {
    position: relative;
}

.admin-user-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.admin-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dfe9ff, #c5d8ff);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.admin-user strong,
.admin-user small {
    display: block;
}

.admin-user small {
    color: #8d9bb6;
}

.admin-user-caret {
    width: 8px;
    height: 8px;
    border-right: 1px solid #7f8da7;
    border-bottom: 1px solid #7f8da7;
    transform: rotate(45deg) translateY(-1px);
    margin-left: 2px;
}

.admin-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 112px;
    padding: 6px 0;
    border: 1px solid #e9eef6;
    background: #fff;
    box-shadow: 0 12px 24px rgba(43, 70, 109, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.18s ease;
    z-index: 50;
}

.admin-user-dropdown a {
    display: block;
    padding: 10px 22px;
    color: #445570;
    white-space: nowrap;
}

.admin-user-dropdown a:hover {
    background: #f7fbff;
}

.admin-user-menu:hover .admin-user-dropdown,
.admin-user-menu:focus-within .admin-user-dropdown,
.admin-user-menu.is-open .admin-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-page {
    padding: 18px 16px 28px;
}

.admin-page-head {
    margin-bottom: 14px;
}

.admin-page-head h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.admin-page-head p,
.admin-breadcrumb {
    margin: 0;
    color: #7d8ca8;
}

.admin-panel {
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(33, 64, 116, 0.06);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #eef2f8;
}

.admin-toolbar.is-stacked {
    display: grid;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 3px;
    border: 1px solid #d3dbe8;
    background: #fff;
    color: #41506c;
}

.admin-btn.is-primary {
    border-color: #3d93d5;
    background: #3d93d5;
    color: #fff;
}

.admin-btn.is-small {
    min-height: 34px;
    padding: 0 16px;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table th,
.admin-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf2f8;
    text-align: left;
    white-space: nowrap;
}

.admin-table thead th {
    background: #f7f8fa;
    color: #606f8c;
    font-weight: 700;
}

.admin-table tr:nth-child(even) td {
    background: rgba(250, 252, 255, 0.65);
}

.admin-table tr:hover td {
    background: #f5fbff;
}

.admin-table .is-check,
.admin-table .is-id,
.admin-table .is-status,
.admin-table .is-sort {
    width: 72px;
}

.admin-table .is-model {
    width: 120px;
}

.admin-table .is-actions {
    width: 220px;
}

.admin-inline-plus {
    display: inline-flex;
    width: 20px;
    color: #7c8ba6;
}

.admin-muted {
    color: #95a3bb;
    font-size: 13px;
    font-weight: 400;
}

.admin-actions a {
    color: #2f74ff;
    margin-right: 8px;
}

.status-dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--danger);
    vertical-align: middle;
}

.status-dot.is-on {
    background: var(--success);
}

.status-dot.is-off {
    background: #bfc7d6;
}

.admin-batch-bar,
.admin-table-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    padding: 14px 16px;
    color: #7d8ca8;
}

.admin-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
}

.tree-panel {
    padding-bottom: 12px;
}

.tree-panel-head {
    padding: 16px;
    border-bottom: 1px solid #eef2f8;
}

.tree-panel-tools {
    display: flex;
    gap: 10px;
    padding: 12px 16px 0;
}

.tree-panel-tools button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d8ca8;
}

.tree-list {
    list-style: none;
    margin: 0;
    padding: 8px 10px 0 12px;
}

.tree-list .tree-list {
    padding-top: 6px;
    padding-left: 18px;
}

.tree-item {
    margin-bottom: 6px;
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4d5f7d;
    text-align: left;
}

.tree-item.is-current > .tree-node,
.tree-node:hover {
    background: #f3f8ff;
}

.tree-node-symbol {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.tree-node-symbol::before,
.tree-node-symbol::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #97a5bf;
    transform: translate(-50%, -50%);
}

.tree-node-symbol::before {
    width: 10px;
    height: 2px;
}

.tree-node-symbol::after {
    width: 2px;
    height: 10px;
}

.tree-item.is-open > .tree-node .tree-node-symbol::after {
    display: none;
}

.tree-item > .tree-list {
    display: none;
}

.tree-item.is-open > .tree-list {
    display: block;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f708d;
}

.filter-row input,
.filter-row select {
    min-width: 150px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d8dfec;
    border-radius: 2px;
    background: #fff;
}

.thumb-flag {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-right: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, #7dc2ff, #3c8cff);
    vertical-align: middle;
}

.admin-subtabs {
    display: flex;
    gap: 28px;
    padding: 18px 16px 0;
    border-bottom: 1px solid #eef2f8;
}

.admin-subtabs a {
    position: relative;
    padding: 0 2px 14px;
    color: #566784;
}

.admin-subtabs a.is-active {
    color: #2f74ff;
}

.admin-subtabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #2f74ff;
}

.profile-panel,
.simple-panel {
    padding: 18px 20px 24px;
}

.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid #dfe8f4;
    background: #f8fbff;
    color: #5b6d89;
}

.form-alert.is-danger {
    border-color: #ffd6d6;
    background: #fff7f7;
    color: #c45252;
}

.form-alert.is-success {
    border-color: #d7efdd;
    background: #f5fff7;
    color: #3f8b57;
}

.admin-form {
    display: grid;
    gap: 12px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 460px);
    align-items: center;
    gap: 18px;
    min-height: 48px;
}

.admin-form-row > label {
    color: #5a6984;
    text-align: right;
}

.admin-form-row.is-avatar {
    align-items: start;
    margin-bottom: 8px;
}

.admin-form-row.is-textarea {
    align-items: start;
}

.admin-form-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-form-control input,
.admin-form-control textarea {
    width: 100%;
    min-height: 30px;
    padding: 8px 10px;
    border: 1px solid #d8dfec;
    background: #fff;
    color: #27395a;
}

.admin-form-control input[readonly] {
    background: #f8fafc;
    color: #51627d;
}

.admin-form-control textarea {
    min-height: 92px;
    resize: vertical;
}

.form-help-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #b9c7dd;
    border-radius: 50%;
    color: #7c8aa4;
    font-size: 12px;
    cursor: help;
    flex-shrink: 0;
}

.avatar-editor {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.avatar-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #dfe8f8, #f5f8fd);
    border: 1px solid #d5deec;
    color: #456285;
    font-size: 22px;
    font-weight: 700;
    overflow: hidden;
}

.avatar-preview.has-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-editor small {
    color: #7d8ca8;
    line-height: 1.7;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-left: 138px;
    padding-top: 8px;
}

.simple-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.simple-card,
.message-item {
    padding: 18px;
    border: 1px solid #e4ebf6;
    background: #f9fbff;
}

.simple-card.is-active {
    border-color: #b8d5ff;
    background: linear-gradient(180deg, #edf4ff, #f9fbff);
}

.simple-card strong,
.message-item strong {
    display: block;
    margin-bottom: 10px;
    color: #1f3558;
}

.simple-card span,
.message-item span {
    color: #6f7f9b;
    line-height: 1.7;
}

.message-list {
    display: grid;
    gap: 14px;
}

@media (max-width: 1200px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .resource-grid,
    .split-grid,
    .download-grid,
    .product-grid,
    .gallery-grid,
    .admin-grid,
    .simple-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .site-nav-toggle,
    .admin-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-dark);
    }

    .site-nav {
        position: absolute;
        left: 24px;
        right: 24px;
        top: calc(100% + 10px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 45px rgba(22, 44, 91, 0.12);
    }

    .site-nav-item > a {
        width: 100%;
        justify-content: space-between;
    }

    body.site-menu-open .site-nav {
        display: flex;
    }

    .site-nav-item:hover .site-nav-dropdown {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        margin-top: 10px;
        box-shadow: none;
    }

    .site-header-tools {
        margin-left: 0;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -180px;
        width: 158px;
        z-index: 60;
        transition: left 0.2s ease;
    }

    body.admin-sidebar-open .admin-sidebar {
        left: 0;
    }

    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 30;
    }

    .admin-user-dropdown {
        right: auto;
        left: 0;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100%, calc(100% - 24px));
    }

    .site-header-inner,
    .site-footer-inner,
    .about-card,
    .hero-actions,
    .mobile-actions,
    .admin-topbar,
    .admin-topbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header-inner {
        gap: 16px;
        padding: 14px 0;
    }

    .site-header-tools {
        width: 100%;
        justify-content: space-between;
    }

    .hero-panel,
    .content-card,
    .notice-card,
    .preview-card,
    .admin-page,
    .mobile-hero-card,
    .mobile-summary-card {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-copy h1,
    .about-card h2 {
        font-size: 34px;
    }

    .hero-copy p,
    .hero-visual-card p {
        font-size: 16px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .table-card {
        overflow-x: auto;
    }

    .table-card table {
        min-width: 640px;
    }

    .admin-table {
        min-width: 900px;
    }

    .admin-page-head h1,
    .section-head h2 {
        font-size: 24px;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-form-row > label {
        text-align: left;
    }

    .admin-form-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }

    .avatar-editor {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-shell {
        gap: 22px;
        width: min(100%, 100%);
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-card {
        width: 100%;
        padding: 24px 18px;
    }

    .login-captcha-row {
        grid-template-columns: 1fr;
    }
}
