/**
 * 幸运兔·设计助手 - 全局样式
 * 克莱因蓝主色调: #002FA7
 */

:root {
    --klein-blue: #002FA7;
    --klein-blue-light: #1a4fd0;
    --klein-blue-dark: #001d6c;
    --bg-light: #f5f7fa;
    --text-primary: #1a1a2e;
    --text-secondary: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 47, 167, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 47, 167, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ========== 头部区域 ========== */
.header {
    background: linear-gradient(135deg, var(--klein-blue) 0%, var(--klein-blue-light) 100%);
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.main-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.sub-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 2px;
}

/* ========== 主体内容区 ========== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ========== 功能板块 ========== */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--klein-blue);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--klein-blue), var(--klein-blue-light));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========== 功能卡片网格 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--klein-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.disabled {
    opacity: 0.7;
    cursor: default;
}

.feature-card.disabled:hover {
    transform: none;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.feature-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-dev {
    background: #fff3e0;
    color: #ef6c00;
}

.status-plan {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer a {
    color: var(--klein-blue);
    text-decoration: none;
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--klein-blue);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(0, 47, 167, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== 响应式布局 ========== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .header {
        padding: 50px 20px;
    }
    
    .main-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .sub-title {
        font-size: 16px;
    }
    
    .logo {
        font-size: 40px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .feature-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
