/*
 =====================================================
 半岛精密仪器 WordPress 主题 - 完整样式
 色彩：深海蓝 #1a3a5c | 活力橙 #e67e22
 =====================================================
*/

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2942;
    --primary-light: #2c5282;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f0f2f5;
    --border: #e5e5e5;
    --shadow: rgba(0,0,0,0.08);
    --shadow-hover: rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-sm: 4px;
}

/* ============================================
 基础样式
 ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ============================================
 通用样式
 ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-outline-white {
    background: transparent;
    color: var(--bg-white);
    border: 1px solid var(--bg-white);
}

.btn-outline-white:hover {
    background: var(--bg-white);
    color: var(--primary);
}

/* ============================================
 顶部导航
 ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 12px var(--shadow);
}

.header-top {
    background: var(--primary);
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
}

.header-contact span {
    margin-right: 20px;
}

.header-contact svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

.header-main {
    height: 70px;
    background: var(--bg-white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-logo {
    max-height: 42px;
    width: auto;
}

/* 导航菜单 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    background: rgba(230, 126, 34, 0.08);
}

.header-cta .btn {
    padding: 8px 18px;
    font-size: 13px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ============================================
 轮播图区域
 ============================================ */
.hero-section {
    margin-top: 106px;
    position: relative;
    height: 480px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    color: var(--bg-white);
}

.hero-badge {
    display: inline-block;
    background: rgba(230, 126, 34, 0.25);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 12px;
}

.hero-visual {
    flex: 0 0 420px;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: 280px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* 轮播指示器 */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s;
    color: var(--bg-white);
}

.hero-arrow:hover {
    background: var(--accent);
}

/* ============================================
 关于我们
 ============================================ */
.about-section {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 18px;
    height: 18px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.about-stat {
    text-align: center;
}

.about-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.about-stat-num span {
    color: var(--accent);
}

.about-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.about-img-box {
    background: var(--bg-lighter);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.about-img-placeholder {
    text-align: center;
    color: var(--text-light);
}

.about-img-placeholder svg {
    width: 120px;
    height: 100px;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ============================================
 产品中心
 ============================================ */
.products-section {
    background: var(--bg-lighter);
}

.products-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.products-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s;
}

.products-tab:hover,
.products-tab.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.product-img {
    height: 180px;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img svg {
    width: 80px;
    height: 80px;
    color: var(--text-light);
    opacity: 0.4;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--bg-white);
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 3px;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-model {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-btns {
    display: flex;
    gap: 8px;
}

.product-btns .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

.products-more {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
 核心优势
 ============================================ */
.features-section {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px var(--bg-light;
    background:);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.feature-card:hover .feature-icon {
    background: rgba(255,255,255,0.2);
    color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.feature-card:hover .feature-desc {
    color: rgba(255,255,255,0.8);
}

/* ============================================
 应用领域
 ============================================ */
.applications-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 50px 0;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.app-item {
    text-align: center;
    padding: 28px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: var(--bg-white);
    transition: all 0.3s;
}

.app-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.app-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    background: rgba(230, 126, 34, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.app-icon svg {
    width: 26px;
    height: 26px;
}

.app-name {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
 新闻资讯
 ============================================ */
.news-section {
    background: var(--bg-lighter);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.news-link {
    display: block;
}

.news-img {
    height: 160px;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img svg {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    opacity: 0.3;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-white);
    padding: 2px 10px;
    font-size: 11px;
    border-radius: 3px;
    margin: 12px 0 0 12px;
}

.news-body {
    padding: 16px;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
 联系我们
 ============================================ */
.contact-section {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
}

.contact-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group label span {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-message {
    margin-top: 16px;
    padding: 10px;
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ============================================
 页脚
 ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
}

.footer-main {
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about .logo-text .logo-main {
    color: var(--bg-white);
    font-size: 16px;
}

.footer-about p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 14px;
    opacity: 0.75;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    opacity: 0.75;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links a {
    margin-left: 16px;
    opacity: 0.6;
}

.footer-bottom-links a:hover {
    opacity: 1;
}

/* 产品对比浮窗 */
.compare-float {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px var(--shadow);
    padding: 16px 0;
    z-index: 999;
}

.compare-float-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.compare-count {
    font-size: 14px;
    color: var(--text-gray);
}

.count-number {
    font-weight: 600;
    color: var(--accent);
}

.compare-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
 响应式
 ============================================ */
@media (max-width: 992px) {
    .hero-section {
        height: 400px;
    }

    .hero-slide-inner {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img-box {
        order: -1;
        min-height: 260px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .site-header {
        top: 0;
    }

    .hero-section {
        margin-top: 60px;
        height: 320px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================
 面包屑
 ============================================ */
.bandao-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-light);
    margin-bottom: 20px;
}

.bandao-breadcrumb a {
    color: var(--primary);
}

.bandao-breadcrumb a:hover {
    color: var(--accent);
}

/* ============================================
 单文章/页面样式
 ============================================ */
.single-content,
.page-content {
    padding: 30px 0;
}

.single-content h1,
.page-content h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.single-content h2,
.page-content h2 {
    font-size: 24px;
    color: var(--primary);
    margin: 30px 0 15px;
}

.single-content h3,
.page-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin: 25px 0 12px;
}

.single-content p,
.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.single-content img,
.page-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

/* Mamba 极致下拉菜单补丁 */
.nav-menu ul {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: inline-block;
    position: relative;
}

/* 隐藏二级菜单并设置样式 */
.nav-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 2px solid #ff7a1a; /* 使用主题橙色作为顶线 */
    border-radius: 0 0 5px 5px;
    z-index: 9999;
    padding: 10px 0;
    text-align: left;
}

/* 垂直排列子菜单项 */
.nav-menu li ul.sub-menu li {
    display: block;
    width: 100%;
}

.nav-menu li ul.sub-menu li a {
    padding: 10px 20px;
    display: block;
    color: #333 !important;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s;
}

/* 鼠标悬停子项变色 */
.nav-menu li ul.sub-menu li a:hover {
    background: #f8f9fa;
    color: #ff7a1a !important;
    padding-left: 25px;
}

/* 核心逻辑：鼠标悬停父级显示子级 */
.nav-menu li:hover > ul.sub-menu {
    display: block;
    animation: mambaFadeIn 0.3s ease;
}

@keyframes mambaFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
