/* ============================================================
   layout.css — 全站公共 header / footer 样式（由 includes/header.php 引入）
   页面内联的同类规则会保留，但本文件在文档后面加载，优先级更高。
   ============================================================ */

/* ---------- Header：Models 下拉（分区 > 公司 > 模型） ---------- */
.nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: rgba(18, 18, 18, 0.98);
            backdrop-filter: blur(10px);
            border: 1px solid #333;
            border-radius: 8px;
            min-width: 820px;
            padding: 8px 0;
            margin-top: 15px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 1001;
            display: flex; align-items: stretch;
            overflow: visible;
        }

.nav-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

.nav-dropdown-menu a {
            display: block;
            padding: 10px 20px;
            color: #ccc;
            text-decoration: none;
            font-size: 0.9em;
            transition: all 0.2s ease;
        }

.nav-dropdown-menu a:hover {
            background: rgba(2, 239, 254, 0.1);
            color: #02effe;
            padding-left: 25px;
        }

.nav-dropdown-menu a.active {
            color: #02effe;
            background: rgba(2, 239, 254, 0.05);
        }

.nav-dropdown-group { padding: 0 4px; }
.nav-dropdown-group + .nav-dropdown-group { border-left: 1px solid #333; }
.nav-dropdown-group-title { padding: 8px 20px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa3b2; white-space: nowrap; }
.nav-vendor-grid { display: block; column-count: 3; column-gap: 0; }
.nav-vendor { break-inside: avoid; -webkit-column-break-inside: avoid; padding: 0 0 6px; }
.nav-vendor-name { padding: 8px 20px 2px; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.nav-dropdown-menu .nav-vendor a { padding: 6px 20px; font-size: 0.9em; }

/* ---------- Footer ---------- */
.custom-footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 30px 0;
    font-size: 1em;
    border-top: 1px solid #222;
    margin-top: 80px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 0 30px;
}
.footer-section.footer-brand {
    flex: 1 1 320px;
    min-width: 260px;
    margin-bottom: 30px;
}
.footer-logo-title {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.footer-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}
.footer-desc {
    color: #aaa;
    margin-bottom: 18px;
    font-size: 1em;
    line-height: 1.6;
    max-width: 350px;
}
.footer-copyright {
    color: #666;
    font-size: 0.95em;
    margin-top: 18px;
}
.footer-section.footer-links {
    display: flex;
    flex: 2 1 500px;
    gap: 60px;
    justify-content: flex-end;
    min-width: 320px; flex-wrap: wrap;}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}
.footer-col-title {
    color: #02effe;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-size: 1em;
}
.footer-link { display: block; overflow-wrap: anywhere; color: #ccc;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
    font-size: 1em; }
.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    .footer-section.footer-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
}

/* 页脚中的 NEW / SOON 徽标（页面内规则只作用于 nav，这里补页脚作用域） */
.footer-models .new-badge { background: linear-gradient(135deg, #ff6b6b, #ee5a52); box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3); }
.footer-models .soon-badge { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3); }
.footer-models .new-badge, .footer-models .soon-badge { color: #fff; font-size: 10px; font-weight: bold; padding: 2px 6px; margin-left: 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; line-height: 1; display: inline-block; vertical-align: middle; }
/* 让 PLATFORM / LEGAL / CONTACT / LINKS 四列在一行内 */
.footer-section.footer-links { flex: 3 1 640px; gap: 40px; }

.footer-models { flex: 1 1 100%; margin-top: 14px; padding-top: 22px; border-top: 1px solid #222; }
.footer-models-title { color: #02effe; font-weight: bold; letter-spacing: 1px; margin: 0 0 12px; }
.footer-vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 30px; margin-bottom: 22px; }
.footer-vendor-name { color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-vendor .footer-link { margin-bottom: 2px; }
@media (max-width: 900px) {
  .nav-vendor-grid { column-count: 2; }
  .nav-dropdown-menu { min-width: 0; left: auto; right: 0; }
  .footer-vendor-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
