/* 武汉要债公司官网 - 商务严肃稳重风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f5f6fa;
    line-height: 1.7;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 顶部通知条 ===== */
.top-bar {
    background: #1a2a4a;
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: #f0c040; }

/* ===== 头部导航 ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-link { display: flex; align-items: center; cursor: pointer; }
.logo-link:hover { opacity: 0.85; }
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #1a2a4a, #2c4a7a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0c040;
    font-size: 20px;
    font-weight: bold;
}
.logo-text h1 {
    font-size: 20px;
    color: #1a2a4a;
    font-weight: 700;
    letter-spacing: 2px;
}
.logo-text p {
    font-size: 12px;
    color: #888;
    letter-spacing: 1px;
}

/* 汉堡按钮默认隐藏（桌面端） */
.nav-toggle { display: none; }

.nav { display: flex; gap: 4px; }
.nav a {
    padding: 10px 18px;
    font-size: 15px;
    color: #444;
    border-radius: 6px;
    transition: all .3s;
    font-weight: 500;
    position: relative;
}
.nav a:hover, .nav a.active {
    background: #1a2a4a;
    color: #fff;
}
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #f0c040;
    border-radius: 2px;
}

/* ===== 通用容器 ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Banner / 轮播 ===== */
.banner {
    background: linear-gradient(135deg, #1a2a4a 0%, #2c4a7a 50%, #1a2a4a 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240,192,64,0.08) 0%, transparent 60%);
}
.banner h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 4px;
}
.banner p {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    margin-bottom: 35px;
    position: relative;
}
.banner .btn {
    display: inline-block;
    padding: 14px 40px;
    background: #f0c040;
    color: #1a2a4a;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    transition: all .3s;
    position: relative;
    letter-spacing: 2px;
}
.banner .btn:hover { background: #e0b030; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,192,64,.3); }

/* ===== 区块标题 ===== */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h3 {
    font-size: 32px;
    color: #1a2a4a;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.section-title .en {
    font-size: 13px;
    color: #aaa;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.section-title .divider {
    width: 60px;
    height: 3px;
    background: #f0c040;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== 服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .3s;
    border: 1px solid #eee;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(26,42,74,.12);
    border-color: #1a2a4a;
}
.service-icon {
    width: 70px; height: 70px;
    background: #f0f4fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #1a2a4a;
    transition: all .3s;
}
.service-card:hover .service-icon {
    background: #1a2a4a;
    color: #f0c040;
}
.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.service-card h4 {
    font-size: 18px;
    color: #1a2a4a;
    margin-bottom: 12px;
    font-weight: 600;
}
.service-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
}

