/* 基础样式 - 保持原有设计 */
:root {
    --bg: #0b0f14;
    --panel: #121821;
    --panel-2: #0f141c;
    --text: #e7eef7;
    --muted: #9fb3c8;
    --accent: #4ea1ff;
    --ring: #2b77d1;
    --card: #0f141c;
    --border: #1e2937;
    --shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f8fb;
        --panel: #ffffff;
        --panel-2: #ffffff;
        --text: #0f172a;
        --muted: #475569;
        --accent: #2563eb;
        --ring: #3b82f6;
        --card: #ffffff;
        --border: #e2e8f0;
        --shadow: 0 6px 16px rgba(2, 6, 23, .08);
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, Noto Sans SC, HarmonyOS_Regular, Helvetica, Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
    background: radial-gradient(1200px 700px at 10% -10%, rgba(78, 161, 255, .12), transparent),
        radial-gradient(1000px 600px at 90% 10%, rgba(78, 161, 255, .08), transparent),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
    cursor: none;
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* 鼠标跟踪效果 */
.cursor-follower {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(78, 161, 255, 0.2);
}

/* 导航栏 */
.main-nav {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-menu a {
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    background: rgba(78, 161, 255, 0.1);
}

.nav-menu a.active {
    background: var(--accent);
    color: white;
}

/* Header & search */
header {
    position: sticky;
    top: 56px;
    z-index: 30;
    background: linear-gradient(180deg, rgba(11, 15, 20, .9), rgba(11, 15, 20, .7));
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
}

.logo b {
    font-weight: 800;
    letter-spacing: .5px;
}

.tagline {
    color: var(--muted);
    font-size: 12px;
}

.search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.search-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: var(--shadow);
}

.search-input {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    min-width: 160px;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-btn,
.clear-btn {
    border: 0;
    background: var(--accent);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--ring);
    transform: translateY(-2px);
}

.clear-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.clear-btn:hover {
    background: var(--panel-2);
    color: var(--text);
}

.results-meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.results-meta b {
    color: var(--text);
}

/* Page title */
.page-title {
    padding: 32px 0 24px;
}

.page-title h1 {
    font-size: 32px;
    margin: 0 0 8px;
}

.page-title p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

/* Grid & cards */
.grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 32px;
}

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

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

.card {
    background: linear-gradient(180deg, var(--card), var(--panel));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:focus-within,
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.card__link {
    display: block;
}

.card__media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0b1220;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card__media img {
    transform: scale(1.05);
}

.card__body {
    padding: 10px 12px 12px;
}

.card__title {
    font-weight: 700;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.card__title mark {
    background: var(--accent);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
}

.card[hidden] {
    display: none;
}

.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    display: none;
}

.no-results.show {
    display: block;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.gallery-overlay p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    max-width: 600px;
}

.lightbox-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.lightbox-info p {
    margin: 0;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Details Layout */
.details-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 968px) {
    .details-layout {
        grid-template-columns: 1fr;
    }
}

.details-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.details-image img {
    width: 100%;
    display: block;
}

.details-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.details-content h2 {
    font-size: 24px;
    margin: 30px 0 16px;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.details-content h2:first-child {
    margin-top: 0;
}

.details-content p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.spec-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-size: 13px;
    color: var(--muted);
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 24px;
    position: relative;
    color: var(--muted);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.timeline-year {
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
}

.timeline-content {
    color: var(--muted);
}

.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.related-aircraft {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s;
}

.related-item:hover {
    background: var(--card);
    transform: translateX(5px);
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* About Page */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.about-section h2 {
    font-size: 28px;
    margin: 0 0 20px;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
}

.about-section p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text);
}

.feature-box p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tech-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-name {
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
}

.tech-desc {
    color: var(--muted);
    font-size: 14px;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.highlight-list li {
    margin-bottom: 20px;
    padding-left: 24px;
    position: relative;
}

.highlight-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 20px;
}

.highlight-list strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 16px;
}

.highlight-list p {
    margin: 0;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.coverage-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.coverage-item h4 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--text);
}

.coverage-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.disclaimer {
    background: var(--card);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.disclaimer p {
    margin-bottom: 12px;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.contact-info {
    margin-top: 20px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.contact-list li {
    padding: 12px 0;
    color: var(--muted);
}

.contact-list a {
    color: var(--accent);
    text-decoration: underline;
}

.contact-list a:hover {
    color: var(--ring);
}

/* Footer */
footer {
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 968px) {
    body {
        cursor: auto;
    }

    .cursor-follower {
        display: none;
    }

    .nav-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .page-title h1 {
        font-size: 24px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 12px 16px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
