* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
}

:root {
    /* 日间模式颜色（默认） */
    --light-primary-color: #f5a88e;
    --light-secondary-color: #e8a5c1;
    --light-tertiary-color: #f5d5c6;
    --light-text-color: #714e42;
    --light-bg: #fcf1e6;
    --light-card-bg: rgba(255, 247, 240, 0.7);
    --light-shadow: 0 10px 30px rgba(226, 178, 148, 0.2);
    --light-glow: 0 0 20px rgba(245, 168, 142, 0.5);
    --light-alive-color: #c17f91;
    --light-orbit-color: rgba(226, 178, 148, 0.2);
    --light-nav-bg: rgba(252, 241, 230, 0.8);
    --light-border-color: rgba(226, 178, 148, 0.2);
    --light-orb-color: #ff8fb3;
    --light-orb-glow: 0 0 25px rgba(255, 143, 179, 0.8);
    --light-star-color: #f5a88e;
    --light-planet-color: #e8a5c1;
    --light-card-text: #4a3429;
    --light-card-title: #3c2a22;
    
    /* 夜间模式颜色 - 暖色调深色版本 */
    --dark-primary-color: #d4956a;
    --dark-secondary-color: #c78b9e;
    --dark-tertiary-color: #b8947a;
    --dark-text-color: #f5e6d3;
    --dark-bg: #1a1410;
    --dark-card-bg: rgba(35, 28, 22, 0.85);
    --dark-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --dark-glow: 0 0 15px rgba(212, 149, 106, 0.3);
    --dark-alive-color: #e8a5c1;
    --dark-orbit-color: rgba(212, 149, 106, 0.15);
    --dark-nav-bg: rgba(26, 20, 16, 0.9);
    --dark-border-color: rgba(212, 149, 106, 0.15);
    --dark-orb-color: #d4956a;
    --dark-orb-glow: 0 0 20px rgba(212, 149, 106, 0.5);
    --dark-star-color: #e8a5c1;
    --dark-planet-color: #c78b9e;
    --dark-card-text: #f5e6d3;
    --dark-card-title: #f5e6d3;
    
    /* 默认使用日间模式变量 */
    --primary-color: var(--light-primary-color);
    --secondary-color: var(--light-secondary-color);
    --tertiary-color: var(--light-tertiary-color);
    --text-color: var(--light-text-color);
    --bg: var(--light-bg);
    --card-bg: var(--light-card-bg);
    --shadow: var(--light-shadow);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glow: var(--light-glow);
    --alive-color: var(--light-alive-color);
    --orbit-color: var(--light-orbit-color);
    --nav-bg: var(--light-nav-bg);
    --border-color: var(--light-border-color);
    --orb-color: var(--light-orb-color);
    --orb-glow: var(--light-orb-glow);
    --star-color: var(--light-star-color);
    --planet-color: var(--light-planet-color);
    --card-text: var(--light-card-text);
    --card-title: var(--light-card-title);
}

/* 夜间模式样式 */
body.dark-theme {
    --primary-color: var(--dark-primary-color);
    --secondary-color: var(--dark-secondary-color);
    --tertiary-color: var(--dark-tertiary-color);
    --text-color: var(--dark-text-color);
    --bg: var(--dark-bg);
    --card-bg: var(--dark-card-bg);
    --shadow: var(--dark-shadow);
    --glow: var(--dark-glow);
    --alive-color: var(--dark-alive-color);
    --orbit-color: var(--dark-orbit-color);
    --nav-bg: var(--dark-nav-bg);
    --border-color: var(--dark-border-color);
    --orb-color: var(--dark-orb-color);
    --orb-glow: var(--dark-orb-glow);
    --star-color: var(--dark-star-color);
    --planet-color: var(--dark-planet-color);
    --card-text: var(--dark-card-text);
    --card-title: var(--dark-card-title);
}

body {
    background: var(--bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
    position: relative;
}

.nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    transition: color 0.3s;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-item a:hover {
    color: var(--primary-color);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s;
}

/* 容器样式 */
.container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding-top: 6rem;
}

