/* ========================================
   田园小站 — style.css
   页面样式 + CSS 背景动画
   ======================================== */

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text-dark:   #3d2e1e;
    --text-soft:   #7a6a5a;
    --card-bg:     rgba(255, 248, 235, 0.72);
    --card-border: rgba(255, 240, 210, 0.5);
    --shadow:      0 8px 40px rgba(80, 50, 20, 0.15);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Georgia", "Songti SC", "Noto Serif SC", "Times New Roman", serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.8;
    overflow: hidden;
    background: #e8d5b8;
}

/* ===== Canvas Background ===== */
#landscapeCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
}

/* ===== Card ===== */
.card-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 1.2rem;
    animation: cardEnter 1.2s ease 0.5s both;
}

@keyframes cardEnter {
    0%   { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.6rem 2.4rem 2.2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
}

/* ===== Avatar ===== */
.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, #f5d78a 0%, #deb66a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    font-family: "Georgia", serif;
    box-shadow: 0 4px 24px rgba(200, 160, 80, 0.3);
    position: relative;
    user-select: none;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(220, 190, 140, 0.35);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.08); opacity: 0.15; }
}

/* ===== Typography ===== */
.card h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.card .meta {
    font-size: 0.8rem;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card .meta .sep {
    margin: 0 0.4rem;
    opacity: 0.3;
}

.card p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 2;
    margin-bottom: 1.4rem;
}

.card p:last-of-type {
    margin-bottom: 0;
}

.sig {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--text-dark);
    font-style: italic;
    letter-spacing: 0.06em;
}

/* ===== Floral Divider ===== */
.divider-floral {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.2rem 0;
    color: rgba(180, 150, 100, 0.45);
    font-size: 0.8rem;
    user-select: none;
}

.divider-floral::before,
.divider-floral::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 150, 100, 0.25), transparent);
}

/* ===== Footer ===== */
.footer-note {
    margin-top: 1.4rem;
    font-size: 0.72rem;
    color: rgba(120, 100, 80, 0.35);
    line-height: 1.4;
}

.icp-beian {
    margin-top: 0.6rem;
    font-size: 0.78rem;
}

.icp-beian a {
    color: rgba(120, 100, 80, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.icp-beian a:hover {
    color: rgba(120, 100, 80, 0.9);
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .card { padding: 2rem 1.5rem; }
    .card h1 { font-size: 1.4rem; }
    .card p { font-size: 0.85rem; }
}
