/* 嘉定少先队AI平台 - 红色系主题样式 */

:root {
    --primary-red: #dc3545;
    --danger-red: #b02a37;
    --light-red: #f8d7da;
    --accent-red: #c82333;
    --bg-gradient: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

/* 英雄区域 */
.hero-section {
    padding: 100px 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-icon {
    animation: float 3s ease-in-out infinite;
}

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

.hero-image {
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* 按钮样式 */
.btn-danger {
    background: var(--bg-gradient);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, #a02622 100%);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* 功能卡片样式 */
.feature-card {
    transition: all 0.3s ease;
    border-width: 2px !important;
    border-radius: 15px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    border-color: var(--accent-red) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* 平台卡片样式 */
.platform-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.platform-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1);
    transform: translateY(-3px);
}

/* 用户角色卡片样式 */
.user-role-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.user-role-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.15);
    transform: translateY(-5px);
}

.role-icon {
    transition: transform 0.3s ease;
}

.user-role-card:hover .role-icon {
    transform: scale(1.1);
}

/* 统计数据样式 */
.stat-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-family: 'Georgia', serif;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 页脚样式 */
footer {
    margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-image {
        margin-top: 30px;
    }

    .feature-card,
    .platform-card,
    .user-role-card {
        margin-bottom: 20px;
    }

    .stat-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .display-5 {
        font-size: 1.6rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* 焦点状态 */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    border-color: var(--primary-red);
}

/* 卡片阴影效果 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

/* 文字样式 */
.text-gradient-danger {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 图标动画 */
.icon-spin {
    animation: spin 2s linear infinite;
}

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

/* 徽章样式 */
.badge-danger {
    background: var(--bg-gradient);
}

/* 进度条样式 */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: var(--light-red);
}

.progress-bar-danger {
    background: var(--bg-gradient);
}

/* 分隔线样式 */
.divider-danger {
    height: 3px;
    background: var(--bg-gradient);
    width: 60px;
    margin: 0 auto 20px;
    border-radius: 2px;
}