/* ============================================
   GlobalTrade Pro - Main Stylesheet
   外贸主题主样式文件
   ============================================ */

/* CSS变量定义 */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #57c5b6;
    --accent-color: #159895;
    --dark-color: #002b5b;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --black: #000;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --section-padding: 80px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   顶部工具栏
   ============================================ */
.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 30px;
}

.top-bar-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info a:hover {
    color: var(--secondary-color);
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: var(--white);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.top-bar-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ============================================
   主导航
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 30px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

.main-nav .current-menu-item a,
.main-nav a:hover {
    color: var(--primary-color);
}

/* 下拉菜单 */
.main-nav li {
    position: relative;
}

.main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul ul a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.main-nav ul ul a::after {
    display: none;
}

.main-nav ul ul li:last-child a {
    border-bottom: none;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ============================================
   首页轮播Banner
   ============================================ */
.hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* 轮播导航 */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--secondary-color);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* ============================================
   特色优势区块
   ============================================ */
.features-section {
    padding: 60px 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   产品展示区块
   ============================================ */
.products-section {
    padding: var(--section-padding) 0;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 25px;
}

/* 产品筛选标签 */
.product-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 95, 122, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay a {
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}

.product-overlay a:hover {
    background: var(--white);
    color: var(--primary-color);
}

.product-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info h3 a {
    color: inherit;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-price .currency {
    font-size: 14px;
    font-weight: 400;
}

/* ============================================
   关于我们区块
   ============================================ */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-main-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-main-image img {
    width: 100%;
    height: auto;
}

.about-experience {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.about-experience .number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.about-experience .text {
    font-size: 14px;
    opacity: 0.9;
}

.about-text h3 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature-item i {
    color: var(--secondary-color);
    font-size: 20px;
}

/* ============================================
   统计数据区块
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   应用行业区块
   ============================================ */
.applications-section {
    padding: var(--section-padding) 0;
    background: var(--light-color);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.application-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.application-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
}

.application-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.application-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   联系我们区块
   ============================================ */
.contact-section {
    padding: var(--section-padding) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    font-size: 15px;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* 联系表单 */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-submit {
    margin-top: 10px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* ============================================
   CTA区块
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn {
    padding: 15px 40px;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

.footer-about .footer-logo img {
    max-height: 50px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 滚动显示动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
