* {
    box-sizing: border-box;
}

:root {
    --line: #e8edf7;
    --blue: #2563eb;
    --blue-deep: #0f4fda;
    --text: #1f2937;
    --muted: #64748b;
    --shadow: 0 20px 44px rgba(18, 56, 124, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background: #fff;
    --scroll-progress: 0%;
}

body.is-scrolled .model-header {
    box-shadow: 0 18px 34px rgba(16, 42, 95, 0.08);
}

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

button,
input {
    font: inherit;
}

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

.model-topbar {
    background: #f5f7fb;
    border-bottom: 1px solid #edf2fb;
    font-size: 12px;
    color: #70809b;
}

.model-topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.model-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.model-topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #24406f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.model-topbar-actions a.action-demo {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.16);
}

.model-topbar-actions a.action-admin {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0f766e;
    border-color: rgba(13, 148, 136, 0.16);
}

.model-topbar-actions a.action-register {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.model-topbar-actions a.action-login {
    background: rgba(255, 255, 255, 0.96);
    color: #173463;
}

.model-topbar .model-topbar-actions a:hover {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: transparent;
    transform: translateY(-2px);
    text-shadow: none;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.model-topbar .model-topbar-actions a.action-register:hover {
    color: #fff;
}

.model-topbar-inner > a:not(.model-topbar-notice) {
    display: none;
}

.model-topbar-notice,
.model-topbar-notice:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    color: #ca8a04;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-topbar-notice::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 13.25V10.75C4 9.78 4.78 9 5.75 9H8.08L13.66 5.28C14.82 4.5 16.38 5.33 16.38 6.73V17.27C16.38 18.67 14.82 19.5 13.66 18.72L8.08 15H5.75C4.78 15 4 14.22 4 13.25Z' fill='%23facc15'/%3E%3Cpath d='M18.2 8.4C19.61 10.28 19.61 13.72 18.2 15.6' stroke='%23facc15' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M20.75 6C23.08 8.78 23.08 15.22 20.75 18' stroke='%23facc15' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.model-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.model-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--scroll-progress);
    height: 2px;
    background: linear-gradient(90deg, #3cc4ff 0%, #316dff 50%, #ffcc68 100%);
    box-shadow: 0 0 12px rgba(49, 109, 255, 0.36);
    transition: width .12s linear;
}

.model-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.model-brand {
    flex: 0 0 auto;
    font-size: 30px;
    font-weight: 700;
    color: #1261ff;
    letter-spacing: 1px;
}

.model-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    color: #24364d;
}

.model-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 2px 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
}

.model-nav a[href$="portal_solutions.php"] {
    display: none;
}

.model-nav a::before {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: 2px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
    opacity: 0;
    transform: translateY(8px) scale(.92);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}

.model-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f8dff, #1261ff);
    box-shadow: 0 10px 18px rgba(18, 97, 255, 0.22);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .24s ease, transform .24s ease;
}

.model-nav a.active,
.model-nav a:hover,
.model-topbar a:hover,
.model-footer-grid a:hover {
    color: var(--blue);
}

.model-nav a.active,
.model-nav a:hover {
    transform: translateY(-2px);
    text-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.model-nav a.active::before,
.model-nav a:hover::before,
.model-nav a.active::after,
.model-nav a:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.model-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #2c74ff 0%, #1050dc 100%);
    box-shadow: 0 14px 28px rgba(16, 80, 220, 0.24);
}

.ghost-btn {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-3px);
}

.model-hero {
    padding: 34px 0 40px;
    background:
        radial-gradient(circle at left top, rgba(103, 184, 255, 0.18) 0%, rgba(103, 184, 255, 0) 24%),
        radial-gradient(circle at right top, rgba(118, 119, 255, 0.16) 0%, rgba(118, 119, 255, 0) 28%),
        linear-gradient(180deg, #eef4ff 0%, #f7faff 100%);
}

.model-search-box {
    padding: 34px;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    font-size: 13px;
}

.model-search-copy h1 {
    margin: 16px 0 10px;
    font-size: 42px;
    line-height: 1.2;
}

.model-search-copy p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.model-search-form {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 14px;
}

.model-search-form input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 1px solid #dbe7f8;
    border-radius: 16px;
    background: #f9fbff;
    outline: none;
}

.model-search-form button {
    height: 56px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2c74ff 0%, #1050dc 100%);
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(16, 80, 220, 0.24);
}

.device-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
}

.device-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f3f7ff;
    color: #3f4f65;
}

.category-cloud {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.category-cloud a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e7eef9;
    color: #425166;
    box-shadow: 0 8px 20px rgba(18, 56, 124, 0.04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.category-cloud a.active,
.category-cloud a:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 16px 28px rgba(18, 56, 124, 0.08);
}

.category-cloud span {
    color: #8b9aaf;
    font-size: 12px;
}

.model-main {
    padding: 72px 0 84px;
}

.template-section,
.advantage-section,
.keyword-section {
    margin-bottom: 78px;
}

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

.section-head.compact {
    margin-bottom: 22px;
}

.section-head h2,
.section-title h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
}

.section-head p,
.section-title p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.section-head a {
    color: var(--blue);
    font-size: 14px;
    white-space: nowrap;
}

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

