/* 导航栏样式 */
.navbar {
    background-color: #fff;
    padding: 0.5rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.1);
    height: auto;
}

.navbar-container {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.navbar-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 汉堡菜单样式 */
.hamburger-container {
    position: fixed;
    top: 0.8rem;
    left: 1rem;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    height: 2px;
    background-color: #333;
    width: 100%;
    border-radius: 1px;
    align-self: flex-start;
}

.hamburger-line.middle {
    width: 18px;
    opacity: 0.8;
    margin: 0;
}

.hamburger:hover .hamburger-line {
    background-color: #666;
}

.hamburger:hover .hamburger-line.middle {
    opacity: 1;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 150px;
    height: 100vh;
    background-color: #fcfcfc;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding-top: 60px;
}

.sidebar.active {
    left: 0;
}

.sidebar-nav {
    padding: 1rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
}

.sidebar-link {
    display: block;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.sidebar-link:hover {
    background-color: #f5f5f5;
    color: #666;
}

/* 汉堡菜单动画 */
.hamburger.active .hamburger-line.top {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active .hamburger-line.middle {
    opacity: 0;
}

.hamburger.active .hamburger-line.bottom {
    transform: rotate(-45deg) translate(4px, -4px);
}

.hamburger-line {
    transition: all 0.3s ease;
}

/* 联系我们弹窗样式 */
.contact-modal {
    position: fixed;
    bottom: -100%; /* 初始位置在屏幕下方 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 1001;
    border-radius: 20px;
    margin: 0 auto;
    display: none;
}

.contact-modal.active {
    bottom: 36%; /* 激活时滑到页面中间 */
    display: block;
}

.modal-content {
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 0px 12px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    color: #333;
    pointer-events: auto;
}

.close-btn:hover {
    color: #666;
}

.contact-header {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
}

.contact-body {
    text-align: center;
}

.contact-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.contact-wechat {
    font-size: 13px;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 5px;
}

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.copy-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.close-modal-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.copy-btn:hover {
    background-color: #45a049;
}

.close-modal-btn:hover {
    background-color: #d32f2f;
} 