@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 10% 20%, #eef2f7, #d9e2ec);
    font-family: 'Segoe UI', 'Roboto', 'Noto Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    padding: 1.5rem 1rem;
    color: #0a2a3b;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 航天头图区 */
.hero {
    background: linear-gradient(115deg, #0b1f2c 0%, #123b4f 100%);
    border-radius: 1.5rem;
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "🚀";
    font-size: 160px;
    font-weight: 400;
    opacity: 0.06;
    position: absolute;
    right: -20px;
    bottom: -40px;
    pointer-events: none;
}

.hero h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFF9E0, #c0e0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero h1 span {
    background: none;
    font-size: 1.8rem;
}

.hero p {
    color: #d4eaff;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
    max-width: 100%;
}

/* 返回文件夹 - 子目录用 */
.breadcrumb {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #b9d9f0;
}

.breadcrumb a {
    color: #ffdfaa;
    text-decoration: none;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    transition: 0.2s;
}

.breadcrumb a:hover {
    background: rgba(255,215,150,0.3);
    text-decoration: underline;
}

.breadcrumb span {
    color: #e0f0ff;
}
/* 返回文件夹 - 子目录用 */

/* 文件夹信息卡片 (展示当前文件夹详情) */
.folder-info-card {
    background: #ffffffdd;
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(68, 112, 138, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.folder-stats-large {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.stat-badge {
    background: #eef2fa;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1f6392;
}

.modify-large {
    color: #5f7f95;
    font-family: monospace;
    font-size: 0.8rem;
}

/* 邮品网格列表 (卡片式展示内容) */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.stamp-card {
    background: #ffffffea;
    backdrop-filter: blur(2px);
    border-radius: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.25s;
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(78, 128, 152, 0.2);
    overflow: hidden;
    cursor: default;
}

.stamp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.2);
    background: white;
}

.stamp-header {
    padding: 1rem 1.2rem 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #eef2fa;
}

.stamp-icon {
    font-size: 2rem;
    width: 2.2rem;
    text-align: center;
}

.stamp-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1e4663;
    line-height: 1.3;
}

.stamp-name:hover {
    color: #1e6fff;
}

.stamp-detail {
    padding: 0.8rem 1.2rem 1rem;
    font-size: 0.8rem;
    color: #2b4f6e;
    background: #fefefe;
}

.stamp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e0e8f0;
    font-size: 0.7rem;
    color: #6f95af;
}

.date-badge {
    background: #eef2fa;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: #ffffffcc;
    border-radius: 2rem;
    margin: 1rem 0;
    color: #3a6e8c;
}

/* 文件夹网格 */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    margin: 1.8rem 0 2rem;
}

.folder-card {
    background: #ffffffea;
    backdrop-filter: blur(2px);
    border-radius: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.25s;
    box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(78, 128, 152, 0.2);
    overflow: hidden;
    cursor: default;
}

.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 30px -14px rgba(0, 0, 0, 0.3);
    background: #fffffff2;
}

.folder-header {
    padding: 1rem 1.2rem 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px dashed #cbdbe2;
}

.folder-icon-em {
    font-size: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    width: 2.2rem;
    text-align: center;
}

.folder-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #1e4663;
    line-height: 1.3;
}

.folder-name:hover {
    color: #1e6fff;
}

.folder-stats {
    padding: 0.7rem 1.2rem;
    display: flex;
    justify-content: space-between;
    background: #f8faff;
    font-size: 0.8rem;
    border-bottom: 1px solid #e9edf2;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-count {
    background: #eef2fa;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-weight: 600;
    color: #1f6392;
    font-size: 0.75rem;
}

.modify-time {
    color: #5f7f95;
    font-family: monospace;
    font-size: 0.75rem;
}

.folder-desc {
    padding: 0.8rem 1.2rem 1rem;
    font-size: 0.8rem;
    color: #2b4f6e;
    background: white;
    border-top: 1px solid #eff3f8;
    line-height: 1.4;
}

.special-tag {
    background: #e2eafc;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    color: red;
    margin-left: 6px;
    vertical-align: middle;
}

/* ========= 底部联系卡片区域 - 邮箱与PGP合并为一行，微信群独立一行 ========= */
.contact-section {
    margin-top: 2.5rem;
    border-radius: 1.8rem;
    background: rgba(255, 255, 250, 0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(120, 160, 180, 0.35);
    transition: all 0.2s;
}

.contact-inner {
    padding: 1.5rem 1.8rem;
}

.contact-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #2c6e8f;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid rgba(44, 110, 143, 0.2);
    padding-bottom: 0.6rem;
}

.contact-title span {
    font-size: 1.2rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 卡片样式 */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.9rem 1.2rem;
    border-radius: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateX(4px);
    border-color: rgba(44, 110, 143, 0.3);
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.1);
}

.card-emoji {
    font-size: 1.9rem;
    min-width: 3rem;
    text-align: center;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
}

.card-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

/* 邮箱样式 */
.email-value {
    font-weight: 600;
    color: #1a5d7a;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    background: #eef3fa;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
}

/* PGP key 样式 */
.pgp-value {
    display: inline-block;
    background: #0f2c3b;
    color: #c9f0ff;
    font-family: 'SF Mono', 'Fira Code', monospace;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    letter-spacing: -0.2px;
    word-break: break-all;
    max-width: 100%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 2px rgba(0,0,0,0.1);
}

/* 微信群卡片单独样式 */
.wechat-card .card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.wechat-badge {
    background: #eef9f5;
    color: #1f6e5c;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wechat-desc {
    color: #2c5f6e;
    font-size: 0.85rem;
    line-height: 1.4;
}

.card-hint {
    color: #9cb8cc;
    font-size: 0.8rem;
    transition: 0.2s;
}

.contact-card:hover .card-hint {
    color: #2c7da0;
    transform: translateX(3px);
}

.simple-footer {
    margin-top: 1.8rem;
    text-align: center;
    padding: 1rem 0.5rem;
    border-top: 1px solid rgba(104, 144, 170, 0.25);
    font-size: 0.7rem;
    color: #2c5f7e;
}

/* 手机优化 */
@media (max-width: 640px) {
    body {
        padding: 1rem 0.8rem;
    }
    .hero {
        padding: 1.2rem 1rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.8rem;
    }
    .folder-header {
        gap: 8px;
    }
    .folder-icon-em {
        font-size: 1.7rem;
        width: 1.8rem;
    }
    .folder-name {
        font-size: 1rem;
    }
    .folder-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .contact-inner {
        padding: 1.2rem;
    }
    .contact-card {
        padding: 0.7rem 1rem;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    .card-emoji {
        font-size: 1.6rem;
        min-width: 2.4rem;
    }
    .card-content {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .pgp-value {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
    }
    .email-value {
        font-size: 0.8rem;
    }
}

/* 中等屏幕：保持合并行内联 */
@media (min-width: 641px) and (max-width: 900px) {
    .card-content {
        gap: 0.5rem;
    }
    .pgp-value {
        font-size: 0.7rem;
    }
}