.template-card {
    border-radius: 28px;
    background: #fff;
    border: 1px solid #eef3fb;
    box-shadow: 0 18px 36px rgba(19, 58, 124, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease, box-shadow .22s ease;
}

.template-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.template-card:hover {
    box-shadow: 0 26px 48px rgba(18, 56, 124, 0.14);
}

.template-thumb {
    position: relative;
    aspect-ratio: 1.12 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #dce8ff 0%, #f7faff 100%);
}

.template-thumb img,
.template-fallback {
    width: 100%;
    height: 100%;
}

.template-thumb img {
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.template-card:hover .template-thumb img {
    transform: scale(1.05);
}

.template-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 28%),
        linear-gradient(135deg, #5fb8ff 0%, #1f5fff 100%);
}

.template-fallback span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.template-overlay {
    position: absolute;
    inset: auto 20px 20px 20px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .24s ease, transform .24s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
    transform: translateY(0);
}

.template-overlay a {
    flex: 1;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 80, 220, 0.92);
    color: #fff;
    backdrop-filter: blur(10px);
}

.template-overlay a.light {
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
}

.template-info {
    padding: 22px 22px 24px;
}

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

.template-meta span {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    font-size: 12px;
}

.template-meta strong {
    color: #0f4fda;
    font-size: 18px;
}

.template-info h3 {
    margin: 14px 0 10px;
    font-size: 22px;
    line-height: 1.4;
}

.template-info p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.template-info em {
    display: block;
    margin-top: 14px;
    font-style: normal;
    color: #8c97a8;
    font-size: 13px;
}

.advantage-section {
    padding: 38px;
    border-radius: 34px;
    background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

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

.advantage-card {
    padding: 26px 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eaf0fb;
    box-shadow: 0 12px 28px rgba(18, 56, 124, 0.06);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.advantage-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card strong {
    display: block;
    color: var(--blue);
    font-size: 30px;
}

.advantage-card h3 {
    margin: 14px 0 10px;
    font-size: 18px;
}

.advantage-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.advantage-cta {
    margin-top: 30px;
    text-align: center;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f3f7ff;
    color: #516173;
    font-size: 14px;
}

.model-footer {
    background: #0f172a;
    color: #c8d0dd;
    padding: 54px 0 20px;
}

.model-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr;
    gap: 24px;
}

.model-footer-grid h4 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 16px;
}

.model-footer-grid a,
.footer-contact span,
.footer-contact em,
.footer-contact p {
    display: block;
    color: #9eafc8;
    font-size: 14px;
}

.model-footer-grid a + a {
    margin-top: 12px;
}

.footer-contact strong {
    display: block;
    margin-top: 12px;
    color: #fff;
    font-size: 34px;
}

.footer-contact em {
    margin-top: 8px;
    font-style: normal;
}

.footer-contact p {
    margin: 10px 0 0;
}

.footer-copy {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 12px;
    color: #73839d;
}

.reveal,
.reveal-card,
.reveal-delay-1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible,
.reveal-card.is-visible,
.reveal-delay-1.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .12s;
}

@media (max-width: 1160px) {
    .category-cloud,
    .template-grid,
    .advantage-grid,
    .model-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .model-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .model-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 18px;
    }

    .model-search-copy h1,
    .section-head h2,
    .section-title h2 {
        font-size: 30px;
    }

    .model-search-form,
    .category-cloud,
    .template-grid,
    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .section-title,
    .model-footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .page-wrap {
        width: min(100% - 20px, 1200px);
    }

    .model-topbar-inner,
    .model-header-actions,
    .model-topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .model-topbar-actions {
        gap: 12px;
    }

    .model-topbar-actions a {
        width: 100%;
        min-height: 40px;
    }

    .model-search-box,
    .advantage-section {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .device-tabs {
        gap: 10px;
    }

    .device-tabs a,
    .category-cloud a {
        width: 100%;
    }
}

/* Front portal polish 2026-07-08 */
.model-header {
    backdrop-filter: blur(18px);
}

.model-nav a {
    font-weight: 700;
}

.model-header-actions .primary-btn,
.model-topbar-actions .action-register,
.template-filter-bar button,
.template-overlay a:first-child {
    background: #1458d4;
    box-shadow: 0 12px 24px rgba(20, 88, 212, 0.16);
}

.model-search-box {
    border-radius: 24px;
    box-shadow: 0 22px 46px rgba(18, 56, 124, 0.12);
}

.model-search-copy h1 {
    letter-spacing: 0;
}

.model-search-copy p {
    max-width: 620px;
}

.template-filter-bar {
    align-items: end;
    border-radius: 18px;
}

.template-filter-bar label {
    flex: 1 1 150px;
}

.template-filter-bar select,
.template-filter-bar button,
.template-filter-bar a,
.model-search-form input,
.model-search-form button {
    border-radius: 10px;
}

.category-cloud a {
    border-radius: 12px;
}

.template-grid {
    gap: 22px;
}

.template-card {
    border-radius: 14px;
    border: 1px solid #e7edf6;
    box-shadow: 0 18px 36px rgba(18, 56, 124, 0.08);
}

.template-thumb {
    aspect-ratio: 4 / 3;
}

.template-overlay {
    gap: 10px;
}

.template-overlay a {
    border-radius: 10px;
}

.template-info {
    padding: 16px;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 10px;
}

.template-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f2f6fb;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.template-info h3 {
    margin-top: 0;
    min-height: 48px;
}

.template-info p {
    min-height: 44px;
}

.template-info em {
    color: #1458d4;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 640px) {
    .template-info h3,
    .template-info p {
        min-height: 0;
    }
}