/* 页面通用头部 */
.page-header {
    text-align: center;
    margin: 2rem 0 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--text-color), rgba(113, 78, 66, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

body.dark-theme .page-title {
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(113, 78, 66, 0.7);
    letter-spacing: 1px;
}

body.dark-theme .page-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* About页面样式 */
.about-intro {
    margin-bottom: 3rem;
}

.about-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    background-image: linear-gradient(var(--card-bg) 1.5rem, rgba(226, 178, 148, 0.1) 1.6rem);
    background-size: 100% 1.6rem;
    line-height: 1.6rem;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    z-index: 2;
}

body.dark-theme .about-card {
    background-image: linear-gradient(var(--card-bg) 1.5rem, rgba(108, 99, 255, 0.1) 1.6rem);
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-tagline {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1rem 0;
    letter-spacing: 1px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--card-text);
    max-width: 800px;
}

body:not(.dark-theme) .about-text {
    color: #4a3429;
}

body:not(.dark-theme) .about-content h2 {
    color: #3c2a22;
}

body:not(.dark-theme) .life-since {
    color: rgba(74, 52, 41, 0.8);
}

/* 生命计时器样式 - 宇宙风格 */
.life-counter {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.life-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color));
}

.life-title {
    position: relative;
    margin-bottom: 3rem;
}

.life-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    display: inline-block;
}

.life-title h2::after {
    display: none;
}

.alive-text {
    background: linear-gradient(45deg, var(--alive-color), var(--tertiary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.alive-text::after {
    content: 'Alive';
    position: absolute;
    left: 0;
    top: 0;
    -webkit-text-fill-color: transparent;
    filter: blur(8px);
    opacity: 0.8;
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}

.life-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 241, 205, 0.1) 0%, rgba(54, 241, 205, 0) 70%);
    z-index: -1;
    animation: pulse-rings 2s ease-in-out infinite;
}

.cosmos-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto 2rem;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffcc8e 0%, rgba(255, 204, 142, 0) 70%);
    box-shadow: 0 0 25px #ffcc8e, 0 0 40px rgba(255, 204, 142, 0.4);
    animation: star-pulse 3s ease-in-out infinite;
    z-index: 10;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 204, 142, 0.3);
    border-radius: 50%;
    background: transparent;
    opacity: 0.8;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: orbit-rotate-1 40s linear infinite;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: orbit-rotate-2 60s linear infinite reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%) rotate(90deg);
    animation: orbit-rotate-3 80s linear infinite;
}

.planet {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: var(--bg);
    transform-style: preserve-3d;
    box-shadow: 
        inset -5px -5px 15px rgba(0,0,0,0.3),
        inset 5px 5px 10px rgba(255,255,255,0.2),
        0 0 20px rgba(255, 107, 149, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.planet::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5) 0%, transparent 60%);
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
}

.planet::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 70%, rgba(0,0,0,0.3) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.planet-years {
    background: radial-gradient(circle at 30% 30%, #ffb6c1, #ff92a5);
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.2),
        inset 5px 5px 15px rgba(255,255,255,0.3),
        0 0 20px 5px rgba(255, 182, 193, 0.5);
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.planet-days {
    background: radial-gradient(circle at 30% 30%, #ffcc8e, #ffa76a);
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.2),
        inset 5px 5px 15px rgba(255,255,255,0.3),
        0 0 20px 5px rgba(255, 204, 142, 0.5);
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}

.planet-hours {
    background: radial-gradient(circle at 30% 30%, #c4e8ff, #a0d8f0);
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.2),
        inset 5px 5px 15px rgba(255,255,255,0.3),
        0 0 20px 5px rgba(196, 232, 255, 0.5);
    bottom: -40px;
    left: 30%;
}

.planet span {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: -3px;
    position: relative;
    z-index: 3;
}

.planet-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    position: relative;
    z-index: 3;
}

.life-since {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    max-width: 1000px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* 联系方式样式 */
.contact {
    background: var(--card-bg);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color));
}

