* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

:root {
    --primary: #c7252d;
    --secondary: #d8a732;
    --dark: #2c3e50;
    --light: #f5f7fa;
    --gray: #7f8c8d;
    --border: #e0e6ed;
    --success: #28a745;
    --info: #17a2b8;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
.top-bar {
    background-color: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
}

.top-links a {
    color: #ddd;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.top-links a:hover {
    color: var(--secondary);
}

/* 主头部 */
.main-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 26px;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-text .subtitle {
    font-size: 14px;
    color: var(--gray);
}

.header-right {
    display: flex;
    align-items: center;
}

.hotline {
    display: flex;
    align-items: center;
    margin-right: 30px;
    color: var(--dark);
}

.hotline i {
    font-size: 24px;
    color: var(--primary);
    margin-right: 10px;
}

.hotline-text {
    font-size: 14px;
}

.hotline-number {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

/* 主导航 */
.main-nav {
    background: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    transition: background 0.3s;
}

.nav-links li a:hover, 
.nav-links li a.active {
    background: rgba(0,0,0,0.1);
}

.nav-links li a i {
    margin-right: 8px;
}

.user-actions {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.user-actions a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(to right, var(--primary), #e74c3c);
    padding: 30px 0;
    text-align: center;
    color: white;
}

.search-container {
    max-width: 800px !important;
    margin: 0 auto;
}

.search-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.search-box {
    display: flex;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.search-select {
    width: 150px;
    background: white;
    border: none;
    padding: 0 15px;
    font-size: 16px;
    color: var(--dark);
    outline: none;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 20px;
    color: #333;
    font-size: 16px;
}

.search-button {
    width: 120px;
    background: var(--secondary);
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #c69500;
}

.quick-search {
    margin-top: 20px;
    font-size: 14px;
}

.quick-search a {
    color: rgba(255,255,255,0.9);
    margin: 0 8px;
    text-decoration: none;
}

.quick-search a:hover {
    color: white;
    text-decoration: underline;
}

/* 企业查询区域 */
.enterprise-query {
    background: white;
    padding: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.query-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.query-card {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.query-card:hover {
    transform: translateY(-5px);
}

.query-header {
    background: linear-gradient(to right, var(--info), #2d9cdb);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
}

.query-header.credit {
    background: linear-gradient(to right, var(--success), #6fcf97);
}

.query-header i {
    font-size: 28px;
    margin-right: 15px;
}

.query-header h3 {
    font-size: 20px;
    font-weight: bold;
}

.query-body {
    padding: 25px 20px;
    background: white;
}

.query-input-group {
    display: flex;
    margin-bottom: 15px;
}

.query-input {
    flex: 1;
    height: 48px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0 15px;
    font-size: 16px;
}

.query-button {
    width: 100px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.query-button:hover {
    background: #a51d24;
}

.query-tips {
    font-size: 14px;
    color: var(--gray);
    margin-top: 15px;
}

.query-tips a {
    color: var(--primary);
    text-decoration: none;
}

/* 内容区域 */
.main-content {
    padding: 30px 0;
}

.section-title {
    position: relative;
    font-size: 22px;
    color: var(--dark);
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--secondary);
}

.section-title a {
    float: right;
    font-size: 14px;
    font-weight: normal;
    color: var(--gray);
    text-decoration: none;
}

.section-title a:hover {
    color: var(--primary);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
    padding: 15px 20px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header i {
    color: var(--primary);
}

.card-body {
    padding: 0;
}

.list-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: block;
    text-decoration: none;
    color: var(--dark);
    transition: background 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: #f9f9f9;
}

.list-item .title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    font-weight: 500;
}

.list-item .meta {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
}

/* 服务区域 */
.services-section {
    background: var(--light);
    padding: 40px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(199, 37, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 30px;
}

.service-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* 页脚 */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .query-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        margin-top: 20px;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .user-actions {
        justify-content: center;
        padding: 10px 0;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}