/* 前台样式 */

/* 前台导航 */
.frontend-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.frontend-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.frontend-navbar .navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.frontend-navbar .navbar-brand i {
    font-size: 28px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar-menu a:not(.btn-admin):hover,
.navbar-menu a.active {
    color: var(--primary-color);
}

.navbar-menu a:not(.btn-admin).active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.btn-admin {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-admin:hover {
    background: var(--primary-dark);
}

/* 轮播横幅 */
.hero-banner {
    background: linear-gradient(135deg, #0052d9 0%, #266fe8 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* 公共容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 区块 */
.services-section,
.process-section,
.notice-section {
    padding: 60px 20px;
}

.services-section {
    background: #f8f9fa;
}

.process-section {
    background: #ffffff;
}

.notice-section {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

.section-header .more-link {
    float: right;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.section-header .more-link:hover {
    color: var(--primary-dark);
}

/* 业务类型卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #0052d9;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0052d9 0%, #266fe8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 36px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 20px;
    min-height: 48px;
    line-height: 1.6;
}

.service-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-info span {
    color: var(--text-muted);
    font-size: 14px;
}

.service-info span i {
    color: #0052d9;
    margin-right: 5px;
}

/* 办事流程 */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 0 0 200px;
    position: relative;
    transition: all 0.3s;
}

.process-step:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #0052d9;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #0052d9;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: #f0f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 15px;
    color: #0052d9;
    font-size: 32px;
}

.process-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.process-step p {
    color: var(--text-muted);
    font-size: 14px;
}

.process-arrow {
    color: var(--primary-color);
    font-size: 24px;
}

/* 通知公告 */
.notice-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: #0052d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.notice-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* 页脚 */
.frontend-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .process-arrow {
        display: none;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .notice-item {
        flex-direction: column;
        text-align: center;
    }
}
