/* 首页样式 - 艺术感设计 */

.title-content{
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Hero Section - 英雄区域 ===== */
.hero-section {
    position: relative; 
    background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #00D9A5 0%, #00B4D8 100%);
    top: -60px;
    right: -40px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFA500 100%);
    bottom: -30px;
    left: -30px;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #A855F7 0%, #6366F1 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -15px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 28px 20px 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.hero-badge i {
    font-size: 14px;
    color: #00D9A5;
}

.hero-badge span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title-group {
    margin-bottom: 20px;
    animation: slideUp 0.6s ease-out 0.1s both;
}

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

.hero-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-date i {
    font-size: 12px;
    color: #00D9A5;
}

.task-switcher {
    position: relative;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.task-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    /* background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px; */
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-switcher-btn:hover {
    /* background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25); */
}

.task-switcher-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.task-switcher-btn.active i {
    transform: rotate(180deg);
}

.task-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(15, 32, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 8px;
    display: none;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.task-selector-dropdown.show {
    display: block;
    animation: dropdownIn 0.3s ease-out;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.task-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.task-option i {
    font-size: 16px;
    color: #00D9A5;
    width: 20px;
    text-align: center;
}

/* ===== Stats Showcase - 统计展示 ===== */
.stats-showcase {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.stats-card-main {
    flex: 1.2;
    background: white;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: scaleIn 0.5s ease-out 0.3s both;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.stats-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.stats-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke: #00B4D8;
    animation: ringProgress 1.5s ease-out 0.5s both;
}

@keyframes ringProgress {
    from { stroke-dashoffset: 245; }
    to { stroke-dashoffset: 92; }
}

.stats-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-number {
    font-size: 18px;
    font-weight: 800;
    color: #0F2027;
    font-family: 'DM Mono', monospace;
}

.ring-label {
    font-size: 10px;
    color: #6B7280;
    font-weight: 500;
}

.stats-main-info {
    flex: 1;
}

.stats-main-number {
    font-size: 36px;
    font-weight: 900;
    color: #0F2027;
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'DM Mono', monospace;
}

.stats-unit {
    font-size: 20px;
    font-weight: 600;
    color: #9CA3AF;
}

.stats-main-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.stats-grid-mini {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-mini {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.stat-mini--progress {
    animation: slideRight 0.5s ease-out 0.4s both;
}

.stat-mini--review {
    animation: slideRight 0.5s ease-out 0.5s both;
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.stat-mini-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-mini--progress .stat-mini-bar {
    background: linear-gradient(90deg, #FFA500 0%, #FF6B6B 100%);
}

.stat-mini--review .stat-mini-bar {
    background: linear-gradient(90deg, #A855F7 0%, #6366F1 100%);
}

.stat-mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-mini--progress .stat-mini-icon {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
}

.stat-mini--review .stat-mini-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
}

.stat-mini-icon i {
    font-size: 18px;
}

.stat-mini--progress .stat-mini-icon i {
    color: #FFA500;
}

.stat-mini--review .stat-mini-icon i {
    color: #A855F7;
}

.stat-mini-content {
    flex: 1;
}

.stat-mini-value {
    font-size: 24px;
    font-weight: 800;
    color: #0F2027;
    line-height: 1;
    margin-bottom: 2px;
    font-family: 'DM Mono', monospace;
}

.stat-mini-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* ===== Section Header - 章节标题 ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00B4D8 0%, #00D9A5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon i {
    font-size: 16px;
    color: white;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0F2027;
    margin: 0;
}

.section-decoration {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #E5E7EB 0%, transparent 100%);
    margin-left: 16px;
    border-radius: 1px;
}

/* ===== Function Showcase - 功能展示 ===== */
.function-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: calc(var(--bottom-nav-height) + 16px);
}

.function-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.function-card:nth-child(1) { animation: cardIn 0.5s ease-out 0.1s both; }
.function-card:nth-child(2) { animation: cardIn 0.5s ease-out 0.15s both; }
.function-card:nth-child(3) { animation: cardIn 0.5s ease-out 0.2s both; }
.function-card:nth-child(4) { animation: cardIn 0.5s ease-out 0.25s both; }
.function-card:nth-child(5) { animation: cardIn 0.5s ease-out 0.3s both; }
.function-card:nth-child(6) { animation: cardIn 0.5s ease-out 0.35s both; }
.function-card:nth-child(7) { animation: cardIn 0.5s ease-out 0.4s both; }
.function-card:nth-child(8) { animation: cardIn 0.5s ease-out 0.45s both; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.function-card:hover .card-glow {
    opacity: 0.1;
}

.function-card--accent-1 .card-glow { background: #00B4D8; }
.function-card--accent-2 .card-glow { background: #00D9A5; }
.function-card--accent-3 .card-glow { background: #FFA500; }
.function-card--accent-4 .card-glow { background: #FF6B6B; }
.function-card--accent-5 .card-glow { background: #A855F7; }
.function-card--accent-6 .card-glow { background: #6366F1; }
.function-card--accent-7 .card-glow { background: #00B4D8; }
.function-card--accent-8 .card-glow { background: #00D9A5; }

.card-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle at 2px 2px, currentColor 1px, transparent 0);
    background-size: 16px 16px;
    pointer-events: none;
}

.function-card-inner {
    position: relative;
    z-index: 1;
}

.function-icon-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
}

.function-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.function-card--accent-1 .function-icon {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(0, 217, 165, 0.15) 100%);
}
.function-card--accent-2 .function-icon {
    background: linear-gradient(135deg, rgba(0, 217, 165, 0.15) 0%, rgba(0, 180, 216, 0.15) 100%);
}
.function-card--accent-3 .function-icon {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
}
.function-card--accent-4 .function-icon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
}
.function-card--accent-5 .function-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
}
.function-card--accent-6 .function-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
}
.function-card--accent-7 .function-icon {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(0, 217, 165, 0.15) 100%);
}
.function-card--accent-8 .function-icon {
    background: linear-gradient(135deg, rgba(0, 217, 165, 0.15) 0%, rgba(0, 180, 216, 0.15) 100%);
}

.function-icon i {
    font-size: 22px;
}

.function-card--accent-1 .function-icon i { color: #00B4D8; }
.function-card--accent-2 .function-icon i { color: #00D9A5; }
.function-card--accent-3 .function-icon i { color: #FFA500; }
.function-card--accent-4 .function-icon i { color: #FF6B6B; }
.function-card--accent-5 .function-icon i { color: #A855F7; }
.function-card--accent-6 .function-icon i { color: #6366F1; }
.function-card--accent-7 .function-icon i { color: #00B4D8; }
.function-card--accent-8 .function-icon i { color: #00D9A5; }

.icon-ring {
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px dashed;
    opacity: 0.2;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.function-card--accent-1 .icon-ring { border-color: #00B4D8; }
.function-card--accent-2 .icon-ring { border-color: #00D9A5; }
.function-card--accent-3 .icon-ring { border-color: #FFA500; }
.function-card--accent-4 .icon-ring { border-color: #FF6B6B; }
.function-card--accent-5 .icon-ring { border-color: #A855F7; }
.function-card--accent-6 .icon-ring { border-color: #6366F1; }
.function-card--accent-7 .icon-ring { border-color: #00B4D8; }
.function-card--accent-8 .icon-ring { border-color: #00D9A5; }

.function-info {
    margin-bottom: 12px;
}

.function-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0F2027;
    margin: 0 0 4px 0;
}

.function-info p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.function-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #F3F4F6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.function-arrow i {
    font-size: 12px;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.function-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.function-card:hover .function-arrow {
    background: #0F2027;
}

.function-card:hover .function-arrow i {
    color: white;
    transform: translateX(2px);
}

.function-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* ===== Responsive Design ===== */
@media (max-width: 400px) {
 
    
    .hero-title {
        font-size: 24px;
    }
    
    .stats-showcase {
        flex-direction: column;
    }
    
    .stats-card-main {
        flex: none;
    }
    
    .stats-grid-mini {
        flex-direction: row;
    }
    
    .stat-mini {
        flex: 1;
    }
    
    .function-showcase {
        gap: 12px;
    }
    
    .function-card {
        padding: 16px;
    }
    
    .function-icon-wrapper {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }
    
    .function-icon {
        width: 44px;
        height: 44px;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    .stats-card-main,
    .stat-mini,
    .function-card {
        background: #1F2937;
    }
    
    .ring-bg {
        stroke: #374151;
    }
    
    .ring-number,
    .stats-main-number,
    .stat-mini-value,
    .section-header h2,
    .function-info h3 {
        color: #F9FAFB;
    }
    
    .function-arrow {
        background: #374151;
    }
    
    .function-arrow i {
        color: #9CA3AF;
    }
    
    .function-card:hover .function-arrow {
        background: #00B4D8;
    }
}
