:root {
    --primary: #0f172a;
    --primary-soft: #1d4ed8;
    --secondary: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --bg: #f8fafc;
    --white: #ffffff;
    --dark-surface: #07111f;
    --dark-surface-2: #0b1728;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 26px 70px rgba(2, 8, 23, 0.28);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: #0f172a;
}

a {
    text-decoration: none;
}

.topbar {
    background: #08111e;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar a,
.topbar span {
    color: rgba(255, 255, 255, 0.78);
}

.topbar a:hover {
    color: #fff;
}

.main-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo,
.footer-logo,
.admin-login-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar .nav-link {
    color: #0f172a;
    font-weight: 600;
    padding: 0.75rem 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-soft);
}

.admin-avatar-button {
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-avatar-button::after {
    display: none;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.15);
}

.admin-avatar-lg {
    width: 54px;
    height: 54px;
}

.admin-dropdown-menu {
    min-width: 260px;
    padding: 0.75rem;
    border-radius: 20px;
}

.admin-dropdown-header {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.35rem 0.35rem 0.85rem;
}

.admin-name {
    font-weight: 700;
    color: #0f172a;
}

.admin-meta {
    font-size: 0.82rem;
    color: #64748b;
    word-break: break-all;
}

.social-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 12px;
}

.social-flip-card {
    perspective: 1000px;
    border: 0;
    padding: 0;
    background: transparent;
    min-height: 118px;
}

.social-flip-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 118px;
    transform-style: preserve-3d;
    transition: transform 0.55s ease;
}

.social-flip-card.is-flipped .social-flip-inner {
    transform: rotateY(180deg);
}

.social-flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 22px;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.social-flip-front span,
.social-contact-value {
    font-size: 0.82rem;
    font-weight: 600;
}

.social-flip-back {
    transform: rotateY(180deg);
    padding: 0.85rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
}

.social-app-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

.hero-enterprise,
.page-hero {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 28%),
        linear-gradient(135deg, #07111f 0%, #0f1f39 52%, #173a74 100%);
    color: var(--white);
}

.hero-enterprise {
    padding: 2rem 0 4rem;
}

.page-hero {
    padding: 4.5rem 0 6rem;
}

.page-title {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 1.2rem 0 0.9rem;
}

.page-subtitle {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.04rem;
    line-height: 1.8;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.55;
}

.hero-orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(96, 165, 250, 0.18);
    top: -100px;
    right: -80px;
}

.hero-orb-2 {
    width: 220px;
    height: 220px;
    background: rgba(147, 197, 253, 0.16);
    bottom: 20px;
    left: -40px;
}

.hero-tag,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
}

.section-kicker-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-description {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-stat-card,
.hero-panel,
.feature-card,
.showcase-card,
.consult-card,
.contact-info-panel,
.contact-form-card,
.admin-login-card,
.dark-info-card,
.mission-card,
.filter-card {
    border-radius: var(--radius-lg);
}

.hero-stat-card {
    padding: 1.1rem 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.hero-panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.2rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
}

.hero-panel-body {
    padding: 1.35rem;
}

.hero-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-metric-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.hero-metric-item span,
.hero-timeline-item p {
    color: rgba(255, 255, 255, 0.72);
}

.hero-metric-item strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
    color: #fff;
}

.hero-timeline {
    display: grid;
    gap: 14px;
}

.hero-timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.timeline-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.hero-timeline-item h3,
.feature-card h3,
.advantage-item h3,
.consult-card h3,
.dark-info-card h3,
.mission-item h3,
.showcase-row strong {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.brand-strip {
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.brand-strip .container {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 1.1rem 1.4rem;
}

.brand-strip-title {
    font-weight: 700;
    color: #0f172a;
}

.brand-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.brand-chip {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.section-space {
    padding: 6rem 0;
}

.section-light {
    background: #ffffff;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 3.2rem;
}

.section-heading h2,
.section-dark-title,
.contact-info-panel h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1rem;
}

.section-heading p,
.advantage-item p,
.showcase-highlight p,
.consult-card p,
.contact-info-panel p,
.submit-note,
.footer-text,
.dark-info-card p,
.mission-item p,
.section-dark-text {
    color: var(--secondary);
    line-height: 1.8;
}

.feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    font-weight: 800;
    margin-bottom: 1rem;
}

.advantage-list {
    display: grid;
    gap: 1.1rem;
}

.advantage-item,
.consult-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.4rem 1.5rem;
}

.showcase-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.showcase-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: #475569;
}

.showcase-row:last-child {
    border-bottom: 0;
}

.showcase-highlight {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 20px;
}

