<template>
    <div class="home">
        <section class="home-hero">
            <div class="home-hero-main">
                <p class="home-tag">计划管理平台 · 占位首页</p>
                <h1 class="home-title">
                    欢迎进入<br />
                    运检站计划管理平台
                </h1>
                <p class="home-subtitle">
                    这里将展示整体经营概况、计划执行情况等关键信息。当前为静态占位页，后续可根据产品设计替换为正式首页。
                </p>
            </div>
            <div class="home-hero-panel">
                <div class="panel-header">今日概览</div>
                <div class="panel-body">
                    <div class="panel-item">
                        <span class="panel-label">计划任务</span>
                        <span class="panel-value">—</span>
                    </div>
                    <div class="panel-item">
                        <span class="panel-label">已完成</span>
                        <span class="panel-value">—</span>
                    </div>
                    <div class="panel-item">
                        <span class="panel-label">预警事项</span>
                        <span class="panel-value">—</span>
                    </div>
                </div>
                <div class="panel-footer">数据接入后将在此区域展示核心指标。</div>
            </div>
        </section>

        <section class="home-grid">
            <el-card shadow="hover" class="home-card">
                <h3>基础管理</h3>
                <p>用于维护人员、岗位、站点等基础资料，为后续计划和统计提供统一数据源。</p>
            </el-card>
            <el-card shadow="hover" class="home-card">
                <h3>计划管理</h3>
                <p>支撑月度、日常计划的编制与执行过程管理，后续可在此接入进度看板等内容。</p>
            </el-card>
            <el-card shadow="hover" class="home-card">
                <h3>作业与月报</h3>
                <p>用于记录实际作业与月报数据，实现计划与执行结果的对比分析。</p>
            </el-card>
        </section>

        <section class="home-footer-note">
            <p>当前首页仅展示静态占位信息，后续根据实际需求替换为正式大屏或经营驾驶舱。</p>
        </section>
    </div>
</template>

<script setup name="Index"></script>

<style scoped>
.home {
    min-height: 100%;
    padding: 32px 40px 48px;
    background: radial-gradient(circle at top left, #e6f4ff 0, #ffffff 50%, #f5f7fb 100%);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1.4fr);
    gap: 32px;
    align-items: stretch;
}

.home-hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
}

.home-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1677ff;
    background: rgba(22, 119, 255, 0.08);
    margin-bottom: 16px;
}

.home-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}

.home-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.home-hero-panel {
    border-radius: 20px;
    background: linear-gradient(145deg, #1677ff 0%, #4096ff 45%, #bae0ff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px 8px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
}

.panel-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 20px 8px;
    gap: 8px;
}

.panel-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.panel-label {
    font-size: 13px;
    opacity: 0.85;
}

.panel-value {
    font-size: 20px;
    font-weight: 600;
}

.panel-footer {
    padding: 12px 20px 16px;
    font-size: 13px;
    opacity: 0.9;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.home-card {
    border-radius: 18px;
    overflow: hidden;
}

.home-card :deep(.el-card__body) {
    padding: 20px 22px 22px;
}

.home-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.home-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.home-footer-note {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .home {
        padding: 24px 24px 36px;
    }

    .home-hero {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (max-width: 768px) {
    .home {
        padding: 20px 16px 28px;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-panel {
        order: -1;
    }

    .home-title {
        font-size: 26px;
    }
}
</style>
