:root {
    --bg: #f4f8ff;
    --panel: rgba(255, 255, 255, 0.72);
    --line: rgba(112, 144, 209, 0.12);
    --text: #10213d;
    --muted: #61708d;
    --primary: #2b6bff;
    --primary-dark: #1f53cf;
    --accent: #8ac2ff;
    --luxury: #d9e9ff;
    --luxury-warm: rgba(255, 244, 224, 0.58);
    --success: #1aa36f;
    --danger: #cf2d4f;
    --shadow: 0 20px 60px rgba(20, 53, 120, 0.1);
}

@keyframes floatGlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -10px, 0) scale(1.03);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes breathingGlow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(43, 107, 255, 0.08), 0 18px 50px rgba(29, 83, 189, 0.1);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 22px rgba(176, 214, 255, 0.18), 0 26px 66px rgba(29, 83, 189, 0.14);
        transform: translateY(-1px);
    }
}

@keyframes shimmerFlow {
    0% {
        transform: translateX(-130%) skewX(-22deg);
        opacity: 0;
    }
    20% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.28;
    }
    100% {
        transform: translateX(160%) skewX(-22deg);
        opacity: 0;
    }
}

@keyframes scanMove {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(220%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes textPulse {
    0%,
    100% {
        text-shadow: 0 0 0 rgba(43, 107, 255, 0);
    }
    50% {
        text-shadow: 0 0 18px rgba(43, 107, 255, 0.2);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(171, 208, 255, 0.28), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 244, 224, 0.28), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #eef4ff 48%, #f5f8ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 249, 255, 0.62));
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 34px rgba(40, 71, 132, 0.06);
    overflow: hidden;
}

.site-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    width: 220px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), rgba(248, 234, 214, 0.34), transparent);
    animation: shimmerFlow 12s linear infinite;
    pointer-events: none;
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(160px, 220px);
    align-items: center;
    gap: 24px;
    min-height: 86px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand strong,
.admin-brand {
    font-size: 18px;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    line-height: 1.2;
    word-break: break-word;
}

.brand span,
.header-contact span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7ca6ff, #4da4ff 50%, #dfeeff 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(74, 121, 214, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: breathingGlow 6.5s ease-in-out infinite;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-badge-ring {
    position: absolute;
    inset: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.46), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.brand-badge-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-align: center;
    transform: translateY(0.5px);
    text-shadow: 0 1px 2px rgba(45, 92, 180, 0.28);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    min-width: 0;
}

.nav a,
.admin-nav a {
    color: var(--muted);
    transition: 0.2s ease;
    white-space: nowrap;
}

.nav a:hover,
.admin-nav a:hover,
.text-link:hover {
    color: var(--primary);
}

.header-contact {
    text-align: right;
    justify-self: end;
    white-space: nowrap;
}

.hero-section,
.page-banner {
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(214, 232, 255, 0.18) 34%, transparent 66%),
        linear-gradient(180deg, rgba(255, 244, 224, 0.16), transparent 48%);
    pointer-events: none;
    animation: gradientShift 20s ease infinite;
    background-size: 200% 200%, auto;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 38vw;
    height: 38vw;
    min-width: 280px;
    min-height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(163, 202, 255, 0.26), rgba(255, 244, 224, 0.12) 48%, transparent 72%);
    filter: blur(14px);
    animation: floatGlow 11s ease-in-out infinite;
    pointer-events: none;
}

.hero-grid,
.two-col,
.admin-section-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 86px 0 72px;
    align-items: center;
}

.hero-tag,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(43, 107, 255, 0.1);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

.hero-section h1,
.page-banner h1 {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.08;
    margin: 18px 0 16px;
}

.hero-subtitle,
.page-banner p {
    font-size: 18px;
    color: var(--muted);
}

.hero-body,
.rich-text,
.panel p {
    line-height: 1.8;
    color: #384862;
    overflow-wrap: anywhere;
}

.hero-actions,
.button-row,
.toolbar,
.job-head,
.detail-grid,
.stats-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn,
button,
input,
textarea,
select {
    font: inherit;
}

.btn,
.text-button {
    border: 0;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #5f86e8, #79b8ff 52%, #d8e8ff 100%);
    box-shadow: 0 14px 36px rgba(72, 114, 205, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite, breathingGlow 6.2s ease-in-out infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5678d6, #6facff 55%, #cfdef8 100%);
}

.btn-secondary {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(238, 245, 255, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.section,
.page-banner {
    padding: 64px 0;
}

.alt-section {
    background: rgba(255, 255, 255, 0.4);
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}

.section-head.left {
    text-align: left;
}

.card-grid,
.stats-grid {
    display: grid;
    gap: 20px;
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.panel,
.hero-card,
.stat-card,
.login-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(245, 249, 255, 0.56)),
        var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.info-card,
.panel,
.hero-card,
.stat-card {
    padding: 24px;
}

.info-card:hover,
.panel:hover,
.news-item:hover,
.news-panel:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 66px rgba(26, 61, 130, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.info-card,
.panel,
.news-item,
.news-panel,
.stat-card,
.btn,
.brand-badge {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.glow-card {
    position: relative;
    animation: floatGlow 9.5s ease-in-out infinite;
}

.glow-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(167, 201, 255, 0.52), rgba(255, 243, 224, 0.3), rgba(138, 194, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: gradientShift 14s ease infinite;
    background-size: 200% 200%;
}

.panel::before,
.info-card::before,
.stat-card::before,
.news-item::before,
.news-panel::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -45%;
    width: 36%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), rgba(255, 245, 230, 0.22), transparent);
    transform: skewX(-24deg);
    animation: shimmerFlow 15s linear infinite;
    pointer-events: none;
}

.hero-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -24%;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(207, 228, 255, 0.18), transparent);
    animation: scanMove 11s linear infinite;
    pointer-events: none;
}

