* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background: #f7f8f9;
    color: #333;
    line-height: 1.7;
    position: relative;
    min-height: 100vh;
}

#bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
    transform: scale(1.05);
    opacity: 0;
    transition: opacity 0.5s ease;
}
#bg-blur.show {
    opacity: 1;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: blur(5px);   /* 🆕 Safari 前缀 */
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    display: flex;
    justify-content: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
}

.time-display {
    text-align: center;
    margin: 40px 0 50px;
}
.time {
    font-size: 64px;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 2px;
}
.date {
    font-size: 28px;
    color: #7f8c8d;
    margin-top: 10px;
}

.article-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
}
.article-section h2 {
    text-align: center;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: normal;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.article-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}
.article-card:active {
    transform: translateY(0px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
    text-align: center;
    word-break: break-word;
}
.card-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}
.card-divider {
    margin: 10px 0 12px 0;
    border: none;
    border-top: 1px solid #eeeeee;
}
.card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-detail {
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(2px);   /* 🆕 Safari 前缀 */
    backdrop-filter: blur(2px);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}
.article-detail h1 {
    margin-bottom: 15px;
    color: #2c3e50;
}
.detail-image {
    margin: 15px 0 20px;
    text-align: center;
}
.detail-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.article-detail .info {
    color: #999;
    margin-bottom: 20px;
    font-size: 14px;
}
.article-detail .content {
    font-size: 16px;
    line-height: 1.8;
}
.article-detail .content h1,
.article-detail .content h2 {
    margin: 1.5em 0 0.5em;
}
.article-detail .content p {
    margin-bottom: 1em;
}
.article-detail .content strong {
    color: #2c3e50;
}
.article-detail .content code {
    background: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
}
.back-btn {
    background: none;
    border: none;
    color: #3498db;
    font-size: 16px;
    cursor: pointer;
    padding: 0 0 20px 0;
}
.back-btn:hover {
    text-decoration: underline;
}

footer {
    background: rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(5px);   /* 🆕 Safari 前缀 */
    backdrop-filter: blur(5px);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .container {
        width: 92%;
        padding: 0 10px;
    }
    .time {
        font-size: 40px;
    }
    .date {
        font-size: 20px;
    }
    .article-section {
        max-width: 100%;
    }
    .article-card {
        padding: 16px 18px;
        border-radius: 10px;
    }
    .card-title {
        font-size: 16px;
    }
    .card-date {
        font-size: 12px;
    }
    .card-summary {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    .detail-image img {
        max-height: 250px;
    }
    .article-detail {
        padding: 20px;
        background: rgba(255,255,255,0.95);
    }
}