/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7be5;
    --secondary-color: #0052cc;
    --accent-color: #1890ff;
    --text-color: #2c3e50;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-color: #f5f7fa;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 顶部导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(44, 123, 229, 0.3));
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* 轮播图 */
.slider {
    position: relative;
    margin-top: 80px;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--white);
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.slide-element {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(44, 123, 229, 0.8);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-controls button {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.slider-controls button:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-indicators button {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-indicators button.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* 核心产品 */
.core-products {
    padding: 80px 0;
    background-color: var(--white);
}

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

.product-item {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-item h3 {
    padding: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* 服务优势 */
.service-advantages {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.advantage-item {
    background-color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(44, 123, 229, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.advantage-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
}

.footer-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(44, 123, 229, 0.3) 50%, transparent 100%);
}

.footer-left {
    text-align: left;
    width: 100%;
    max-width: 100%;
}

.footer-right {
    display: none;
    /* 恢复显示时将 display: none; 删除即可 */
}

.footer-left h3, .footer-right h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-left h3::before,
.footer-right h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2c7be5 0%, transparent 100%);
}

.footer-left h3::after,
.footer-right h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2c7be5;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(44, 123, 229, 0.3);
}

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

.footer-column {
    flex: 1;
}

.footer-left ul {
    list-style: none;
    display: block;
    text-align: left;
    padding: 0;
    margin: 0;
}

.footer-left ul li {
    margin-bottom: 18px;
    font-size: 1.1rem;
    text-align: left;
    padding-left: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-left ul li::before {
    content: '✦';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2c7be5, #0052cc);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 123, 229, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
    line-height: 1;
}

.footer-left ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-left ul li:hover {
    transform: translateX(10px);
}

.footer-left ul li:hover::before {
    transform: scale(1.3) rotate(180deg);
    box-shadow: 0 4px 12px rgba(44, 123, 229, 0.5);
    background: linear-gradient(135deg, #0052cc, #2c7be5);
}

.footer-left ul li:hover a {
    color: #2c7be5;
    text-shadow: 0 1px 3px rgba(44, 123, 229, 0.4);
    transform: translateX(5px);
    display: inline-block;
}

.footer-left ul li:hover span {
    color: #2c7be5;
    text-shadow: 0 1px 3px rgba(44, 123, 229, 0.4);
    transform: translateX(5px);
    display: inline-block;
}

.footer-left ul li a, .footer-left ul li span {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

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

.qrcode-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.qrcode-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.qrcode-item p {
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 20px;
    border-top: 1px solid rgba(44, 123, 229, 0.3);
    border-bottom: 3px solid #2c7be5;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(44, 123, 229, 0.1) 100%);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(44, 123, 229, 0.5) 50%, transparent 100%);
}

.footer-bottom p {
    margin: 5px 0;
    flex: 1;
    min-width: 300px;
    text-indent: 2em;
}

/* 页脚额外信息块 */
.footer-extra {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-extra-item {
    text-align: center;
}

.footer-extra-item i {
    font-size: 2.5rem;
    color: #2c7be5;
    margin-bottom: 15px;
}

.footer-extra-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-extra-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        justify-content: center;
    }
    
    .footer-left {
        text-align: center;
        min-width: 280px;
    }
    
    .footer-left h3, .footer-right h3 {
        text-align: center;
    }
    
    .footer-left h3::after, .footer-right h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-left ul {
        display: inline-block;
        text-align: left;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* 关于我们页面 */
.about-page {
    margin-top: 80px;
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-slogan {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    line-height: 1.3;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-light);
}

.about-mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.mission, .vision {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.mission h3, .vision h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.mission p, .vision p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 核心产品页面 */
.products-page {
    margin-top: 80px;
    padding: 80px 0;
    background-color: var(--white);
}

/* 商家入驻页面 */
.merchants-page {
    margin-top: 80px;
    padding: 80px 0;
    background-color: var(--white);
}

.merchant-showcase {
    position: relative;
    height: 500px;
    margin-bottom: 80px;
    background-image: url('images/merchant.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}

.merchant-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.merchant-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.merchant-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.merchant-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.merchant-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.merchant-advantage {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.merchant-advantage h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.merchant-conditions {
    margin-bottom: 80px;
}

.merchant-conditions h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.merchant-conditions ul {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.merchant-conditions li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.merchant-conditions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.merchant-process {
    margin-bottom: 80px;
}

.merchant-process h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.5rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(44, 123, 229, 0.2);
    z-index: 1;
}

.step {
    position: relative;
    background-color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 2;
    min-width: 200px;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: rgba(44, 123, 229, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.apply-button {
    text-align: center;
    margin-top: 60px;
}

.apply-button a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.apply-button a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 123, 229, 0.3);
}

/* 联系我们页面 */
.contact-page {
    margin-top: 80px;
    padding: 80px 0;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-map {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 地图占位符样式 */
.map-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s ease;
}

.map-placeholder:hover {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-overlay i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.map-overlay p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-info {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.contact-details {
    list-style: none;
    margin-bottom: 40px;
}

.contact-details li {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-details li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(44, 123, 229, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-text span {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 社交图标样式 */
.contact-social {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-social h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 123, 229, 0.3);
}

.social-icon i {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps::before {
        display: none;
    }
    
    /* 页脚响应式设计 */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-left {
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom p {
        min-width: auto;
        flex: none;
        text-indent: 0;
        text-align: center;
    }
    
    .footer-left h3 {
        font-size: 1.3rem;
    }
    
    .footer-left ul {
        text-align: center;
        display: block;
    }
    
    .footer-left ul li {
        text-align: left;
        padding-left: 20px;
        margin-bottom: 15px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 25px 20px 15px;
        font-size: 0.75rem;
    }
    
    .footer-content::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .slide-content {
        left: 5%;
        right: 5%;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-slogan {
        font-size: 2rem;
    }

    .merchant-content h2 {
        font-size: 2rem;
    }
    
    /* 页脚响应式设计 */
    .footer {
        padding: 30px 0 10px;
    }
    
    .footer-left h3 {
        font-size: 1.2rem;
    }
    
    .footer-left ul li {
        font-size: 0.95rem;
        padding-left: 15px;
    }
    
    .footer-bottom {
        padding: 20px 15px 10px;
        font-size: 0.7rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.core-products, .service-advantages, .about-page, .products-page, .merchants-page, .contact-page {
    animation: fadeIn 0.8s ease-out;
}