/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4ecdc4;
    --secondary-color: #ff6b6b;
    --accent-color: #ffa500;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    --gradient-2: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 28px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    line-height: 1;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Banner轮播 */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1.4s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* 特色优势 */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.8;
}

/* 产品展示 */
.products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-emoji {
    font-size: 100px;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 22px;
    color: var(--text-dark);
}

.product-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* 加盟优势 */
.join-us {
    padding: 80px 0;
    background: var(--bg-light);
}

.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.join-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.join-list {
    list-style: none;
    margin-bottom: 30px;
}

.join-list li {
    padding: 15px 0;
    font-size: 18px;
    color: var(--text-light);
    border-bottom: 1px solid #e0e0e0;
}

.join-image {
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 表单样式 */
.form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-2);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 内容页面 */
.content-page {
    padding: 60px 0;
    min-height: 600px;
}

.content-section {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.content-section h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 美化消息提示框 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
}

.message-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
}

.message-success {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.message-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .banner {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .join-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-banner {
        height: 300px;
    }
}

/* ========== 联系页面样式 ========== */

/* 上半部分：背景图片区域 */
.contact-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #fff;
}

.contact-banner-image {
    width: 100%;
    height: 100%;
    background-image: url('/contactUsBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideUpIn 1s ease-out;
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 下半部分：联系方式 + 留言表单 */
.contact-content {
    padding: 80px 0;
    background: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 左侧：联系方式板块 */
.contact-info-section {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.contact-info-section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 右侧：留言表单板块 */
.contact-form-section {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.contact-form-section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 通用：从两侧滑入 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 区块标题样式 */
.section-header {
    margin-bottom: 40px;
}

.section-title-en {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title-cn {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
}

/* 联系方式详情 */
.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: normal;
}

.contact-value {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
}

/* 地图区域 */
.contact-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: var(--text-light);
    font-size: 16px;
}

/* 联系表单样式 */
.contact-form {
    background: #fff;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 16px;
}

.contact-form .required {
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit-contact {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit-contact:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .section-title-cn {
        font-size: 36px;
    }

    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        height: 300px;
    }

    .section-title-en {
        font-size: 18px;
    }

    .section-title-cn {
        font-size: 32px;
    }

    .contact-layout {
        padding: 0 15px;
    }
}
