/* 基础样式重置 - 清除默认边距和内边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 统一盒模型计算方式 */
}
/* 头部导航 - 固定在顶部，包含logo、导航菜单和CTA按钮 */
header {
    background: linear-gradient(to right, #2c5e1a, #3a7d29);
    color: white;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* 头部容器 - 居中布局，设置最大宽度 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo区域 - 包含图标和文字 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2.2rem;
    color: #d4a017;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #d4a017;
    transition: all 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #d4a017;
}

.cta-button {
    background: #d4a017;
    color: #2c5e1a;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: #e6ba2a;
    /* 悬停时加深背景色 */
    transform: translateY(-3px);
    /* 轻微上移效果 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* 添加阴影增强立体感 */
}

/* 页脚样式 - 深色背景，包含多列布局和版权信息 */
footer {
    background: #222;
    color: #ddd;
    padding: 4rem 5% 2rem;
}

/* 页脚容器 - 响应式网格布局 */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

/* 页脚标题下划线 - 使用辅助色强调 */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #d4a017;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #d4a017;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #d4a017;
    /* 悬停时使用辅助色作为背景 */
    color: #2c5e1a;
    /* 文字颜色变为主色 */
    transform: translateY(-3px);
    /* 轻微上移效果 */
}

/* 版权信息 - 底部居中显示，浅色文字 */
.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.9rem;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-title h1 {
    margin-top: 30px;
    font-size: 2.8rem;
    color: #2c5e1a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.2rem;
    color: #5a7f4c;
    max-width: 700px;
    margin: 0 auto;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #7dab6d, transparent);
}

/* 波浪动画样式 */
.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    /* Fix for safari gap */
    min-height: 100px;
    max-height: 150px;
}

/* Animation */
.parallax > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }
    .content {
        height: 30vh;
    }
    h1 {
        font-size: 24px;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d65d, #00b631);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(22, 195, 88, 0.689);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: none;
    outline: none;
    font-size: 22px;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 214, 21, 0.7);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* 查看更多链接样式 */
.more-link {
    float: right;
    color: #d4a017;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.more-link:hover {
    color: #2c5e1a;
    text-shadow: 0 2px 5px rgba(212, 160, 23, 0.3);
}