/* 时间胶囊功能卡片美化与适配 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 40px 0 60px 0;
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(216,140,126,0.08), 0 1.5px 6px rgba(216,140,126,0.06);
    padding: 32px 18px 28px 18px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.feature-card:hover {
    box-shadow: 0 8px 32px rgba(216,140,126,0.18);
    transform: translateY(-4px) scale(1.03);
}
.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 1.18rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-card p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0;
}
.feature-card.highlight {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff5f5, #fff);
}
.promotion-tag {
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.98rem;
}

@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 700px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 24px 0 36px 0;
    }
    .feature-card {
        padding: 22px 8vw 18px 8vw;
        min-height: 120px;
    }
    .feature-card .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .feature-card h3 {
        font-size: 1.05rem;
    }
    .feature-card p {
        font-size: 0.97rem;
    }
}
/* 导入中文字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&display=swap');

:root {
    --background-color: #FFF5EE;
    --primary-color: #D88C7E;
    --accent-color: #95C5B0;
    --text-color: #2D4356;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    font-family: 'Noto Serif SC', serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 导航栏样式 */
.top-nav {
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 30px;
    padding: 8px 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

/* 主要内容区域 */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    height: calc(100vh - 80px);
}

/* 装饰元素 */
.decorative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.clock {
    position: absolute;
    width: 180px;
    height: 180px;
}

.left-clock {
    top: 50px;
    left: 50px;
}

.right-clock {
    top: 50px;
    right: 50px;
}

.envelope {
    position: absolute;
    bottom: 100px;
    left: 150px;
    width: 200px;
    transform: rotate(-15deg);
}

.leaf {
    position: absolute;
    width: 120px;
}

.leaf-1 {
    top: 80px;
    right: 100px;
}

.leaf-2 {
    bottom: 120px;
    right: 150px;
}

/* 中心内容 */
.content-center {
    text-align: center;
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    line-height: 2;
    margin-bottom: 60px;
    font-size: 18px;
}

.subtitle p {
    margin: 10px 0;
}

.subtitle .highlight {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 500;
}

/* 按钮样式 */
.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.main-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFD699;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 214, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 214, 153, 0.4);
}

.write-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* 波纹动画效果 */
.main-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links a {
        margin: 0 10px;
        padding: 6px 15px;
        font-size: 16px;
    }

    h1 {
        font-size: 32px;
        padding: 0 20px;
    }

    .subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .clock {
        width: 120px;
        height: 120px;
    }

    .envelope {
        width: 150px;
    }

    .leaf {
        width: 80px;
    }
}

/* 统计信息样式 */
.stats-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.stats-wrapper {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: #ddd;
}

/* 数字变化动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.5s ease-out;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .stats-wrapper {
        gap: 20px;
    }

    .stat-icon {
        font-size: 20px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }
}

.stamp {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 150px;
    height: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .stamp {
        width: 100px;
        top: 20px;
        left: 20px;
    }
} 