.section-dark {
    background: linear-gradient(180deg, #08111e 0%, #0b1728 100%);
    color: #fff;
}

.section-dark-text,
.dark-info-card p,
.mission-item p {
    color: rgba(255, 255, 255, 0.76);
}

.dark-info-card,
.mission-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.35rem;
}

.mission-card {
    display: grid;
    gap: 1rem;
}

.mission-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mission-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 800;
}

.contact-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.contact-info-panel {
    height: 100%;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.contact-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.contact-points li {
    position: relative;
    padding-left: 1.5rem;
    color: #334155;
}

.contact-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #1d4ed8;
}

.contact-form-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 2rem;
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(29, 78, 216, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(29, 78, 216, 0.12);
}

.flash-toast-layer {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 1085;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
}

.flash-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    color: #fff;
    background: rgba(7, 17, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(2, 8, 23, 0.18);
    backdrop-filter: blur(16px);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash-toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-toast-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex: 0 0 auto;
}

.flash-toast-body {
    min-width: 0;
}

.flash-toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.flash-toast-message {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.flash-toast-success .flash-toast-dot {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.flash-toast-danger .flash-toast-dot {
    background: #fb7185;
    box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.16);
}

.flash-toast-warning .flash-toast-dot {
    background: #fbbf24;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.16);
}

.flash-toast-info .flash-toast-dot {
    background: #60a5fa;
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.16);
}

textarea.form-control {
    resize: vertical;
}

.admin-entry-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.admin-login-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 2.2rem;
}

.dashboard-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-table thead th {
    background: #0f172a;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table td,
.admin-table th {
    vertical-align: top;
}

.admin-table {
    font-size: 0.88rem;
}

.admin-table thead th {
    padding: 0.85rem 0.8rem;
}

.admin-table td {
    padding: 0.72rem 0.8rem;
}

.message-cell {
    min-width: 150px;
    max-width: 220px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #475569;
    line-height: 1.55;
    font-size: 0.84rem;
}

.remark-column {
    min-width: 180px;
    width: 20%;
}

.update-column {
    min-width: 130px;
    width: 11%;
}

.action-column {
    min-width: 92px;
    width: 9%;
}

.admin-remark-field {
    min-height: 64px;
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 0.55rem 0.7rem;
}

.update-column .form-select {
    min-width: 120px;
    font-size: 0.82rem;
    padding: 0.45rem 2rem 0.45rem 0.7rem;
}

.action-stack {
    display: grid;
    gap: 0.45rem;
}

.action-btn {
    font-size: 0.76rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
}

.admin-time-cell {
    min-width: 142px;
}

.admin-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-pagination-meta {
    color: #475569;
    font-size: 0.92rem;
}

.admin-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-jump-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.admin-jump-label {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
}

.admin-jump-input {
    width: 88px;
}

.site-footer {
    background: #07111f;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.site-footer .row.g-4 {
    --bs-gutter-y: 1rem;
}

.site-footer .mb-3 {
    margin-bottom: 0.65rem !important;
}

.site-footer .social-flip-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.site-footer .social-flip-card {
    min-height: 72px;
}

.site-footer .social-flip-inner {
    height: 72px;
}

.site-footer .social-flip-face {
    gap: 6px;
    border-radius: 14px;
}

.site-footer .social-app-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.site-footer .social-flip-front span,
.site-footer .social-contact-value {
    font-size: 0.68rem;
}

.site-footer .footer-bottom .py-3 {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.footer-heading,
.footer-brand-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand-title {
    margin-bottom: 0.15rem;
    font-size: 1.1rem;
}

.footer-brand-subtitle {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links li + li {
    margin-top: 0.7rem;
}

.footer-links a,
.footer-bottom span {
    color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.min-vh-75 {
    min-height: 75vh;
}

@media (max-width: 991.98px) {
    .brand-mark {
        max-width: calc(100% - 52px);
    }

    .hero-enterprise {
        padding-top: 1rem;
    }

    .page-hero {
        padding: 3rem 0 4.5rem;
    }

    .hero-panel,
    .contact-info-panel,
    .contact-form-card,
    .feature-card,
    .showcase-card,
    .consult-card {
        border-radius: 20px;
    }
}

@media (max-width: 767.98px) {
    .flash-toast-layer {
        top: 78px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .brand-logo,
    .footer-logo,
    .admin-login-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-title,
    .page-title {
        font-size: 2.35rem;
    }

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

    .showcase-row {
        flex-direction: column;
    }

    .admin-pagination-wrap,
    .admin-pagination-controls,
    .admin-jump-form {
        align-items: stretch;
    }

    .section-space {
        padding: 4.5rem 0;
    }
}
