/* ============================================
   RocsunWebsite - 共用样式文件
   ============================================ */

/* Google Fonts 导入 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   Tailwind CSS 自定义配置
   ============================================ */

/* 自定义颜色 - 通过 CSS 变量定义 */
:root {
    --color-forest: #256D3C;
    --color-vibrant: #34C37B;
    --color-lightbg: #F8FCFA;
    --color-darkgreen: #1e3a2c;
}

/* Tailwind 自定义颜色类 */
.bg-forest {
    background-color: var(--color-forest) !important;
}

.text-forest {
    color: var(--color-forest) !important;
}

.border-forest {
    border-color: var(--color-forest) !important;
}

.bg-vibrant {
    background-color: var(--color-vibrant) !important;
}

.text-vibrant {
    color: var(--color-vibrant) !important;
}

.hover\:bg-vibrant:hover {
    background-color: var(--color-vibrant) !important;
}

.hover\:text-vibrant:hover {
    color: var(--color-vibrant) !important;
}

.bg-lightbg {
    background-color: var(--color-lightbg) !important;
}

.bg-darkgreen {
    background-color: var(--color-darkgreen) !important;
}

.text-darkgreen {
    color: var(--color-darkgreen) !important;
}

/* 确保白色背景和文字颜色 */
.bg-white {
    background-color: #ffffff !important;
}

.text-white {
    color: #ffffff !important;
}

.text-gray-900 {
    color: #111827 !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.border-gray-100 {
    border-color: #E9F1E9 !important;
}

.border-gray-200 {
    border-color: #e5e7eb !important;
}

