/* Element UI 主配色 + 全局样式变量 */
:root {
    --el-primary: #409EFF;          /* Element UI 主色 */
    --el-primary-light: #66b1ff;    /* 主色浅色调 */
    --el-primary-dark: #337ecc;     /* 主色深色调 */
    --el-primary-lighter: #b3d4ff;  /* 主色更浅色调 */
    --el-primary-darker: #266ab9;   /* 主色更深色调 */
    --secondary: #67C23A;           /* Element UI 成功色（辅助色） */
    --accent: #E6A23C;             /* Element UI 警告色（点缀色） */
    --light: #F9F7F7;
    --light-gray: #F0F0F0;
    --medium-gray: #D8D8D8;
    --dark: #3A3A3A;
    --text: #555555;
    --text-light: #888888;
    --white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
    /* 渐变样式（基于Element UI配色） */
    --gradient-primary: linear-gradient(135deg, #409EFF 0%, #337ecc 100%);
    --gradient-secondary: linear-gradient(135deg, #67C23A 0%, #529b2e 100%);
    --gradient-accent: linear-gradient(135deg, #E6A23C 0%, #d48e21 100%);
    --gradient-subtle: linear-gradient(135deg, #F9F7F7 0%, #F0F0F0 100%);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 系统默认字体，无外部Google Fonts依赖，加载更快 */
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Microsoft Sans Serif", sans-serif;
    background: linear-gradient(135deg, #F9F7F7 0%, #F0F4F9 50%, #F7F9FC 100%);
    min-height: 100vh;
    color: var(--text);
    padding: 30px 20px;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(64, 158, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(103, 194, 58, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(230, 162, 60, 0.03) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 28px 36px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-standard);
}

.header:hover {
    box-shadow: var(--shadow-hover);
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-icon {
    width: 54px;
    height: 54px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(64, 158, 255, 0.2);
    transition: var(--transition-standard);
}

.logo:hover .logo-icon {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(64, 158, 255, 0.3);
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    background: linear-gradient(90deg, var(--el-primary-dark), var(--el-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
}

.date-display {
    text-align: right;
}

.current-date {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
    padding: 4px 8px;
}

.current-date::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--el-primary-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition-standard);
}

.date-display:hover .current-date::after {
    transform: scaleX(1);
}

.current-day {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.current-day i {
    color: var(--el-primary);
    transition: var(--transition-standard);
}

.date-display:hover .current-day i {
    transform: rotate(15deg);
}

/* 主要内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* 左侧打卡区域 */
.checkin-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.checkin-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 40%;
    height: 40%;
    background: rgba(64, 158, 255, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.checkin-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

.title-icon {
    width: 44px;
    height: 44px;
    background: rgba(64, 158, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--el-primary);
    font-size: 20px;
    transition: var(--transition-standard);
}

.section-title:hover .title-icon {
    background: rgba(64, 158, 255, 0.2);
    transform: scale(1.1);
}

.title-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    position: relative;
}

.title-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--el-primary-light);
    border-radius: 3px;
}

/* 打卡按钮 */
.checkin-button-container {
    position: relative;
    margin: 30px 0;
    z-index: 1;
}

.checkin-button {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 
        0 15px 35px rgba(64, 158, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.checkin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.checkin-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 20px 40px rgba(64, 158, 255, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.checkin-button:hover::before {
    opacity: 0.5;
}

.checkin-button.checked {
    background: var(--gradient-secondary);
    box-shadow: 
        0 15px 35px rgba(103, 194, 58, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.checkin-button.checked:hover {
    box-shadow: 
        0 20px 40px rgba(103, 194, 58, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.checkin-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.checkin-icon {
    font-size: 50px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkin-button:hover .checkin-icon {
    transform: scale(1.1);
}

.checkin-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 环绕动画 */
.circle-animation {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(64, 158, 255, 0.2);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-circle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid rgba(64, 158, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* 状态信息 */
.status-message {
    margin: 20px 0;
    padding: 16px 24px;
    background: rgba(64, 158, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    max-width: 320px;
    position: relative;
    z-index: 1;
    transition: var(--transition-standard);
    border-left: 3px solid transparent;
}

.status-message:hover {
    background: rgba(64, 158, 255, 0.08);
    border-left-color: var(--el-primary);
    transform: translateX(3px);
}

/* 统计数据 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--el-primary-light);
    transform: scaleX(0);
    transition: var(--transition-standard);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--el-primary);
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(64, 158, 255, 0.1);
    z-index: -1;
    transition: var(--transition-standard);
}

.stat-item:hover .stat-value::after {
    height: 12px;
    background: rgba(64, 158, 255, 0.2);
}

.stat-value.accent {
    color: var(--secondary);
}

.stat-value.accent::after {
    background: rgba(103, 194, 58, 0.1);
}

.stat-item:hover .stat-value.accent::after {
    background: rgba(103, 194, 58, 0.2);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* 右侧贡献图区域 */
.graph-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.graph-section::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: rgba(103, 194, 58, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.graph-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.graph-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
}

.year-btn:hover {
    background: var(--el-primary);
    color: var(--white);
    border-color: var(--el-primary);
    transform: translateY(-2px);
}

.year-btn:active {
    transform: translateY(0);
}

.current-year {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    min-width: 70px;
    text-align: center;
    position: relative;
}

.current-year::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--el-primary-light);
    border-radius: 2px;
}

/* 贡献图 - GitHub同款绿色系 */
.contribution-graph {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.months {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 50px);
    margin-left: 50px;
    margin-bottom: 15px;
}

.month {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition-standard);
    position: relative;
    padding: 2px 5px;
}

.month:hover {
    color: var(--el-primary);
    transform: scale(1.1);
}

.graph-body {
    display: flex;
    width: 100%;
}

.weekdays {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.weekday {
    height: 18px;
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
    padding-right: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: var(--transition-standard);
}

.weekday:hover {
    color: var(--el-primary);
    transform: translateX(3px);
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(53, 16px);
    gap: 4px;
}

.day-cell {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.day-cell:hover {
    transform: scale(1.5);
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.day-cell.today {
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 2px var(--accent); }
    50% { box-shadow: 0 0 0 4px rgba(230, 162, 60, 0.5); }
    100% { box-shadow: 0 0 0 2px var(--accent); }
}

/* GitHub 同款绿色贡献图颜色 */
.level-0 { background-color: #ebedf0; } /* 无贡献 */
.level-1 { background-color: #9be9a8; } /* 低贡献 */
.level-2 { background-color: #40c463; } /* 中低贡献 */
.level-3 { background-color: #30a14e; } /* 中高贡献 */
.level-4 { background-color: #216e39; } /* 高贡献 */
.level-5 { background-color: #165c26; } /* 最高贡献 */

/* 图例 */
.legend {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    gap: 20px;
    transition: var(--transition-standard);
}

.legend:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legend-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.legend-items {
    display: flex;
    align-items: center;
    gap: 3px;
}

.legend-item {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    transition: var(--transition-standard);
}

.legend-item:hover {
    transform: scale(1.3);
}

.legend-labels {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
}

/* 工具提示 */
.tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(58, 58, 58, 0.95);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
    min-width: 160px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
}

.tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(58, 58, 58, 0.95) transparent transparent transparent;
}

/* 底部卡片 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transition: var(--transition-standard);
}

.card-1::before { background: var(--gradient-primary); }
.card-2::before { background: var(--gradient-secondary); }
.card-3::before { background: var(--gradient-accent); }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
    transition: var(--transition-standard);
}

.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .card-icon::after {
    left: 100%;
}

.card-1 .card-icon { background: var(--gradient-primary); }
.card-2 .card-icon { background: var(--gradient-secondary); }
.card-3 .card-icon { background: var(--gradient-accent); }

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--el-primary);
    transition: var(--transition-standard);
}

.card-2 .card-title::after { background: var(--secondary); }
.card-3 .card-title::after { background: var(--accent); }

.feature-card:hover .card-title::after {
    width: 100%;
}

.card-content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition-standard);
}

.feature-card:hover .card-content {
    color: var(--dark);
}

/* 底部 */
.footer {
    text-align: center;
    padding: 28px;
    color: var(--text-light);
    font-size: 14px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-standard);
}

.footer:hover {
    box-shadow: var(--shadow-hover);
}

.footer p {
    margin-bottom: 8px;
    transition: var(--transition-standard);
}

.footer p:first-child {
    font-weight: 500;
    color: var(--dark);
}

.footer:hover p:first-child {
    color: var(--el-primary);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-pulse {
    animation: successPulse 0.5s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }
    
    .date-display {
        text-align: center;
    }
    
    .days-grid {
        grid-template-columns: repeat(26, 16px);
        gap: 3px;
    }
    
    .months {
        margin-left: 0;
        justify-content: space-around;
    }
    
    .graph-body {
        flex-direction: column;
        align-items: center;
    }
    
    .weekdays {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        justify-content: space-around;
    }
    
    .weekday {
        width: 16px;
        text-align: center;
        justify-content: center;
        padding-right: 0;
    }
    
    .checkin-section, .graph-section {
        padding: 24px;
    }
}