.contact h2 {
    font-size: 2rem;
    color: var(--card-title);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.contact h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transform: translateX(-50%);
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(108, 99, 255, 0.1), rgba(255, 107, 149, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(108, 99, 255, 0.3);
}

.contact-item:hover::before {
    opacity: 1;
}

.icon {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 1.5rem;
    min-width: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

.icon i {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info {
    position: relative;
    z-index: 1;
    flex: 1;
}

.info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--card-title);
    letter-spacing: 1px;
}

.info p, .info a {
    color: var(--card-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.info a:hover {
    color: var(--secondary-color);
}

.copy-indicator {
    position: relative;
    margin-top: 0.5rem;
    height: 20px;
    display: flex;
    align-items: center;
}

.tooltip, .copied-tooltip {
    position: absolute;
    font-size: 0.8rem;
    transition: opacity 0.3s, transform 0.3s;
}

.copied-tooltip {
    opacity: 0;
    transform: translateY(10px);
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-item.copied .copied-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* 增强复制效果 */
.contact-item.copied {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(var(--primary-color), 0.3);
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

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

@keyframes pulse-glow {
    0% {
        filter: blur(8px);
        opacity: 0.5;
    }
    50% {
        filter: blur(12px);
        opacity: 0.8;
    }
    100% {
        filter: blur(8px);
        opacity: 0.5;
    }
}

@keyframes pulse-rings {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

@keyframes star-pulse {
    0% {
        box-shadow: 0 0 15px 3px rgba(255, 204, 142, 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(255, 204, 142, 0.7);
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        box-shadow: 0 0 15px 3px rgba(255, 204, 142, 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes orbit-rotate-1 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbit-rotate-2 {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(405deg);
    }
}

@keyframes orbit-rotate-3 {
    0% {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(450deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        width: 80%;
        height: 100vh;
        padding-top: 5rem;
        transition: left 0.3s ease;
        z-index: 900;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .cosmos-container {
        height: 350px;
    }
    
    .orbit-1 {
        width: 180px;
        height: 180px;
    }
    
    .orbit-2 {
        width: 260px;
        height: 260px;
    }
    
    .orbit-3 {
        width: 340px;
        height: 340px;
    }
    
    .planet {
        width: 70px;
        height: 70px;
    }
    
    .planet span {
        font-size: 1.8rem;
    }
    
    .contact-items {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.5rem;
    }
    
    .life-title h2 {
        font-size: 2rem;
    }
    
    .theme-toggle-icon {
        font-size: 1.3rem;
    }
    
    body.dark-theme .nav-menu {
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    }

    .envelope-container {
        min-height: 460px;
    }
    
    .about-card {
        padding: 2rem 1.5rem;
    }
    
    .envelope-seal {
        width: 60px;
        height: 60px;
        margin-top: -17px;
    }
    
    .envelope-seal i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding-top: 5rem;
    }
    
    .orbit-1 {
        width: 140px;
        height: 140px;
    }
    
    .orbit-2 {
        width: 220px;
        height: 220px;
    }
    
    .orbit-3 {
        width: 300px;
        height: 300px;
    }
    
    .planet {
        width: 60px;
        height: 60px;
    }
    
    .planet span {
        font-size: 1.6rem;
    }
    
    .planet-label {
        font-size: 0.7rem;
    }
    
    .life-counter {
        padding: 2rem 1rem;
        min-height: 400px;
    }
    
    section {
        padding: 2rem 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
    
    .life-title h2 {
        font-size: 2rem;
    }
}

/* 信件样式 */
.about-greeting {
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.about-letter {
    position: relative;
    padding: 0 1rem;
}

.about-letter::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.about-letter p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--card-text);
    margin-bottom: 1.2rem;
    text-indent: 1rem;
}

.about-name {
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 2px;
}

.about-signature {
    font-family: 'Brush Script MT', cursive, 'Poppins', sans-serif;
    font-size: 1.5rem;
    text-align: right;
    margin-top: 2rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--primary-color);
    transform: rotate(-3deg);
    display: inline-block;
    float: right;
    position: relative;
    margin-right: 1rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.about-signature::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: -1rem;
    right: -1rem;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.5;
}

.about-content h2 {
    font-size: 1.8rem;
    color: var(--card-title);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

/* 信封样式和动效 */
.envelope-container {
    position: relative;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto 1rem;
    perspective: 1000px;
    min-height: 440px;
}

.envelope {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px !important;
    max-height: 460px;
    background: linear-gradient(145deg, #f8e3d9, #fdf0e7);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform-style: preserve-3d;
    transform: rotate(180deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.envelope:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(180deg) translateY(-5px);
}

body.dark-theme .envelope {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(160deg, #f5a88e, #e8a5c1);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s;
    border-radius: 12px 12px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-theme .envelope-flap {
    background: linear-gradient(160deg, #d4956a, #c78b9e);
}

.envelope-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    z-index: 4;
    pointer-events: none;
}

.envelope-hint {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(245, 168, 142, 0.95);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(245, 168, 142, 0.3);
    z-index: 10;
}

.envelope:hover .envelope-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

body.dark-theme .envelope-hint {
    background: rgba(212, 149, 106, 0.95);
    box-shadow: 0 4px 12px rgba(212, 149, 106, 0.3);
}

.envelope-seal {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: -35px;
    transform: rotate(180deg);
}

body.dark-theme .envelope-seal {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
}

.envelope-seal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

.envelope-seal::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.envelope-seal i {
    font-size: 1.5rem;
    margin-bottom: 3px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
}

.seal-pattern {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    margin-bottom: -3px;
    z-index: 2;
}

.seal-pattern i {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    filter: drop-shadow(0 0 1px rgba(255, 215, 0, 0.6));
}

.envelope-seal:hover .seal-pattern i {
    color: rgba(255, 215, 0, 0.8); /* 金色效果 */
    transition: color 0.3s ease;
}

.envelope-seal span {
    font-size: 1.3rem;
    font-weight: bold;
    opacity: 0.95;
    z-index: 2;
    margin-top: -5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 信封打开状态 */
.envelope-container.open .envelope {
    transform: rotateX(90deg);
    pointer-events: none;
    opacity: 0;
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease 0.3s;
}

.envelope-container.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-container.open .envelope-seal {
    opacity: 0;
    transform: scale(0.5) rotate(200deg);
}

.envelope-container.open .letter-content {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0.6s;
}

/* 调整信纸样式与信封完全匹配 */
.letter-content {
    width: 100% !important;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .envelope-container {
        min-height: 460px;
    }
    
    .about-card {
        padding: 2rem 1.5rem;
    }
    
    .envelope-seal {
        width: 60px;
        height: 60px;
        margin-top: -15px;
    }
    
    .envelope-seal i {
        font-size: 1.5rem;
    }
}

/* 调整信纸样式 */
.about-card.letter-content {
    margin-bottom: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    visibility: hidden;
    position: relative;
    z-index: 1;
} 

/* 悬浮装饰元素 */
.floating-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.stars-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.tiny-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffcc8e;
    border-radius: 50%;
    opacity: 0.4;
    animation: twinkle-tiny 3s ease-in-out infinite;
}

.small-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffb6c1;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle-small 5s ease-in-out infinite;
}

.medium-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #c4e8ff;
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle-medium 7s ease-in-out infinite;
}

@keyframes twinkle-tiny {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes twinkle-small {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes twinkle-medium {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* 美化星球外观 */
.planet:hover {
    transform: scale(1.08);
}

.planet-years:hover {
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.2),
        inset 5px 5px 15px rgba(255,255,255,0.3),
        0 0 25px 8px rgba(255, 182, 193, 0.6);
}

.planet-days:hover {
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.2),
        inset 5px 5px 15px rgba(255,255,255,0.3),
        0 0 25px 8px rgba(255, 204, 142, 0.6);
}

.planet-hours:hover {
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.2),
        inset 5px 5px 15px rgba(255,255,255,0.3),
        0 0 25px 8px rgba(196, 232, 255, 0.6);
}

/* 信封样式优化 */
.envelope {
    backdrop-filter: blur(5px);
}

.envelope-seal {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.envelope-seal:hover {
    transform: rotate(180deg) scale(1.1);
}

/* 页面整体风格增强 */
.life-counter, .contact, .about-card {
    border: 1px solid rgba(255, 204, 142, 0.15);
}

.life-counter::before, .contact::before, .about-card::before {
    background: linear-gradient(to right, #ffb6c1, #ffcc8e, #c4e8ff);
}

/* 页脚装饰 */
.footer-decoration {
    width: 100%;
    height: 40px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

.footer-cat {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 A30,30 0 1,0 80,50 A20,30 0 0,1 50,20" fill="%23f5a88e" stroke="%23c17f91" stroke-width="2" /><circle cx="65" cy="40" r="2" fill="%23714e42" /><circle cx="75" cy="50" r="2" fill="%23714e42" /><path d="M67,55 Q70,58 73,55" fill="none" stroke="%23714e42" stroke-width="2" stroke-linecap="round" /><path d="M55,35 L60,30 M80,45 L85,42" stroke="%23c17f91" stroke-width="2" stroke-linecap="round" /></svg>');
    background-repeat: no-repeat;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.footer-star {
    width: 15px;
    height: 15px;
    margin: 0 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2 L15,8 L21,9 L16.5,14 L18,20 L12,17 L6,20 L7.5,14 L3,9 L9,8 Z" fill="%23f5a88e" stroke="%23c17f91" stroke-width="0.5" /></svg>');
    background-repeat: no-repeat;
    animation: twinkle 3s ease-in-out infinite;
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1) rotate(15deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(25deg);
    }
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 暖色背景装饰 */
.warm-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 168, 142, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.warm-glow.top-left {
    top: -100px;
    left: -100px;
}

.warm-glow.bottom-right {
    bottom: -100px;
    right: -100px;
}

/* 为关于页面添加温暖细节 */
.about-card {
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2 L15,8 L21,9 L16.5,14 L18,20 L12,17 L6,20 L7.5,14 L3,9 L9,8 Z" fill="%23f5a88e" stroke="%23c17f91" stroke-width="0.5" /></svg>');
    background-repeat: no-repeat;
    opacity: 0.3;
    transform: rotate(15deg);
}

.about-name {
    position: relative;
    display: inline-block;
}

.about-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5a88e, transparent);
}

.cosmos-container {
    position: relative;
}

.cosmos-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 A30,30 0 1,0 80,50 A20,30 0 0,1 50,20" fill="%23f5a88e" stroke="%23c17f91" stroke-width="2" /></svg>');
    background-repeat: no-repeat;
    top: 10px;
    right: 10%;
    animation: gentle-bounce 3s ease-in-out infinite;
}

/* 小屏幕调整 */
@media (max-width: 768px) {
    .floating-decoration {
        display: none;
    }
    
    .footer-decoration {
        height: 30px;
    }
}

.logo-banner {
    display: none;
}

.main-logo {
    display: none;
}

/* 增强页面温暖感 */
.warm-glow {
    width: 400px;
    height: 400px;
    filter: blur(80px);
    opacity: 0.5;
}

.warm-glow.top-left {
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, rgba(255, 204, 142, 0.1) 50%, transparent 80%);
    top: -150px;
    left: -150px;
}

.warm-glow.bottom-right {
    background: radial-gradient(circle, rgba(255, 204, 142, 0.2) 0%, rgba(255, 182, 193, 0.1) 50%, transparent 80%);
    bottom: -150px;
    right: -150px;
}

@media (max-width: 768px) {
    .main-logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 120px;
    }
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.footer-logo {
    width: 340px;
    height: auto;
    animation: gentle-float 5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

@media (max-width: 768px) {
    .footer-logo {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 240px;
    }
}

/* Logo点击后爆炸星星的样式 */
.explosion-container {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.explosion-star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: transparent;
    border-radius: 50%;
    opacity: 0;
}

.explosion-star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.explosion-star-1 {
    color: #ffb6c1;
}

.explosion-star-2 {
    color: #ffcc8e;
}

.explosion-star-3 {
    color: #c4e8ff;
}

.explosion-star-4 {
    color: #ffdb8e;
}

.explosion-star-5 {
    color: #ff9393;
}

@keyframes explosion-animation {
    0% {
        transform: translate(0, 0) scale(0.2);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.5);
        opacity: 0;
    }
}

.footer-logo-container {
    position: relative;
    overflow: visible;
}

.footer-logo {
    cursor: pointer;
}

.footer-logo:active {
    transform: scale(0.95);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-color);
    border: none;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.btn-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 50px;
    pointer-events: none;
}

.btn-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border-radius: 50px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.btn-glass span {
    position: relative;
    z-index: 2;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.12);
}

.btn-glass:hover::after {
    opacity: 0.8;
}

.btn-glass:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-theme .btn-glass {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .btn-glass::before {
    background: linear-gradient(
        180deg,
        rgba(212, 149, 106, 0.3) 0%,
        rgba(199, 139, 158, 0.15) 50%,
        rgba(184, 148, 122, 0.08) 100%
    );
}

body.dark-theme .btn-glass::after {
    background: linear-gradient(
        135deg,
        rgba(212, 149, 106, 0.08) 0%,
        transparent 50%,
        rgba(199, 139, 158, 0.05) 100%
    );
}

body.dark-theme .btn-glass:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 8px 30px rgba(0, 0, 0, 0.3);
} 