.feature-list,
.stack-list,
.contact-list {
    display: grid;
    gap: 14px;
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-item,
.news-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(245, 249, 255, 0.58));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.news-item > div,
.news-panel > div {
    min-width: 0;
}

.page-banner {
    padding-bottom: 40px;
}

.page-breadcrumb,
.meta-line,
.arrow,
.verify-note,
.small-text,
.article-summary {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.narrow {
    width: min(880px, 100%);
}

.top-gap {
    margin-top: 20px;
}

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

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

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

.full-line {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    color: #2f3c54;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.76));
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.query-bar {
    display: flex;
    gap: 14px;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 255, 0.6));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.query-bar input {
    flex: 1;
    border: 0;
    background: transparent;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.detail-grid div {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(238, 245, 255, 0.5));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.detail-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    padding: 36px 0 42px;
    color: #54627b;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 8%;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(172, 204, 255, 0.18), rgba(255, 244, 224, 0.08) 45%, transparent 68%);
    animation: floatGlow 14s ease-in-out infinite;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(43, 107, 255, 0.08);
}

.flash-wrap {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
}

.flash-success {
    background: rgba(26, 163, 111, 0.1);
    color: var(--success);
}

.flash-error {
    background: rgba(207, 45, 79, 0.1);
    color: var(--danger);
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.admin-body,
.login-body {
    background: linear-gradient(180deg, #eef5ff 0%, #f7fbff 100%);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    padding: 24px 18px;
    background: rgba(16, 33, 61, 0.96);
    color: rgba(255, 255, 255, 0.78);
}

.admin-nav {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 14px;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    margin-bottom: 22px;
}

.stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 22px;
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
}

.stat-card strong {
    font-size: 32px;
}

.hero-tag,
.chip {
    animation: breathingGlow 8.4s ease-in-out infinite;
}

.stat-card strong {
    animation: textPulse 7.8s ease-in-out infinite;
}

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

.admin-section-grid.two {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

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

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

.admin-table th,
.admin-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(43, 107, 255, 0.08);
    vertical-align: top;
    text-align: left;
}

.actions,
.inline-form,
.toolbar-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.text-button {
    background: transparent;
    padding: 0;
}

.danger {
    color: var(--danger);
}

.table-like {
    display: grid;
    gap: 12px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(43, 107, 255, 0.12);
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-check input {
    width: 18px;
    min-height: 18px;
}

.form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toolbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.login-card {
    width: min(460px, calc(100% - 32px));
    margin: 10vh auto;
    padding: 32px;
}

@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: minmax(240px, 1fr) auto;
        grid-template-areas:
            "brand contact"
            "nav nav";
        align-items: start;
        gap: 14px 20px;
        padding: 16px 0;
    }

    .brand {
        grid-area: brand;
    }

    .nav {
        grid-area: nav;
        justify-content: flex-start;
    }

    .header-contact {
        grid-area: contact;
        align-self: center;
    }

    .hero-grid,
    .two-col,
    .admin-section-grid.two,
    .card-grid.three,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-layout {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 820px) {
    .query-bar,
    .toolbar,
    .news-item,
    .news-panel,
    .footer-grid,
    .hero-grid,
    .two-col,
    .admin-layout,
    .admin-form-grid,
    .admin-section-grid,
    .admin-section-grid.two,
    .card-grid.three,
    .stats-grid,
    .detail-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .header-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "contact"
            "nav";
        gap: 12px;
        padding: 14px 0;
        min-height: auto;
    }

    .brand {
        align-items: center;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .brand-copy span {
        font-size: 12px;
    }

    .header-contact,
    .nav {
        justify-self: start;
        text-align: left;
    }

    .nav {
        gap: 10px 14px;
    }

    .hero-section h1,
    .page-banner h1 {
        font-size: clamp(28px, 10vw, 42px);
    }

    .hero-subtitle,
    .page-banner p,
    .hero-body {
        font-size: 16px;
    }

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

    .hero-actions .btn,
    .query-bar .btn {
        width: 100%;
    }

    .job-head {
        align-items: flex-start;
    }

    .chip {
        white-space: normal;
    }

    .sticky-card {
        position: static;
    }

    .admin-sidebar {
        padding-bottom: 10px;
    }

    .admin-main {
        padding: 18px;
    }

    .query-bar {
        padding: 18px;
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, 1200px);
    }

    .site-header {
        position: static;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-badge {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand-badge-ring {
        inset: 4px;
        border-radius: 10px;
    }

    .brand-badge-label {
        font-size: 11px;
    }

    .nav {
        gap: 8px 12px;
        font-size: 15px;
    }

    .section,
    .page-banner {
        padding: 44px 0;
    }

    .info-card,
    .panel,
    .hero-card,
    .stat-card,
    .news-item,
    .news-panel,
    .login-card {
        padding: 18px;
        border-radius: 20px;
    }

    .query-bar {
        padding: 14px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 14px;
    }
}
