/* style.css - 胶囊页面与关于页面的共享样式 */

/* 页面通用样式 */
.page-title {
    font-size: 38px;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Zhi Mang Xing', cursive;
    letter-spacing: 4px;
}

.subpage-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    animation: fadeInUp 0.6s ease forwards;
}

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

/* --- 时间胶囊页面样式 (capsule.html) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--paper-color);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(138, 115, 95, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(220, 210, 200, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(138, 115, 95, 0.12);
    border-color: rgba(255, 184, 34, 0.2);
}

.feature-card.highlight {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, #fffdfa 0%, #fdf5f3 100%);
    border: 1px solid rgba(255, 184, 34, 0.3);
}

.feature-icon {
    margin-bottom: 25px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 184, 34, 0.05); /* 淡淡的底色 */
    border-radius: 50%;
}

.feature-card h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 500;
}

.feature-card p {
    color: #6a5d51;
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
}

.promotion-tag {
    margin-top: 20px;
    color: var(--accent-color);
    font-size: 13px;
    padding: 6px 16px;
    background: rgba(255, 184, 34, 0.1);
    border-radius: 20px;
    letter-spacing: 1px;
}

/* 引用和故事部分 */
.quote-section {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--line-color);
    margin-top: 40px;
}

.quote-main h3 {
    font-family: 'Zhi Mang Xing', cursive;
    font-size: 32px;
    font-weight: normal;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.quote-main p {
    color: var(--text-muted);
    font-size: 15px;
    letter-spacing: 4px;
}

/* --- 关于我们页面样式 (about.html) --- */
.about-content {
    background: var(--paper-color);
    padding: 60px 50px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(138, 115, 95, 0.05), 
                0 0 0 1px rgba(220, 210, 200, 0.5) inset;
}

.story-section,
.team-section,
.contact-section {
    margin-bottom: 50px;
}

.about-content h3 {
    font-size: 22px;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-content p {
    line-height: 2;
    color: #5c5044;
    font-size: 15px;
    margin-bottom: 15px;
}

.team-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.team-section li {
    margin-bottom: 15px;
    position: relative;
    color: #5c5044;
    padding-left: 25px;
    font-size: 15px;
}

.team-section li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

.contact-info {
    background: #fdfbf7;
    padding: 30px;
    border-radius: 4px;
    margin-top: 25px;
    border: 1px dashed rgba(220, 210, 200, 0.8);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    color: #5c5044;
    font-size: 15px;
}

.contact-icon {
    color: var(--accent-color);
    opacity: 0.8;
}

.qrcode-container {
    text-align: center;
    margin-top: 40px;
}

.qrcode {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 10px;
    background: white;
}

.qrcode-hint {
    margin-top: 15px;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    letter-spacing: 2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .subpage-container {
        padding-top: 100px;
    }

    .page-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .about-content {
        padding: 40px 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* 全局 Modal 样式 (用于各个子页面的弹窗) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    background: var(--paper-color);
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(180, 160, 140, 0.2), 0 0 0 1px var(--line-color);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-color);
}

/* 统一页脚样式 */
footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 30px 0;
    margin-top: auto;
    width: 100%;
    border-top: 1px dashed var(--line-color);
}