/* ==========================================================================
   Global Reset & Layout Base (旧版结构 + 新版极夜黑金配色)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

body {
    color: #0F172A;
    background-color: #F8FAFC;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Buttons & UI Elements (旧版 Pet 结构)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-radius: 20%;
    color: #ffffff;
    border: 1px solid #D97706;
}

.btn-primary:hover {
    background: #B45309;
    border-color: #B45309;
}

.btn-outline {
    background-color: transparent;
    border-radius: 20%;
    color: #090D16;
    border: 1px solid #090D16;
}

.btn-outline:hover {
    background-color: #090D16;
    color: #ffffff;
}

.btn-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #ffffff;
    border: 1px solid #D97706;
}

.btn-orange:hover {
    background: #B45309;
}

/* Section Title (旧版 Pet 样式) */
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #090D16;
    margin: 5px;
    position: relative;
}
.section-title-sub {
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 20px;
    color: #64748B;
}
.section-title::before, .section-title::after {
    content: "—";
    margin: 0 12px;
    color: #F59E0B;
}

/* Page Hero Header (Sub-page Banner) */
.page-banner {
    position: relative;
    background: linear-gradient(180deg, #090D16 0%, #1E293B 100%);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
}

.breadcrumb {
    font-size: 14px;
    margin-top: 10px;
    color: #CBD5E1;
}

.breadcrumb a {
    color: #fff;
}

/* ==========================================================================
   Header & Navigation (【新版头部】毛玻璃与极夜黑蓝样式)
   ========================================================================== */
.top-bar {
    background-color: #E3EDF0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    padding: 10px 0;
    color: #94A3B8;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .social-icons a {
    margin-left: 16px;
    color: #94A3B8;
    font-size: 14px;
}

.top-bar .social-icons a:hover {
    color: #F59E0B;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 0;
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 26px;
    color: #090D16;
    letter-spacing: -0.5px;
}

.logo span {
    color: #F59E0B;
}

.nav-menu {
    display: flex;
    gap: 36px;
    font-size: 15px;
    font-weight: 600;
}

.nav-menu a {
    color: #0F172A;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #F59E0B;
}

/* 二级菜单 */
.nav-menu .has-submenu {
    position: relative;
}

.nav-menu .submenu-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.25s ease;
}

.nav-menu .has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

.nav-menu .submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(9, 13, 22, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
}

.nav-menu .submenu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-menu .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .submenu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-menu .submenu li a span {
    font-size: 12px;
    font-weight: 500;
    color: #94A3B8;
    margin-left: 20px;
}

.nav-menu .submenu li a:hover {
    background: #FFF8EC;
    color: #F59E0B;
}

.nav-menu .submenu li a:hover span {
    color: #D97706;
}

.quote-btn {
    background: #090D16;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(9, 13, 22, 0.15);
}

.quote-btn:hover {
    background: #F59E0B;
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer (旧版 Pet 结构 + 新版极夜黑配色)
   ========================================================================== */
footer {
    background-color: #090D16;
    color: #94A3B8;
    padding: 70px 0 25px;
    font-size: 14px;
    margin-top: 60px;
    border-top: 3px solid #F59E0B;
    border-radius: 32px 32px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 40px;
    margin-bottom: 50px;
}

/* Logo 固定在位置1(row1,col1)，联系方式固定在位置5(row2,col1)，nav 自动填充 2/3/4/6/7/8 */
.footer-col--logo { grid-column: 1; grid-row: 1; }
.footer-col--contact { grid-column: 1; grid-row: 2; }

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: #F59E0B;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #64748B;
}

/* ==========================================================================
   Sidebar Component (旧版 Pet 样式)
   ========================================================================== */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    margin-bottom: 25px;
    overflow: hidden;
}

.widget-title {
    background-color: #090D16;
    color: #fff;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.widget-content {
    padding: 15px;
}

.widget-menu li {
    border-bottom: 1px dashed #E2E8F0;
}

.widget-menu li:last-child {
    border-bottom: none;
}

.widget-menu a {
    display: block;
    padding: 10px 5px;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s;
}

.widget-menu a:hover {
    color: #F59E0B;
    padding-left: 10px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 4px 10px;
    background: #FFFBEB;
    color: #64748B;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

.tag-cloud a:hover {
    background: #090D16;
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .footer-col--logo, .footer-col--contact { grid-column: auto; grid-row: auto; }
    .nav-menu { display: none; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}