/* Enhanced UI/UX Styles for Better User Experience */

/* 1. Improved Responsive Design */
html, body {
    margin: 0;
    padding: 0;
}

body {
    min-width: auto;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    margin-left: auto !important;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 2. Enhanced Header Design */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    min-width: 900px;
    overflow: visible;
    margin-top: 0;
    padding-top: 0;
    height: 80px;
    display: flex;
    align-items: center;
}

/* 给body加padding-top防止内容被fixed header遮住 */
body {
    padding-top: 80px !important;
}

.header-container {
    flex-wrap: nowrap;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 24px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-header.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.12);
    height: 70px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-left: 200px;
}

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

.logo a {
    gap: 12px !important;
}

.logo-text {
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 3. Enhanced Navigation with Better UX */
.main-nav {
    margin-left: 12px;
    flex-shrink: 1;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    flex-wrap: nowrap;
    gap: 40px;
    justify-content: center;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav li {
    white-space: nowrap;
    position: relative;
    overflow: visible !important;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Extend hover area for mega menu items */
.main-nav li:has(.mega-menu) {
    padding-bottom: 50px;
    margin-bottom: -50px;
}

.main-nav a {
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.has-dropdown::before {
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

/* Nav dropdown width fix */
.nav-dropdown {
    width: 180px !important;
    text-align: left !important;
}

.main-nav .nav-dropdown li a {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    display: block;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.main-nav .nav-dropdown li a:hover {
    color: #1890ff;
    background: #f0f8ff;
}

/* Enhanced Mega Menu */
.mega-menu {
    background: #ffffff !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    top: 80px !important;
    margin-top: 0 !important;
    width: 1200px !important;
    max-width: 98vw !important;
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    padding: 30px !important;
}

/* Bridge to prevent menu from disappearing - extends hover area upward */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: transparent;
}

.main-nav li:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

.site-header.scrolled .mega-menu {
    top: 70px !important;
}

.mega-column h3 {
    color: #1890ff;
    position: relative;
    padding-left: 15px;
}

.mega-column h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #1890ff, #40a9ff);
    border-radius: 2px;
}

.mega-column ul.mega-list li a {
    transition: all 0.2s ease;
    padding: 3px 0 3px 20px !important;
    position: relative;
    display: block;
    line-height: 1.4 !important;
}

.mega-column ul.mega-list li {
    margin-bottom: 12px !important;
}

.mega-menu-grid {
    align-items: start !important;
    gap: 20px !important;
}

.mega-column {
    align-self: start !important;
    vertical-align: top !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.mega-column ul.mega-list {
    flex: none !important;
}

.mega-column ul.mega-list li a::before {
    content: '›';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
}

.mega-column ul.mega-list li a:hover {
    color: #1890ff;
    padding-left: 25px;
}

.mega-column ul.mega-list li a:hover::before {
    opacity: 1;
}

/* Banner styles use original style.css */

/* 4. Enhanced Banner Section - Temporarily disabled to fix display issue
.banner-section {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.carousel-slide:hover .banner-bg img {
    transform: scale(1.05);
}

.banner-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
    padding-bottom: 60px;
    transform: translateY(-28px);
}

.banner-content h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 0 40px rgba(0,0,0,0.35);
    font-weight: 700;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
*/

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

.btn-primary {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced Carousel Indicators */
.indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: #fff;
    width: 60px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.indicators-container {
    position: absolute;
    bottom: 80px; /* 恢复正常位置 */
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
}

/* 5. Search and Quick Access Section - preserve original style.css design */
.search-access-section {
    position: relative;
    z-index: 100;
    margin-top: 60px;
    margin-bottom: 50px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.search-box {
    position: relative;
    max-width: none;
    margin: 0;
    margin-right: 60px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 393px;
    height: 52px;
    border: 1px solid #e8e8e8;
    border-right: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    border-radius: 4px 0 0 4px;
    background: #fff;
    transition: none;
}

.search-input:focus {
    border-color: #e8e8e8;
    background: #fff;
    box-shadow: none;
    outline: none;
}

.search-btn {
    position: static;
    transform: none;
    background: #1890ff;
    border: none;
    width: 81px;
    height: 52px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    transform: none;
    background: #096dd9;
    box-shadow: none;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.search-results-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.search-results-dropdown li:last-child {
    border-bottom: none;
}

.search-results-dropdown a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-results-dropdown a:hover {
    background: #f8f9fa;
    color: #1890ff;
}

.result-title {
    font-weight: 500;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-category {
    font-size: 12px;
    background: #f0f8ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 10px;
}

.result-desc {
    font-size: 14px;
    color: #666;
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Quick Access Items - preserve original style.css design */
.quick-access-items {
    display: flex;
    flex: 1;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
}

.access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 4px;
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    position: relative;
    overflow: visible;
}

.access-item::before {
    display: none;
}

.access-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.access-item:hover .access-title {
    color: #1890ff;
}

.access-title {
    font-size: 18px;
    color: #3D3D3D;
    font-weight: bold;
    margin-bottom: 5px;
    transition: color 0.3s;
    display: block;
}

.access-subtitle {
    font-size: 12px;
    color: #9A9EB0;
    display: block;
    line-height: 1.4;
}

/* 6. Service Cards - preserve original style.css design */
.services-section {
    padding: 40px 0 80px;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    border-radius: 2px;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Op Card 2x2 网格样式 */
.op-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #f0f2f8;
    position: relative;
    min-height: 130px;
}

.op-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(24,103,255,0.12);
    border-color: #d0e2ff;
}

/* 左侧彩色竖条 */
.op-card-accent {
    width: 5px;
    flex-shrink: 0;
}
.op-card-accent.icon-green  { background: linear-gradient(180deg, #52c41a, #95de64); }
.op-card-accent.icon-blue   { background: linear-gradient(180deg, #1677ff, #69b1ff); }
.op-card-accent.icon-orange { background: linear-gradient(180deg, #fa8c16, #ffc069); }
.op-card-accent.icon-dark   { background: linear-gradient(180deg, #434343, #8c8c8c); }

/* 左侧图片区 */
.op-card-left {
    width: 110px;
    flex-shrink: 0;
    overflow: hidden;
}

.op-card-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.op-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.op-card:hover .op-card-img-wrap img {
    transform: scale(1.08);
}

/* 右侧内容区 */
.op-card-right {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.op-card-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 500;
    width: fit-content;
}
.op-card-tag.icon-green  { background: #f6ffed; color: #389e0d; }
.op-card-tag.icon-blue   { background: #e6f4ff; color: #1677ff; }
.op-card-tag.icon-orange { background: #fff7e6; color: #d46b08; }
.op-card-tag.icon-dark   { background: #f5f5f5; color: #595959; }

.op-card-right h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.op-card-right p {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.op-card-link {
    font-size: 12px;
    color: #bbb;
    margin-top: 2px;
    transition: color 0.2s;
}

.op-card:hover .op-card-link {
    color: #1677ff;
}

.service-card {
    background: transparent;
    border-radius: 2px;
    padding: 0;
    box-shadow: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    height: 280px;
    text-align: left;
    border: none;
    overflow: visible;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
}

.flip-card:hover .card-inner {
    transform: none;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 2px;
    overflow: hidden;
    padding: 20px;
    background-color: #fff;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
    background-color: #fff;
}

.card-back {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.flip-card {
    perspective: none;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

.flip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(24,144,255,0.15);
}

.card-header {
    padding: 20px;
    text-align: left;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.icon-green { background: linear-gradient(135deg, #52c41a, #73d13d); }
.icon-blue { background: linear-gradient(135deg, #1890ff, #40a9ff); }
.icon-orange { background: linear-gradient(135deg, #fa8c16, #ffa940); }
.icon-dark { background: linear-gradient(135deg, #262626, #434343); }

.card-icon {
    width: 30px;
    height: 30px;
    color: white;
}

.card-header-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.card-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.card-image-placeholder {
    height: 180px;
    overflow: hidden;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-free-check {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-free-check:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 7. Enhanced Supply Chain Section */
.supply-chain-section {
    background: #fff;
    padding: 60px 0;
}

.supply-chain-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-item {
    padding: 12px 25px;
    background: #f0f2f5;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 144, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-item:hover {
    color: #1890ff;
    background: #e6f7ff;
}

.tab-item:hover::before {
    left: 100%;
}

.tab-item.active {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.supply-chain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.supply-chain-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.supply-chain-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #1890ff;
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.item-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.item-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 8. User Profile - preserve original positioning */
.user-profile-container {
    position: relative;
    cursor: pointer;
    margin-left: 16px;
    margin-right: 220px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

/* Supervision Button */
.supervision-btn {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
}

.supervision-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4) !important;
}

.supervision-btn svg {
    flex-shrink: 0 !important;
    stroke: #fff !important;
    width: 16px !important;
    height: 16px !important;
}

.supervision-btn span {
    letter-spacing: 0.5px !important;
}

.user-info:hover {
    background-color: #f0f2f5;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    transition: none;
}

.user-avatar:hover {
    border-color: transparent;
    transform: none;
}

.user-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* nav-dropdown 由 li:hover 控制，不受上面 opacity/visibility 影响 */
.main-nav li .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
    display: none;
    top: 100%;
    bottom: auto;
    margin-top: 0;
    margin-bottom: 0;
    right: auto;
    left: 50%;
    width: 180px;
    text-align: center;
    border-top: 2px solid #1890ff;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.main-nav li:hover .nav-dropdown {
    display: block;
}

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

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    margin: 0;
}

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

.dropdown-menu a:hover {
    background: #f0f8ff;
    color: #1890ff;
}

.login-btn, .register-btn {
    display: block;
    text-align: center;
    margin: 5px 10px;
    padding: 8px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.login-btn {
    background: #f0f8ff;
    color: #1890ff;
}

.login-btn:hover {
    background: #e6f7ff;
}

.register-btn {
    background: #1890ff;
    color: white;
}

.register-btn:hover {
    background: #40a9ff;
}

.logout-btn {
    color: #ff4d4f;
}

.logout-btn:hover {
    background: #fff2f0;
}

/* 9. Enhanced Footer */
.main-footer {
    background: #0b1a2e;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-top {
    background-color: #0b1a2e !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.f-logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.f-logo-cn {
    font-size: 18px;
    font-weight: 600;
}

.f-logo-en {
    font-size: 14px;
    opacity: 0.7;
}

.footer-contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.f-nav-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.f-nav-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #1890ff;
}

.f-nav-col a {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.f-nav-col a:hover {
    color: #fff;
    padding-left: 10px;
}

.f-qr-box {
    text-align: center;
}

.f-qr-box img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.f-qr-box span {
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom-lines {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-lines p {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 5px;
}

/* 10. Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .mega-menu {
        width: 900px;
    }
    
    .mega-menu-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-left: 0;
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .mega-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        transform: translateY(100%);
    }
    
    .main-nav li:hover .mega-menu {
        transform: translateY(0);
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .quick-access-items {
        flex-direction: column;
    }
    
    .access-item {
        min-width: 100%;
    }
    
    .services-grid,
    .supply-chain-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .supply-chain-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .tab-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .f-nav-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 11. Animation and Micro-interactions */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease;
}

/* 12. Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 13. Focus and Accessibility */
.btn-primary:focus,
.search-input:focus,
.access-item:focus,
.service-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .mega-menu {
        border: 2px solid #000;
    }
    
    .service-card,
    .supply-chain-item {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Provider logo text style */
.provider-logo-text {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    letter-spacing: -1px;
}

/* 去掉搜索框红色focus outline */
.wh-search-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Detail banner 图片铺满修复 */
.detail-banner {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.detail-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.detail-banner-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

.detail-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.detail-banner-content h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

/* Provider list 布局修复 - 所有出口页面通用 */
.provider-list-header,
.provider-list-item {
    display: grid !important;
    grid-template-columns: 2.5fr 3.5fr 2fr 1fr !important;
    align-items: start !important;
}

.provider-list-item {
    padding: 20px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.provider-list-item:hover {
    background: #fafbff;
}

.col-name {
    flex: unset !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding-left: 20px !important;
}

.col-contact {
    flex: unset !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    padding-left: 20px !important;
}

.col-region {
    flex: unset !important;
    font-size: 13px !important;
    padding-left: 16px !important;
    line-height: 1.8 !important;
}

.col-platform {
    flex: unset !important;
    padding-right: 20px !important;
    text-align: right !important;
}

.provider-logo {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
}

.provider-company-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

/* Provider list 卡片网格样式 */
.provider-list {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 !important;
}

.provider-list-header {
    display: none !important;
}

.provider-list-item {
    display: flex !important;
    grid-template-columns: unset !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 20px !important;
    background: #fff !important;
    border-radius: 10px !important;
    border: 1px solid #eef0f5 !important;
    border-bottom: 1px solid #eef0f5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.2s, transform 0.2s;
}

.provider-list-item:hover {
    box-shadow: 0 6px 20px rgba(24,103,255,0.1) !important;
    transform: translateY(-2px);
    background: #fff !important;
}

.provider-list-item .col-name {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding-left: 0 !important;
    min-width: 70px;
}

.provider-list-item .col-contact {
    flex: 1 !important;
    padding-left: 0 !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.7 !important;
}

.provider-list-item .col-contact .provider-company-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    display: block;
    margin-bottom: 6px;
}

.provider-list-item .col-region {
    flex: 0 0 auto !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    color: #1677ff !important;
    background: #e6f4ff !important;
    border-radius: 4px;
    height: fit-content;
    white-space: nowrap;
    align-self: flex-start;
}

.provider-list-item .col-platform {
    flex: 0 0 auto !important;
    padding-right: 0 !important;
    text-align: center !important;
    align-self: flex-start;
}

.provider-list-item .platform-link {
    display: inline-block;
    background: #1677ff;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s;
}

.provider-list-item .platform-link:hover {
    background: #4096ff;
    text-decoration: none !important;
}

.provider-logo {
    width: 56px !important;
    height: 56px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* 防止section遮挡mega-menu */
.search-access-section,
.services-section,
.supply-chain-section,
.service-providers-section,
.lecture-hall-section,
.service-banner,
.module-section {
    position: relative;
    z-index: auto !important;
}