/* ===== 关于我们 ===== */
.about-section { background: #fff; }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h3 {
    font-size: 28px;
    color: #1a2a4a;
    margin-bottom: 20px;
    font-weight: 700;
}
.about-text p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.9;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}
.about-feature .icon { color: #f0c040; font-size: 18px; }

.about-img {
    border-radius: 12px;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
}

/* ===== 新闻列表 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .3s;
    border: 1px solid #eee;
    cursor: pointer;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.news-thumb {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0c040;
    font-size: 40px;
}
.news-info { padding: 20px; }
.news-info h4 {
    font-size: 16px;
    color: #1a2a4a;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-info p {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
.news-info .date {
    font-size: 12px;
    color: #bbb;
}

/* ===== 联系我们 ===== */
.contact-section { background: #fff; }
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h4 {
    font-size: 20px;
    color: #1a2a4a;
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-item .icon {
    width: 44px; height: 44px;
    background: #f0f4fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2a4a;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-item .text p { font-size: 14px; color: #666; }

/* 表单 */
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .3s;
    background: #fafbfc;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1a2a4a;
    outline: none;
    background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-submit {
    padding: 13px 40px;
    background: #1a2a4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all .3s;
    font-weight: 600;
    letter-spacing: 2px;
}
.contact-form .btn-submit:hover { background: #2c4a7a; }

/* ===== 页脚 ===== */
.footer {
    background: #1a2a4a;
    color: rgba(255,255,255,.7);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}
.footer p, .footer li { font-size: 14px; line-height: 2; }
.footer a { color: rgba(255,255,255,.6); transition: color .3s; }
.footer a:hover { color: #f0c040; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

/* ===== 新闻详情页 ===== */
.news-detail { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.news-detail h1 { font-size: 26px; color: #1a2a4a; margin-bottom: 15px; line-height: 1.5; }
.news-detail .meta { font-size: 13px; color: #999; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.news-detail .content { font-size: 15px; color: #555; line-height: 2; }
.news-detail .content p { margin-bottom: 15px; }

/* ===== 后台登录 ===== */
.login-page {
    background: linear-gradient(135deg, #1a2a4a 0%, #2c4a7a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 50px 40px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.login-box h2 {
    text-align: center;
    color: #1a2a4a;
    margin-bottom: 30px;
    font-size: 24px;
    letter-spacing: 3px;
}
.login-box .form-group { margin-bottom: 20px; }
.login-box label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; font-weight: 500; }
.login-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.login-box input:focus { border-color: #1a2a4a; outline: none; }
.login-box .btn-login {
    width: 100%;
    padding: 13px;
    background: #1a2a4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 3px;
    margin-top: 10px;
}
.login-box .btn-login:hover { background: #2c4a7a; }
.login-box .error { color: #e74c3c; font-size: 13px; margin-top: 10px; text-align: center; }

/* ===== 后台管理 ===== */
.admin-body { background: #f0f2f5; }
.admin-sidebar {
    width: 240px;
    background: #1a2a4a;
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0;
    color: #fff;
    z-index: 100;
}
.admin-sidebar .logo-area {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}
.admin-sidebar nav { padding: 20px 0; }
.admin-sidebar nav a {
    display: block;
    padding: 14px 25px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    transition: all .3s;
    border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: #f0c040;
}
.admin-main {
    margin-left: 240px;
    padding: 30px;
}
.admin-header {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.admin-header h2 { font-size: 20px; color: #1a2a4a; }
.admin-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: #f8f9fc;
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.admin-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
}
.admin-table tr:hover { background: #fafbfc; }
.btn-sm {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}
.btn-edit { background: #1a2a4a; color: #fff; }
.btn-delete { background: #e74c3c; color: #fff; }
.btn-view { background: #27ae60; color: #fff; }
.btn-add {
    padding: 10px 22px;
    background: #1a2a4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}
.btn-add:hover { background: #2c4a7a; }

/* 表单页 */
.admin-form-page {
    background: #fff;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.admin-form-page .form-group { margin-bottom: 22px; }
.admin-form-page label { display: block; font-size: 14px; color: #555; margin-bottom: 8px; font-weight: 500; }
.admin-form-page input,
.admin-form-page textarea,
.admin-form-page select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.admin-form-page input:focus,
.admin-form-page textarea:focus { border-color: #1a2a4a; outline: none; }
.admin-form-page textarea { min-height: 200px; resize: vertical; }
.btn-save {
    padding: 12px 35px;
    background: #1a2a4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}
.btn-save:hover { background: #2c4a7a; }
.btn-cancel {
    padding: 12px 35px;
    background: #aaa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
}

/* 消息状态 */
.status-unread { color: #e74c3c; font-weight: 600; }
.status-read { color: #27ae60; }

/* 分页 */
.pagination { text-align: center; padding: 20px; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}
.pagination a { background: #fff; color: #1a2a4a; border: 1px solid #ddd; }
.pagination a:hover { background: #1a2a4a; color: #fff; }
.pagination .current { background: #1a2a4a; color: #fff; }

/* 响应式 */
@media (max-width: 768px) {
    .services-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .about-content, .contact-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* 汉堡按钮 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 38px;
        height: 38px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 4px;
        border-radius: 6px;
        transition: background .2s;
    }
    .nav-toggle:hover { background: #f0f4fa; }
    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #1a2a4a;
        border-radius: 2px;
        transition: all .3s;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 移动端导航 */
    .nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 6px 20px rgba(0,0,0,.1);
        z-index: 998;
        overflow: hidden;
        max-height: 0;
        transition: max-height .3s ease;
    }
    .nav.open { max-height: 400px; }
    .nav a {
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
    }
    .nav a:last-child { border-bottom: none; }
    .nav a.active::after { display: none; }

    /* header容器改为relative以定位下拉菜单 */
    .header { position: sticky; }
    .header .container { position: relative; }
}
@media (max-width: 480px) {
    .services-grid, .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .banner h2 { font-size: 28px; }
}
