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

@font-face {
  font-family: 'Your-Font-Name';
  src: url('/TTF/MiSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

html, body {
    height: 100%;
    overflow-x: hidden; /* 防止水平滚动 */
}

body {
    font-family: 'MiSans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffe4f5;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; 
    position: relative;
    font-size: 16px;
}

body::before {
    content: '';
    position: fixed; 
    background-image: url("/image/navground.png");
    background-size: contain; 
    background-repeat: no-repeat;
    top: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: -1;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* 页首样式 */
.header {
    background-color: transparent;
    color: white;
    display: flex;
    height: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 0; /* 确保页首底部没有外边距 */
    border-bottom: none; /* 移除可能存在的边框 */
}

.header:hover {
    background-color: white;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FFB7C5;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 汉堡菜单动画 */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    height: 110px;
    width: 110px;
    display: flex;
    height: 110%;
    align-items: center;
    margin-right: 1rem;
}

.navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navigation li {
    padding: 0.75rem 1.5rem;
    margin-left: 2rem;
}

.navigation a, .navigation button {
    color: #FFB7C5;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.navigation a:hover, .navigation button:hover,
.navigation a.active, .navigation button.active {
    background-color: #3498db;
    color: white;
}

/* 主要内容区域样式 */
.main-content {
    flex: 1;
    padding: 0;
    display: flex;
    justify-content: center;
}

.page-content {
    display: block;
    margin: 0; /* 确保页面内容没有外边距 */
    padding: 0; /* 移除可能存在的内边距 */
    max-width: 2000px; /* 限制内容区域的最大宽度 */
    width: 100%; /* 使内容区域占据可用宽度 */
}

/* 页尾样式 */
.footer {
    background-color: #9efcff86;
    color: #61edff;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #bdc3c7;
    margin-top: auto;
    flex-shrink: 0;
}

/* 页面内容样式 */
h2:not(.about-title) {
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 0; /* 移除顶部外边距 */
}

p {
    margin-bottom: 1rem;
    margin-top: 0; /* 移除顶部外边距 */
}

ul {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    margin-top: 0; /* 移除顶部外边距 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .header {
        height: auto;
        min-height: 80px;
        padding: 10px 0;
    }
    
    .header .container {
        flex-direction: row;
        align-items: center;
        padding: 10px 0;
        height: auto;
    }
    
    .logo {
        margin-bottom: 0;
        height: 80px;
        width: 80px;
        margin-right: auto;
    }
    
    /* 显示汉堡菜单按钮 */
    .menu-toggle {
        display: flex;
        margin-right: 15px;
    }
    
    /* 隐藏导航菜单 */
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    /* 展开菜单样式 */
    .navigation.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navigation ul {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }

    .navigation li {
        margin: 0;
        padding: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .navigation li:last-child {
        border-bottom: none;
    }
    
    .navigation a, .navigation button {
        padding: 1rem;
        width: 100%;
        text-align: left;
        font-size: 16px;
        border-radius: 0;
        min-height: 48px;
        justify-content: flex-start;
    }
    
    .navigation button:hover, .navigation button.active {
        background-color: #3498db;
        color: white;
        transform: scale(1.02);
        transition: background-color 0.3s ease, transform 0.3s ease;
    }
    
    .main-content {
        padding: 10px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .footer {
        padding: 1rem 0;
    }
    
    .about-title {
        height: auto;
        padding: 20px 10px;
        font-size: 24px;
    }
    
    .customer-service {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .service-item img {
        width: 100px;
    }
    
    .contact-section {
        padding: 20px 0;
    }
    
    .service-text p {
        font-size: 14px;
    }
    
    .service-text strong {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .header .container {
        padding: 5px 0;
    }
    
    .logo {
        height: 60px;
        width: 60px;
    }
    
    .navigation a, .navigation button {
        padding: 0.5rem;
        font-size: 14px;
        min-height: 44px;
    }
    
    .container {
        padding: 0 5px;
    }
    
    .about-title {
        font-size: 20px;
        padding: 15px 5px;
    }
    
    .service-item img {
        width: 80px;
    }
    
    .contact-section {
        padding: 15px 0;
    }
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3498db;
}

/* Vue过渡效果 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.about-container {
    padding: 0;
    margin: 0; /* 移除可能存在的外边距 */
}

.contact-section {
    text-align: center;
    padding: 30px 0;
}

.customer-service {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.service-item {
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
}

.service-item img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.service-text p {
    margin: 5px 0;
    font-size: 14px;
}

.service-text strong {
    font-size: 16px;
}

.about-title {
    min-height: 100px;
    background-color: #ed93ffb0;
    font-size: 30px;
    text-align: center;
    margin: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    position: relative;
    left: 0;
    max-width: none;
}

.about-content {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    word-wrap: break-word;
    word-break: break-word;
    padding: 0 10px;
}

.about-content p {
    word-wrap: break-word;
    word-break: break-word;
    font-size: 14px;
}

.navigation button {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: left;
}

.navigation button:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.navigation button.active {
    font-weight: bold;
    color: #007bff;
}