@font-face {
    font-family: 'LXGWWenKaiMono';
    src: url('../fonts/LXGWWenKaiMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 全局样式 */
body {
    font-family: 'LXGWWenKaiMono';
    line-height: 1.8;
    margin: 0;
    color: #444;
    background-color: #fdfdfa; /* 温暖的米白色背景 */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'LXGWWenKaiMono';
    font-weight: normal;
    color: #333;
}

a {
    text-decoration: none;
    color: #F57C00; /* NEW: 活泼的橙色 */
    transition: color 0.3s ease;
}

a:hover {
    color: #E65100; /* NEW: 更深的橙色 */
}

/* 头部导航 */
.main-header {
    background: rgba(253, 253, 250, 0.85); /* 使用带透明度的背景色 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    border-bottom: 3px solid transparent; /* 为渐变边框做准备 */
    border-image: linear-gradient(to right, rgba(245, 124, 0, 0.2), rgba(245, 124, 0, 0.8), rgba(245, 124, 0, 0.2));
    border-image-slice: 1;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 调整阴影效果 */
}

.main-header:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* 悬停时更强的阴影 */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.65rem; /* 调整 */
    font-weight: normal;
    font-family: 'LXGWWenKaiMono';
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav a {
    color: #555;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent; /* 修改为透明 */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero 部分 */
.hero {
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bg.avif');
    background-size: cover;
    background-position: center;
    animation: kenburns 20s ease-out infinite alternate;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.2rem; /* 调整 */
    margin-bottom: 1rem;
    color: #fff;
    font-weight: normal;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero .subtitle {
    font-size: 1.45rem; /* 调整 */
    max-width: 650px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2.75rem; /* 调整 */
    margin-bottom: 60px;
}

.feature-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 20px; /* 增加内边距 */
    background-color: #fff; /* 确保背景色 */
    border-radius: 8px; /* 增加圆角 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 添加柔和阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #F57C00;
}

.feature-item h3 {
    font-size: 1.4rem; /* 调整 */
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Journey Start Section */
.journey-start {
    padding: 80px 0;
    text-align: center;
    background-color: #f7f5f2; /* A warmer light gray */
    border-top: 1px solid #e9e5e1;
    position: relative;
    overflow: hidden;
}

.journey-start h2 {
    font-size: 2.75rem; /* 调整 */
    margin-bottom: 15px;
    color: #333;
    font-weight: normal;
}

.journey-subtitle {
    font-size: 1.25rem; /* 调整 */
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #666;
    line-height: 1.6;
}

.writing-prompt {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    max-width: 650px;
    margin: 0 auto 40px auto;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* 调整阴影效果 */
    text-align: left;
    border-left: 4px solid #FFB74D; /* 将橙色边框改为更淡的橙色 */
    background-color: #fdfdfd;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.writing-prompt:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.prompt-title {
    font-weight: bold;
    color: #F57C00; /* NEW: 活泼的橙色 */
    display: block;
    margin-bottom: 10px;
    font-size: 1.0rem; /* 调整 */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prompt-text {
    font-family: 'LXGWWenKaiMono';
    font-size: 1.65rem; /* 调整 */
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.btn-cta {
    background-color: #F57C00; /* NEW: 活泼的橙色 */
    color: #fff;
    padding: 12px 30px; /* 减小内边距 */
    border-radius: 25px; /* 减小圆角 */
    font-size: 1.05rem; /* 减小字体大小 */
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(245, 124, 0, 0.3); /* NEW: 橙色阴影 */
}

.btn-cta:hover {
    background-color: #E65100; /* NEW: 更深的橙色 */
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.4); /* NEW: 更深的橙色阴影 */
}

/* 页脚 */
.main-footer {
    background-color: #3a3a3a; /* 更柔和的深灰色 */
    color: #bbb;
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent; /* 为渐变边框做准备 */
    border-image: linear-gradient(to right, rgba(245, 124, 0, 0.2), rgba(245, 124, 0, 0.8), rgba(245, 124, 0, 0.2)); /* NEW: 橙色渐变 */
    border-image-slice: 1;
}

.main-footer::before, .main-footer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: rgba(245, 124, 0, 0.1); /* NEW: 橙色圆圈 */
    z-index: 0;
}

.main-footer::before {
    width: 150px;
    height: 150px;
    bottom: -80px;
    left: -50px;
}

.main-footer::after {
    width: 80px;
    height: 80px;
    top: -40px;
    right: -30px;
}

.main-footer .container { /* 确保内容在圆圈之上 */
    position: relative;
    z-index: 1;
}

.main-footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-footer a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.main-footer p {
    margin: 0.5rem 0;
    letter-spacing: 0.5px; /* 增加字母间距 */
}

/* Keyframe Animations */
@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, 2%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.development-message {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #666;
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: #fff; /* 将波浪线颜色改为白色 */
    text-decoration-thickness: 4px; /* 粗波浪线 */
    text-underline-offset: 8px; /* 波浪线与文字间隔 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影 */
}