/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', 'SimSun', serif;
    background: linear-gradient(180deg, #F4F5F9 0%, #E6E1F0 50%, #B8D8E680 100%);
    color: #5A4D6B;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 导航栏 */
header {
    position: fixed;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    z-index: 100;
}
a {
      text-decoration: none; /* 去掉下划线 */
}
.logo {
    font-family: 'Brush Script MT', cursive;
    font-size: 28px;
    color: #E8C872;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #5A4D6B;
    position: relative;
    font-weight: 300;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #E8C872;
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

/* 主内容区 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15%;
    position: relative;
}

h1 {
    font-family: 'Brush Script MT', cursive;
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #5A4D6B;
    opacity: 0;
    animation: fadeIn 1.5s forwards 0.5s;
}

.subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 2s forwards 1s;
}

/* 唯美按钮 */
.btn-romantic {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    border: 1px solid white;
    border-radius: 100px;
    padding: 15px 40px;
    color: #5A4D6B;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(182,216,230,0.3);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    animation: fadeIn 2s forwards 1.5s;
}

.btn-romantic:hover {
    background: linear-gradient(135deg, #89CFF0 0%, #B8D8E6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182,216,230,0.5);
}

/* 装饰元素 */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(2px);
    animation: float 8s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 30px;
    height: 30px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 60%;
    left: 80%;
    animation-delay: 1.5s;
}

.bubble:nth-child(3) {
    width: 20px;
    height: 20px;
    top: 80%;
    left: 15%;
    animation-delay: 3s;
}

.petal {
    position: absolute;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 0C30 20 10 30 0 50c10 20 30 30 50 50 20-20 40-30 50-50C90 30 70 20 50 0z" fill="%2389CFF0" opacity="0.7"/></svg>');
    background-size: contain;
    width: 30px;
    height: 30px;
    animation: fall 10s linear infinite;
}

/* 卡片区域 */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 100px 10%;
    gap: 30px;
}

.card {
    width: 300px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.5s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    /*background: linear-gradient(45deg, #89CFF0, #B8D8E6);*/
    position: relative;
    overflow: hidden;
    
            background-size: cover;
            background-position: center;
           
}

.card-img-after {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 12px;
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 10px;
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #5A4D6B;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 50px 0;
    position: relative;
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5rem;
    color: #5A4D6B;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #E8C872;
    border-radius: 50%;
    filter: blur(1px);
    animation: flicker 3s infinite alternate;
}

/* 动画定义 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(calc(100vh + 100px)) rotate(360deg); opacity: 0; }
}

@keyframes flicker {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; box-shadow: 0 0 10px #E8C872; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .hero { padding: 0 10%; }
    nav a { margin-left: 15px; }
}