/* 
 * 主样式文件
 * 江苏活鲜供应链管理有限公司官网
 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 科技感渐变色 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00a0e9;
    --accent-color: #00ccff;
    --dark-color: #003366;
    --light-color: #e6f7ff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    --gradient-light: linear-gradient(135deg, var(--light-color), var(--secondary-color));
    --transition-speed: 0.3s;
}

/* 通用样式 */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
    transition: all var(--transition-speed) ease;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
}

/* 导航栏 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

#header.transparent {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: none;
}

#header.transparent .nav-links a {
    color: white;
}

#header.transparent .selected-lang {
    color: white;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    height: 42px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-light {
    display: none;
}

#header.transparent .logo-dark {
    display: none;
}

#header.transparent .logo-light {
    display: block;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
    padding: 6px 10px;
    display: inline-block;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 语言选择器 */
.language-selector {
    position: relative;
    flex-shrink: 0;
}

.selected-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    font-size: 13px;
}

#header.transparent .selected-lang {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.selected-lang i {
    margin-left: 8px;
    font-size: 12px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    z-index: 10;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.lang-dropdown li {
    padding: 8px 16px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.lang-dropdown li:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.lang-dropdown li.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    transition: all var(--transition-speed) ease;
    border-radius: 2px;
}

#header.transparent .mobile-toggle span {
    background-color: white;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 首页轮播 */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
    padding: 0 16px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.7s;
}

.slide-content .cta-button {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.slider-dots {
    display: flex;
    gap: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* 关于我们 */
.about-section {
    padding: 96px 0;
    background-color: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.company-intro h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.company-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.company-values {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.value-item {
    flex: 1;
    padding: 24px;
    background: var(--light-color);
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.value-item p {
    font-size: 16px;
    color: #555;
}

.about-gallery {
    display: flex;
    gap: 16px;
}

.gallery-item {
    flex: 1;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 37.5%; /* 8:3的比例 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 业务领域 */
.business-section {
    padding: 96px 0;
    background-color: #f9f9f9;
}

.business-areas {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.business-item {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.business-content {
    flex: 1;
}

.business-content h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.business-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    height: 24px;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.business-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.business-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.business-image {
    position: relative;
    width: 100%;
    height: 0 !important;
    padding-bottom: 115.8% !important; /* 1900*2200像素的比例 */
}

.business-image img,
.business-image .lang-img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
}

.business-image:hover img {
    transform: scale(1.05);
}

.lang-img {
    display: none;
}

.lang-img.zh {
    display: block;
}

html[lang="en"] .lang-img.en {
    display: block;
}

html[lang="en"] .lang-img.zh {
    display: none;
}

html[lang="ru"] .lang-img.ru {
    display: block;
}

html[lang="ru"] .lang-img.zh {
    display: none;
}

/* 新闻资讯 */
.news-section {
    padding: 96px 0;
    background-color: white;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.news-item {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    overflow: hidden;
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 32px;
}

.news-content h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: #777;
    font-size: 14px;
}

.news-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 16px;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-speed) ease;
}

.read-more:hover::after {
    width: 100%;
}

/* 联系方式 */
.contact-section {
    padding: 96px 0;
    background-color: #f9f9f9;
}

.contact-container {
    width: 100%;
}

.contact-row {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-left {
    flex: 1;
}

.contact-middle {
    flex: 1;
    gap: 12px;
}

.contact-right {
    flex: 1;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item-large {
    flex: 1;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-item-large i {
    font-size: 28px;
    margin-right: 20px;
}

.contact-item-large .contact-text h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.contact-item-large .contact-text p {
    font-size: 18px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-text h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 16px;
    color: #555;
}

.qrcode-container {
    padding: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qrcode-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.qrcode-container h4 {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.qrcode {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    padding: 8px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-container p {
    font-size: 13px;
    color: #777;
}

/* 页脚 */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    height: 40px;
}

.footer-logo img {
    height: 100%;
    width: auto;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info a {
    color: var(--light-color);
}

.footer-info a:hover {
    text-decoration: underline;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}