/* 全局样式重置与基础配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #fff5f7 100%);
    color: #333333;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(230, 180, 200, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e8a4b8;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.88rem;
    color: #555555;
    font-weight: 500;
    position: relative;
    padding: 6px 12px;
    white-space: nowrap;
    display: block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e8a4b8, #ffb6c1);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #e8a4b8;
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(232, 164, 184, 0.2);
    padding: 15px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 164, 184, 0.15);
    z-index: 999;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #555555;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(232, 164, 184, 0.1);
    color: #e8a4b8;
}

.more-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    background: linear-gradient(135deg, #e8a4b8, #ffb6c1);
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 164, 184, 0.4);
}

.more-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .more-btn i {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #e8a4b8;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 时间轴布局容器 */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #e8a4b8 0%, #ffb6c1 50%, #ffe4e9 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 45%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
    text-align: left;
}

.timeline-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff, #fff5f7);
    border: 3px solid #e8a4b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(232, 164, 184, 0.3);
    animation: pulse 2s infinite;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-node {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-node {
    left: -60px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(232, 164, 184, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(232, 164, 184, 0.5);
    }
}

.timeline-node i {
    font-size: 1.5rem;
    color: #e8a4b8;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(232, 164, 184, 0.2);
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(232, 164, 184, 0.2);
}

.timeline-title {
    font-size: 1.4rem;
    color: #e8a4b8;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-text {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #e8a4b8, #ffb6c1);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(232, 164, 184, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 164, 184, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e8a4b8;
    color: #e8a4b8;
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #e8a4b8, #ffb6c1);
    color: white;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 60px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(232, 164, 184, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #e8a4b8;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #666666;
    font-size: 0.9rem;
    line-height: 2;
}

.footer-section a:hover {
    color: #e8a4b8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #999999;
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.83rem;
        padding: 6px 10px;
    }
}

@media (max-width: 1024px) {
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        text-align: left !important;
        padding-left: 80px;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-node {
        left: 0 !important;
        right: auto !important;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .more-btn span.desktop-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        gap: 30px;
        transition: left 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .timeline-container {
        padding: 0 20px;
    }
    
    .timeline-content {
        padding: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 卡片通用样式 */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(232, 164, 184, 0.2);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(232, 164, 184, 0.2);
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #e8a4b8;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e8a4b8, #ffb6c1);
    margin: 20px auto 0;
    border-radius: 3px;
}
