:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding: 15px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 动态背景样式 */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4, #a1c4fd);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.8;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: floatAnimation 20s infinite linear;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 修复浮动动画 - 重命名避免冲突 */
@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* 加载动画容器 - 参考提供的网页 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 100%); /* 使用您指定的色系 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-container.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

/* 加载动画 */
.loading-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.loading-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #ff6b6b; /* 使用主题色 */
    animation: spin 1.5s linear infinite;
}

.loading-circle:nth-child(2) {
    border-top-color: #4ecdc4; /* 使用次要主题色 */
    animation-delay: 0.2s;
}

.loading-circle:nth-child(3) {
    border-top-color: #ff9a9e; /* 使用背景色系 */
    animation-delay: 0.4s;
}

.loading-title {
    font-size: 28px;
    font-weight: 300;
    color: #5a3e36; /* 深色文字确保可读性 */
    letter-spacing: 2px;
    animation: textFloat 3s ease-in-out infinite;
}

/* 动画定义 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 重命名文字浮动动画避免冲突 */
@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.site-info {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .main-container {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }
    
    .desc-card {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .site-links-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    .social-card {
        grid-column: 2;
        grid-row: 2;
    }
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.card-title i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.desc-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--light-bg);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
}

.link-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(3px);
}

.link-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    padding: 8px;
    border-radius: 8px;
    width: 70px;
    background: var(--light-bg);
}

.social-item:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.03);
}

.social-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    font-weight: bold;
    font-size: 0.9rem;
}

/* 时间模块样式 */
.time-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.time-module {
    flex: 1;
    min-width: 220px;
}

.current-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.current-time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 70px;
}

.countdown-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
}

.countdown-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

/* 生命天数模块样式 */
.life-days-module {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.life-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    font-family: 'Arial', sans-serif;
}

.life-days {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.life-days::after {
    content: "天";
    font-size: 1.5rem;
    margin-left: 5px;
}

.birth-date {
    font-size: 1rem;
    color: #666;
    font-family: 'Arial', sans-serif;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .time-section {
        flex-direction: column;
    }
    
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .loading-title {
        font-size: 24px;
    }
    
    .loading-animation {
        width: 100px;
        height: 100px;
    }
}