/* 现代化前台界面样式 */

:root {
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 导航栏 */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    padding: 16px 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.08);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.12);
}

/* Hero Section */
.hero-section {
    background: #ffffff;
    padding: 40px 0 20px;
    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 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%234f46e5" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* 搜索区域 */
.search-section {
    background: var(--bg-primary);
    padding: 20px 0 40px;
}

.search-form {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.search-form .form-control {
    height: 56px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 20px;
    transition: all 0.2s ease;
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-form .btn {
    height: 56px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.search-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* 使命与愿景区域 - 白色背景版本 */
.mission-section-white {
    background: var(--bg-primary);
    padding: 40px 0;
    position: relative;
}

.title-underline-dark {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    margin: 16px auto 0;
    border-radius: 2px;
}

.mission-card-white {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.mission-card-white:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.mission-icon-white {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.mission-card-white h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.mission-card-white p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

.mission-slogan-white {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.mission-slogan-white p {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
}

.mission-slogan-white span {
    color: var(--primary-color);
    font-weight: 700;
}

/* 核心服务区域 */
.core-services-section {
    background: var(--bg-primary);
    padding: 40px 0;
}

.core-service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.core-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.core-service-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.core-service-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.core-service-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 0;
}

/* 特色服务 */
.features-section {
    background: var(--bg-primary);
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}

.feature-icon.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.feature-icon.success {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.feature-icon.info {
    background: linear-gradient(135deg, var(--accent-color), #22d3ee);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* 结果页面 */
.result-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

.result-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.result-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card h4 i {
    color: var(--primary-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-muted);
    font-weight: 500;
}

.result-value {
    color: var(--text-primary);
    font-weight: 600;
}

.result-value.success {
    color: #10b981;
}

.result-value.warning {
    color: #f59e0b;
}

.result-value.danger {
    color: #ef4444;
}

/* 图片预览 */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.image-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.image-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* 页脚 - 参考腾讯云设计 */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.footer-feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-feature-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-main {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-contact {
    text-align: center;
}

.footer-qr {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.footer-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-contact p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-contact .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.footer-bottom {
    background: var(--bg-tertiary);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* 现代化深色底部版权区域 */
.footer-copyright-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright-modern .copyright-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-copyright-modern .copyright-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-copyright-modern .copyright-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.footer-copyright-modern .copyright-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-copyright-modern .copyright-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.footer-copyright-modern .copyright-links .icp-link,
.footer-copyright-modern .copyright-links .police-link {
    color: #ffd700;
    font-weight: 600;
}

.footer-copyright-modern .copyright-links .icp-link:hover,
.footer-copyright-modern .copyright-links .police-link:hover {
    color: #ffed4e;
    background: rgba(255, 215, 0, 0.2);
}

.footer-copyright-modern .copyright-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-copyright-modern .copyright-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-copyright-modern .copyright-divider {
        display: none;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 提示框 */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .search-form {
        padding: 24px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .footer-features {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
}

/* 工具类 */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }

.bg-primary { background: var(--primary-color); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }

.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }

.p-4 { padding: 24px; }
.p-5 { padding: 40px; }

/* ======================================
   前台响应式补充修复
   ====================================== */

/* 导航栏手机端改为Bootstrap折叠样式 */
@media (max-width: 768px) {
    .navbar-brand {
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Hero区域 */
    .hero-content h1 {
        font-size: 26px;
        letter-spacing: -0.5px;
        word-break: break-word;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-section {
        padding: 30px 0 20px;
    }

    /* 搜索表单 */
    .search-form {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .search-form .form-control {
        height: 48px;
        font-size: 15px;
    }

    .search-form .btn {
        height: 48px;
        font-size: 15px;
        padding: 0 20px;
    }

    /* 卡片栅格 */
    .mission-card-white,
    .core-service-card {
        margin-bottom: 12px;
    }

    /* 黑名单公示表格 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 查询结果区域 */
    .query-result-section {
        padding: 16px;
    }

    /* 图片大图预览遮罩 */
    .lightbox-overlay {
        padding: 16px;
    }

    .lightbox-overlay img {
        max-width: 100%;
        max-height: 80vh;
    }

    /* 文章列表 */
    .article-card {
        margin-bottom: 16px;
    }

    /* footer */
    .footer-contact {
        text-align: center;
    }

    /* 合作伙伴展示 */
    .partner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* 弹窗协议 */
    .protocol-modal .modal-dialog {
        margin: 8px !important;
        max-width: calc(100% - 16px) !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 22px;
    }

    .search-form {
        padding: 14px 12px;
    }

    .partner-grid {
        grid-template-columns: 1fr !important;
    }

    /* 分段内容区 */
    section.py-5 {
        padding: 24px 0 !important;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}
