/* static/kfcc.css - 疯狂星期四页面优化样式 */

/* 页面容器 */
.kfc-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.6s ease-out;
}

/* 页面标题区域 - 更醒目的设计 */
.kfc-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 0.1) 0%,
        rgba(211, 84, 0, 0.1) 100%);
    border-radius: 20px;
    border: 3px solid rgba(231, 76, 60, 0.2);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.kfc-header::before {
    content: '🍔🍗🍟';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
}

.kfc-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6, #e74c3c);
    background-size: 400% 100%;
    animation: gradientMove 8s linear infinite;
}

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

.kfc-title {
    color: #e74c3c;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.kfc-title i {
    font-size: 52px;
    color: #e74c3c;
    animation: bounce 2s ease-in-out infinite;
}

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

.kfc-subtitle {
    color: #7f8c8d;
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid rgba(231, 76, 60, 0.2);
}

/* 今日推荐区域 */
.kfc-today-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 3px;
}

.section-header i {
    font-size: 28px;
    margin-right: 15px;
    color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 今日推荐消息网格 */
.today-messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

/* 消息卡片 - 更美观的设计 */
.message-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-top: 5px solid #e74c3c;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}

.message-card:hover::before {
    opacity: 1;
}

.message-card.recommended {
    border-top: 5px solid #f39c12;
    background: linear-gradient(135deg,
        rgba(243, 156, 18, 0.05) 0%,
        rgba(231, 76, 60, 0.05) 100%);
    position: relative;
}

.message-card.recommended::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, transparent 50%, rgba(243, 156, 18, 0.1) 50%);
    border-radius: 0 20px 0 0;
}

.message-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message-badge::before {
    content: '🔥';
    font-size: 14px;
}

.message-text {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 25px 0;
    padding-right: 30px;
    position: relative;
    z-index: 1;
}

.message-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: rgba(231, 76, 60, 0.1);
    font-family: serif;
    z-index: -1;
}

.message-placeholder {
    color: #95a5a6;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    background: linear-gradient(135deg,
        rgba(52, 152, 219, 0.05) 0%,
        rgba(155, 89, 182, 0.05) 100%);
    border-radius: 15px;
    border: 2px dashed rgba(52, 152, 219, 0.3);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 20px;
}

.message-id {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: #2980b9;
    border: 2px solid #bbdefb;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-id::before {
    content: '#';
    opacity: 0.7;
}

.message-type {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: #d35400;
    border: 2px solid #fdcb6e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-type::before {
    content: '🍔';
    font-size: 12px;
}

/* 生成区域 */
.kfc-generate-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg,
        rgba(52, 152, 219, 0.05) 0%,
        rgba(41, 128, 185, 0.05) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(52, 152, 219, 0.1);
}

.generate-area {
    text-align: center;
}

.generate-btn {
    background: linear-gradient(135deg,
        #e74c3c 0%,
        #d35400 50%,
        #e74c3c 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    min-width: 280px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg,
        #d35400 0%,
        #e74c3c 50%,
        #d35400 100%);
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.generate-btn:disabled::before {
    display: none;
}

.result-area {
    margin-bottom: 30px;
    min-height: 180px;
    animation: fadeIn 0.5s ease-out;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.action-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.copy-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: 2px solid #2c3e50;
}

.copy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
    border-color: #34495e;
}

.share-btn {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
    border: 2px solid #27ae60;
}

.share-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #219653, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.2);
    border-color: #219653;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 统计区域 - 更美观的设计 */
.kfc-stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,
        #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6);
    background-size: 400% 100%;
    animation: gradientMove 8s linear infinite;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #e74c3c;
}

.stats-card i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
    display: block;
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 0.1) 0%,
        rgba(243, 156, 18, 0.1) 100%);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.stats-card i::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.stats-number {
    font-size: 42px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Arial', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-label {
    color: #666;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7f8c8d;
    background: rgba(231, 76, 60, 0.05);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(231, 76, 60, 0.1);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .kfc-page {
        padding: 15px;
    }

    .kfc-title {
        font-size: 36px;
    }

    .kfc-title i {
        font-size: 40px;
    }

    .today-messages-grid {
        grid-template-columns: 1fr;
    }

    .generate-btn {
        width: 100%;
        padding: 18px 20px;
        font-size: 18px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .kfc-stats-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .kfc-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .kfc-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .message-card {
        padding: 25px 20px;
    }

    .message-text {
        font-size: 14px;
    }

    .stats-card {
        padding: 30px 20px;
    }

    .stats-number {
        font-size: 36px;
    }
}