/* Tailwind 自定义 maxWidth */
.max-w-site {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 确保 mx-auto 正常工作 */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Tailwind 渐变类 */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-forest {
    --tw-gradient-from: var(--color-forest);
    --tw-gradient-to: rgba(37, 109, 60, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-lightbg {
    --tw-gradient-from: var(--color-lightbg);
    --tw-gradient-to: rgba(248, 252, 250, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-vibrant {
    --tw-gradient-to: var(--color-vibrant);
}

.to-white {
    --tw-gradient-to: #ffffff;
}

/* Tailwind 透明度支持 */
.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-forest\/10 {
    background-color: rgba(37, 109, 60, 0.1);
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tailwind 背景模糊效果 */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 确保 flex 布局正常工作 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* 确保 grid 布局正常工作 */
.grid {
    display: grid;
}

/* 确保间距类正常工作 */
.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* 确保响应式类正常工作 */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:space-x-4 > * + * {
        margin-left: 1rem;
        margin-top: 0;
    }
    
    .sm\:space-y-0 > * + * {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:w-1\/2 {
        width: 50%;
    }
    
    .md\:px-16 {
        padding-left: 4rem;
        padding-right: 4rem;
    }
    
    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:mb-10 {
        margin-bottom: 2.5rem;
    }
    
    .md\:mb-16 {
        margin-bottom: 4rem;
    }
    
    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .md\:py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .md\:h-500px {
        height: 500px;
    }
    
    .md\:h-56 {
        height: 14rem;
    }
    
    .md\:gap-8 {
        gap: 2rem;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:p-6 {
        padding: 1.5rem;
    }
    
    .md\:p-8 {
        padding: 2rem;
    }
    
    .md\:pr-16 {
        padding-right: 4rem;
    }
    
    .md\:mb-0 {
        margin-bottom: 0;
    }
    
    .md\:mb-6 {
        margin-bottom: 1.5rem;
    }
    
    .md\:mb-8 {
        margin-bottom: 2rem;
    }
    
    .md\:mb-12 {
        margin-bottom: 3rem;
    }
    
    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    
    .md\:h-\[400px\] {
        height: 400px;
    }
    
    .md\:pr-16 {
        padding-right: 4rem;
    }
    
    .md\:order-1 {
        order: 1;
    }
    
    .md\:order-2 {
        order: 2;
    }
    
    .md\:gap-12 {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 确保常用工具类正常工作 */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.overflow-hidden {
    overflow: hidden;
}

.object-cover {
    object-fit: cover;
}

.text-center {
    text-align: center;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.cursor-pointer {
    cursor: pointer;
}

.inline-block {
    display: inline-block;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-56 {
    height: 14rem;
}

.h-72 {
    height: 18rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.gap-3 {
    gap: 0.75rem;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.p-10 {
    padding: 2.5rem;
}

@media (min-width: 768px) {
    .md\:p-10 {
        padding: 2.5rem;
    }
}

.h-\[280px\] {
    height: 280px;
}

.h-\[300px\] {
    height: 300px;
}

.h-\[400px\] {
    height: 400px;
}

.h-\[420px\] {
    height: 420px;
}

@media (min-width: 768px) {
    .md\:h-\[420px\] {
        height: 420px;
    }
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.h-\[360px\] {
    height: 360px;
}

@media (min-width: 768px) {
    .md\:h-\[360px\] {
        height: 360px;
    }
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

/* 确保 order 类正常工作 */
.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

/* 确保 items-start 类正常工作 */
.items-start {
    align-items: flex-start;
}

/* 确保 flex-shrink-0 类正常工作 */
.flex-shrink-0 {
    flex-shrink: 0;
}

/* 确保 space-x 类正常工作 */
.space-x-3 > * + * {
    margin-left: 0.75rem;
}

/* 确保 gap 类正常工作 */
.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-2 {
    gap: 0.5rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* 确保图片变换效果正常工作 */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* 确保 padding 和 margin 类正常工作 */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

/* 确保 max-w 类正常工作 */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

/* 确保 border 类正常工作 */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-t-4 {
    border-top-width: 4px;
}

.border-b-4 {
    border-bottom-width: 4px;
}

/* 确保 border-white/20 类正常工作 */
.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* 确保 inline-flex 正常工作 */
.inline-flex {
    display: inline-flex;
}

/* ============================================
   基础样式 - 确保 Tailwind 重置样式生效
   ============================================ */

/* 重置样式以确保 Tailwind 正常工作 */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

body {
    margin: 0;
    font-family: 'Inter', 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 确保图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 确保按钮和链接样式正常 */
button {
    cursor: pointer;
}

a {
    text-decoration: inherit;
}

/* ============================================
   导航栏样式
   ============================================ */

/* Sticky Header */
header.sticky-top {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: #256D3C;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #256D3C;
}

/* Navigation Links */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

.navbar-nav .nav-item {
    margin: 0 0.5rem;
    list-style: none;
}

.navbar-nav .nav-link {
    color: #333333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.navbar-nav .nav-link:hover {
    color: #256D3C !important;
}

/* Primary CTA Button */
.navbar .btn-primary {
    background-color: #256D3C;
    border-color: #256D3C;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.navbar .btn-primary:hover {
    background-color: #1e5630;
    border-color: #1e5630;
    color: white;
}

/* Ensure navbar is visible */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Force navbar collapse to show on desktop - override Bootstrap collapse */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
        align-items: center !important;
    }
    
    .navbar-collapse.collapse {
        display: flex !important;
    }
    
    .navbar-collapse:not(.show) {
        display: flex !important;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    padding: 0.5rem 0.4rem;
    margin-top: 5px;
    min-width: 200px;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    color: #333333;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #256D3C;
}

/* Dropdown arrow icon - 精细的 V 形箭头，参考 ideabottles.com 样式 */
/* 确保导航链接使用 flexbox 对齐 */
.nav-link.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
}

.dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    border: solid #555555 !important;
    border-width: 0 1.5px 1.5px 0 !important;
    transform: rotate(45deg) !important;
    margin-top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    flex-shrink: 0 !important;
}

/* 确保导航菜单的下拉箭头可见 */
.nav-link.dropdown-toggle::after,
.navbar-nav .dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    border: solid #555555 !important;
    border-width: 0 1.5px 1.5px 0 !important;
    transform: rotate(45deg) !important;
    margin-top: -1px !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
}

/* ============================================
   Mega Menu 样式 - 参考 ideabottles.com
   ============================================ */
/* Large mega menu (Products) - static positioning for centered layout */
.dropdown-mega {
    position: static !important;
}

/* Single column mega menu - relative positioning for dropdown alignment */
.dropdown-mega.dropdown-mega-single {
    position: relative !important;
}

/* Navbar container needs relative positioning for mega menu */
.navbar .container {
    position: relative;
}

.dropdown-mega > .mega-menu {
    width: 100%;
    max-width: 900px;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background-color: #ffffff !important;
    top: calc(100% - 2px) !important;
    margin-top: 0;
    z-index: 1000;
    position: absolute;
}

/* Single column mega menu - smaller width */
.dropdown-mega > .mega-menu.mega-menu-sm {
    max-width: 280px;
    width: auto;
    min-width: 265px;
    left: auto !important;
    right: auto !important;
    padding: 1rem 1.7rem;
}

.mega-menu-inner {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    background-color: #ffffff;
}

.mega-menu-column {
    flex: 1;
    min-width: 160px;
    background-color: #ffffff;
}

.mega-menu-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-top: 0.5rem;
/*    padding-top: 0.5rem;*/
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    /*border-bottom: 2px solid var(--color-forest);*/
}

.mega-menu-title a {
    color: var(--color-forest);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega-menu-title a:hover {
    color: var(--color-vibrant);
}

.mega-menu-list {
    list-style: none;
    /*padding: 0px 2px 0px 0px;*/
    padding:0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.5rem;
}

.mega-menu-list li a {
    color: #555555;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.mega-menu-list li a:hover {
    color: var(--color-forest);
    padding-left: 0.5rem;
}

/* Desktop: Show mega menu on hover */
@media (min-width: 992px) {
    /* Show mega menu when hovering over dropdown or the menu itself */
    .dropdown-mega:hover > .mega-menu,
    .dropdown-mega > .mega-menu:hover {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-mega > .mega-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        margin-top: 0;
        position: absolute;
        top: 100%;
    }
    
    /* Single column mega menu - position relative to parent */
    .dropdown-mega > .mega-menu.mega-menu-sm {
        left: 0 !important;
        right: auto !important;
        transform: none;
    }
    
    /* Add invisible bridge to prevent menu from closing when moving mouse */
    .dropdown-mega > .mega-menu::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        right: 0;
        height: 15px;
        background: transparent;
    }
    
    /* Ensure mega menu columns and content keep the menu open */
    .mega-menu-inner,
    .mega-menu-column,
    .mega-menu-list,
    .mega-menu-list li,
    .mega-menu-list li a,
    .mega-menu-title,
    .mega-menu-title a {
        pointer-events: auto;
    }
}

/* Mobile: Stack columns vertically */
@media (max-width: 991px) {
    .dropdown-mega > .mega-menu {
        position: static;
        width: 100%;
        max-width: none;
        left: 0 !important;
        transform: none;
        padding: 1rem;
        box-shadow: none;
        border-top: 1px solid #eee;
        display: none;
    }
    
    .dropdown-mega > .mega-menu.show {
        display: block !important;
    }
    
    .mega-menu-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .mega-menu-column {
        border-bottom: 1px solid #eee;
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
    
    .mega-menu-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .mega-menu-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .mega-menu-list li a {
        font-size: 0.85rem;
        padding: 0.35rem 0 0.35rem 1rem;
    }
}

/* Multi-level Dropdown (Submenu) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.125rem;
    display: none;
    position: absolute;
}

.dropdown-submenu > .dropdown-toggle {
    position: relative;
}

/* 子菜单右箭头 - 精细的 > 形箭头 */
.dropdown-submenu > .dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 5px !important;
    height: 5px !important;
    border: solid #555555 !important;
    border-width: 0 1.5px 1.5px 0 !important;
    transform: rotate(-45deg) !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    margin-top: -3px !important;
    margin-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Desktop: Show dropdown on hover */
@media (min-width: 992px) {
    /* Keep dropdown visible when hovering over the dropdown item or menu */
    .nav-item.dropdown:hover > .dropdown-menu,
    .nav-item.dropdown .dropdown-menu:hover {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Submenu on hover - keep visible when hovering over submenu */
    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu .dropdown-menu:hover {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* 悬停时箭头不旋转，保持原样 */
    .nav-item.dropdown:hover > .nav-link.dropdown-toggle::after {
        transform: rotate(45deg) !important;
    }
    
    /* Hide dropdown by default */
    .dropdown-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    
    /* Ensure submenu doesn't go off screen */
    .dropdown-menu-end .dropdown-submenu > .dropdown-menu {
        left: auto;
        right: 100%;
    }
    
    /* Remove gap between menu item and dropdown to prevent menu from disappearing */
    .nav-item.dropdown {
        position: relative;
    }
    
    .nav-item.dropdown > .dropdown-menu {
        margin-top: 1px;
        padding-top: 1rem;
    }
    
    /* Add invisible bridge to prevent menu from closing when moving mouse */
    .nav-item.dropdown > .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 8px;
        background: transparent;
    }
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        background-color: transparent;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        padding: 0.25rem 0.5rem;
        cursor: pointer;
    }
    
    .navbar-toggler-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
    }
    
    .navbar-collapse {
        display: none !important;
        flex-basis: 100%;
        flex-grow: 1;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    /* Mobile: Stack dropdown menus */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        box-shadow: none;
        border-left: 2px solid #e9ecef;
        margin-left: 1rem;
    }
    
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        margin-left: 1rem;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-top: 1rem;
    }
    
    /* Mobile: Stack dropdown menus */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        box-shadow: none;
        border-left: 2px solid #e9ecef;
        margin-left: 1rem;
    }
    
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        margin-left: 1rem;
    }
}

/* ============================================
   容器和布局样式
   ============================================ */

/* 限制整个网站内容最大宽度为1400px，同时保持响应式 */
.container {
    max-width: 1200px !important;
    margin-left: auto;
    margin-right: auto;
}

/* 确保所有内容区域最大宽度为1400px */
.max-w-site {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   响应式设计 - 桌面端（>1400px）
   ============================================ */

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .max-w-site {
        max-width: 1200px;
    }

    section {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* ============================================
   响应式设计 - 平板端（768px-1400px）
   ============================================ */

@media (min-width: 768px) and (max-width: 1200px) {
    .container {
        max-width: 100%;
        min-width: 768px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .max-w-site {
        max-width: 100%;
        min-width: 768px;
    }

    section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   响应式设计 - 移动端（<768px）
   ============================================ */

@media (max-width: 767px) {
    .container {
        max-width: 100%;
        min-width: auto;
        padding-left: 12px;
        padding-right: 12px;
    }

    .max-w-site {
        max-width: 100%;
        min-width: auto;
    }

    /* 移动端减少内边距 */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* 移动端文字大小调整 */
    h1 {
        font-size: 1.875rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    /* 移动端卡片间距优化 */
    .card-hover {
        margin-bottom: 1rem;
    }
}

/* ============================================
   工具类样式
   ============================================ */

/* 隐藏滚动条 */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease-out;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 链接箭头动画 */
.link-arrow {
    transition: all 0.2s ease;
}

.link-arrow:hover {
    transform: translateX(3px);
}

/* 步骤连接线 */
.step-connector {
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #d0e8e0;
    z-index: 1;
}

.step-connector:last-child {
    display: none;
}

/* ============================================
   页脚样式
   ============================================ */

.footer {
    background-color: #1e3a2c;
    color: #ffffff;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #34C37B;
}

.footer h5 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer .text-muted {
    color: #adb5bd !important;
}

.footer .border-secondary {
    border-color: #2a4a3a !important;
}



.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-card {
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,168,107,0.08);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
