/* 主页专属样式 - 律所门户 */
body.index-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* 律所全屏背景 - 彰显专业与厚重 */
.index-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        url('./file/law-bg.jpg') center/cover no-repeat;
}

/* 深色半透明遮罩层 - 提升文字可读性 */
.index-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(20, 30, 60, 0.88) 0%,
        rgba(40, 55, 90, 0.82) 40%,
        rgba(15, 25, 50, 0.90) 100%
    );
}

/* 网格纹理叠加 - 增加设计层次感 */
.index-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px);
    pointer-events: none;
}

/* 主页容器 */
.index-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1000px;
    padding: 50px 30px 40px;
    text-align: center;
}

/* 律所名称 */
.index-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    background: none;
    -webkit-text-fill-color: #ffffff;
    background-clip: unset;
}

.index-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* 律所英文/副标题 */
.index-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* 卡片网格 - 系统入口 */
.index-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

/* 入口卡片 - 参考 workbench 样式但适配深色背景 */
.index-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    contain: layout style paint;
}

.index-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    transition: all 0.35s ease;
}

.index-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.index-card:hover::before {
    height: 5px;
    opacity: 1;
}

/* 卡片图标 */
.index-card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* 卡片标题 */
.index-card h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

/* 卡片描述 */
.index-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 卡片底部箭头 */
.index-card-arrow {
    margin-top: 18px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.index-card:hover .index-card-arrow {
    color: rgba(255,255,255,0.85);
    transform: translateX(4px);
}

/* 综合业务卡片配色 */
.index-card.card-business::before {
    background: linear-gradient(90deg, #4a90e2, #3a7bc8);
}

.index-card.card-business:hover {
    box-shadow:
        0 16px 48px rgba(74, 144, 226, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 144, 226, 0.4);
}

/* 综合业务(工作表)卡片配色 - 绿色数据风格 */
.index-card.card-business-data::before {
    background: linear-gradient(90deg, #00d49f, #00b886);
}

.index-card.card-business-data:hover {
    box-shadow:
        0 16px 48px rgba(0, 212, 159, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 159, 0.4);
}

/* 人事行政卡片配色 */
.index-card.card-hr::before {
    background: linear-gradient(90deg, #ff9999, #ff6b6b);
}

.index-card.card-hr:hover {
    box-shadow:
        0 16px 48px rgba(255, 153, 153, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 153, 153, 0.4);
}

/* 档案/案卷管理系统卡片配色 - 金色卷宗风格 */
.index-card.card-document::before {
    background: linear-gradient(90deg, #c9a96e, #b8943a);
}

.index-card.card-document:hover {
    box-shadow:
        0 16px 48px rgba(201, 169, 110, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(201, 169, 110, 0.4);
}

/* 页脚 */
.index-footer {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    padding: 16px 0;
    text-align: center;
}

.index-footer a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.index-footer a:hover {
    color: rgba(255,255,255,0.7);
}

/* 响应式 - 平板 */
@media (max-width: 768px) {
    .index-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .index-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 36px;
    }

    .index-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .index-card {
        padding: 28px 20px;
        min-height: 180px;
    }

    .index-card h2 {
        font-size: 1.2rem;
    }

    .index-card-icon {
        font-size: 2.4rem;
    }

    .index-container {
        padding: 40px 16px 30px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 480px) {
    .index-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .index-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 28px;
    }

    .index-card {
        padding: 24px 16px;
        min-height: 160px;
        border-radius: 14px;
    }

    .index-card h2 {
        font-size: 1.1rem;
    }

    .index-card p {
        font-size: 0.8rem;
    }

    .index-card-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .index-container {
        padding: 30px 12px 24px;
    }
}

/* 卡片入场动画 */
.index-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntry 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.index-card:nth-child(1) { animation-delay: 0.05s; }
.index-card:nth-child(2) { animation-delay: 0.15s; }
.index-card:nth-child(3) { animation-delay: 0.25s; }
.index-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes cardEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题入场 */
.index-title,
.index-subtitle {
    opacity: 0;
    transform: translateY(-20px);
    animation: titleEntry 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.index-subtitle {
    animation-delay: 0.08s;
}

@keyframes titleEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
