﻿@font-face {
  font-family: 'PingFang SC';
  src: url('../苹方字体/PingFang Regular_0.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PingFang SC';
  src: url('../苹方字体/PingFang Medium_0.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PingFang SC';
  src: url('../苹方字体/PingFang Bold_0.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 确保html和body高度为100% */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
/* 设置背景图片 */
body {
    background-color: rgb(255, 255, 255);
    background-image: url('../image/微信图片_20250624183050.jpg.jpg'); /* 替换为你的图片路径 */
    background-size: cover; /* 背景图片覆盖整个页面 */
    background-position: center; /* 背景图片居中 */
    background-repeat: no-repeat; /* 背景图片不重复 */
    background-attachment: fixed; /* 固定背景图片，使其不随页面滚动 */
    overflow-x: hidden; /* 禁止水平滚动 */
    font-family: 'PingFang SC', '苹方', 'PingFang', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif !important;
    font-weight: 500 !important;
    color: #111 !important;
}
body {
    padding-top: 60px; /* 根据导航栏的实际高度调整 */
}
/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .content {
        width: 95%;
        font-size: 14px;
    }
}

/* 苹果风导航栏样式 */
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    height: 44px; border-bottom: 1px solid #eeeeee00;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(255,255,255,0.85); /* 保证有背景防止内容遮挡 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-left { margin-left: 20px; }
.logo { font-size: 20px; }
.menu {
    display: flex; gap: 24px; flex: 1; justify-content: center;
}
.menu a {
    color: #333; text-decoration: none; font-size: 14px; transition: color 0.2s;
    font-weight: 600 !important;
}
.menu a:hover { color: #0071e3; }
.nav-right {
    display: flex; align-items: center; gap: 20px; margin-right: 20px;
    font-weight: 600 !important;
}
.icon { font-size: 18px; color: #333; cursor: pointer; }
.hamburger {
    display: none;
    width: 28px; height: 28px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    background: none;
    border: none;
    padding: 0;
}
.hamburger .bar {
    width: 18px;
    height: 2px;
    background: #222;
    margin: 3px 0;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 900px) {
    .menu { display: none; }
    .hamburger { display: flex; }
}
/* 弹窗样式 */
.modal {
    position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;
    z-index: 999;
}
.modal-content {
    background: #fff; padding: 24px 32px; border-radius: 8px; min-width: 220px; text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; gap: 16px;
}
#menu-modal .modal-content a {
    color: #333; text-decoration: none; font-size: 16px; margin: 4px 0;
}
#menu-modal .modal-content a:hover {
    color: #0071e3;
}
@media (min-width: 901px) {
    #menu-modal { display: none !important; }
}
/* 菜单滑出样式 */
.slide-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(120deg, rgba(255,255,255,0.65) 60%, rgba(200,220,255,0.35) 100%);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    z-index: 2000;
    transform: translateY(-24px);
    opacity: 0;
    transition: 
        transform 0.5s cubic-bezier(.4,0,.2,1),
        opacity 0.4s cubic-bezier(.4,0,.2,1),
        box-shadow 0.4s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
    padding-top: 60px;
}
.slide-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
@keyframes menuItemIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.slide-menu a {
    color: #111 !important;
    opacity: 0;
    transform: translateY(8px);
    transition: none;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600 !important;
    padding: 12px 24px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.slide-menu a:last-child {
    border-bottom: none;
}
.slide-menu a:hover {
    color: #0071e3; background: #f5f5f7;
}
.slide-menu.active a {
    animation: menuItemIn 0.38s cubic-bezier(.4,0,.2,1) forwards;
}
.slide-menu.active a:nth-child(1) { animation-delay: 0.03s; }
.slide-menu.active a:nth-child(2) { animation-delay: 0.06s; }
.slide-menu.active a:nth-child(3) { animation-delay: 0.09s; }
.slide-menu.active a:nth-child(4) { animation-delay: 0.12s; }
.slide-menu.active a:nth-child(5) { animation-delay: 0.15s; }
.slide-menu.active a:nth-child(6) { animation-delay: 0.18s; }
.slide-menu.active a:nth-child(7) { animation-delay: 0.21s; }
.slide-menu.active a:nth-child(8) { animation-delay: 0.24s; }
.slide-menu.active a:nth-child(9) { animation-delay: 0.27s; }
.slide-menu.active a:nth-child(10) { animation-delay: 0.30s; }
.slide-menu.active a:nth-child(11) { animation-delay: 0.33s; }
.slide-menu.active a:nth-child(12) { animation-delay: 0.36s; }
.hamburger i {
    font-size: 20px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active i.fa-bars {
    opacity: 0;
    transform: scale(0.7) rotate(90deg);
}
.hamburger.active i.fa-times {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}