.site-body {
    font-family: 'Inter', '微软雅黑', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #edf2fb 0%, #e2ecff 50%, #f8fbff 100%);
    color: #1e293b;
}

.site-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 4px 24px rgba(100, 116, 139, 0.15);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
    position: relative;
}

.site-brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: #0f172a;
    text-decoration: none;
}

.site-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-links li {
    position: relative;
}

.site-nav nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-links a:hover,
.site-links a.is-active {
    color: #2563eb;
}

.site-links .has-sub > a::after {
    content: '▾';
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 9rem;
    padding: 0.35rem 0.25rem 0.5rem;
    margin: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.9rem;
    box-shadow: 0 16px 40px rgba(148, 163, 184, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.35);
    z-index: 30;
}

.sub-menu li {
    padding: 0;
}

.sub-menu li + li {
    margin-top: 0.15rem;
}

.sub-menu a {
    display: block;
    padding: 0.4rem 0.9rem;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #1e293b;
}

.sub-menu a:hover,
.sub-menu a.is-active {
    background: rgba(219, 234, 254, 0.9);
    color: #1d4ed8;
    border-radius: 999px;
}

.site-links li.has-sub:hover > .sub-menu {
    display: block;
}

.primary-btn {
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    color: #fff;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.primary-btn:hover {
    opacity: 0.9;
}

.site-main {
    padding: 3.5rem 0 4.5rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.25);
    padding: 2.25rem;
}

.model-page {
    max-width: 880px;
    margin: 0 auto;
}

.model-hero {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 1rem 0 0;
}

.model-hero small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #94a3b8;
}

.model-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 900px) {
    .model-grid.two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.surface-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    background: #ffffff;
}

.surface-card h3 {
    margin-top: 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

.module-card h3 {
    margin-bottom: 0.7rem;
}

.module-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 首页卡片描述：固定两行左右的高度，让按钮垂直位置一致 */
.home-card-desc {
    min-height: 3.4rem;
}

.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.sub-nav a {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
}

.sub-nav a.is-active {
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    color: #fff;
    border-color: transparent;
}

.upload-dropzone {
    border: 1.5px dashed rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    background: rgba(248, 250, 252, 0.95);
}

.upload-dropzone:hover {
    border-color: #2563eb;
    background: rgba(229, 239, 255, 0.9);
}

.upload-dropzone input[type="file"] {
    display: none;
}

.upload-dropzone svg {
    color: #2563eb;
    margin-bottom: 0.6rem;
}

.upload-dropzone p {
    margin: 0.35rem 0;
    color: #1e293b;
}

.upload-dropzone span {
    color: #64748b;
    font-size: 0.85rem;
}

.stacked-form > * + * {
    margin-top: 1rem;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding: 2rem 0;
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

.form-card label {
    color: #0f172a;
    margin-bottom: 0.35rem;
    display: block;
}

.form-card input[type="file"],
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    box-sizing: border-box;
}

.primary-action {
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.6rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.primary-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.9rem;
}

.media-frame {
    width: 100%;
    margin-top: 1.5rem;
    background: #f3f4f6;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
    border-radius: 999px;
}

.media-frame img,
.media-frame video {
    width: 100%;
    display: block;
}

.media-frame--visual {
    margin-top: 1.25rem;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.media-frame--visual img,
.media-frame--visual video {
    border-radius: 12px;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border-sm {
    width: 0.85rem;
    height: 0.85rem;
    border-width: 2px;
}

.analysis-banner {
    margin-top: 1.25rem;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #f8fafc;
    font-size: 0.98rem;
}

.analysis-banner strong {
    font-weight: 700;
    margin-right: 0.25rem;
}

.analysis-banner--danger {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #b91c1c;
}

.analysis-banner--warning {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
    color: #92400e;
}

.analysis-banner--ok {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #065f46;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.result-table th,
.result-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.45rem 0.75rem;
    text-align: left;
}

.result-table th {
    background-color: #e5edff;
    color: #0f172a;
    font-weight: 600;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.d-none {
    display: none !important;
}

