/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f5f6f8;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e63946;
    margin-right: 20px;
}

/* 城市选择器 */
.city-selector {
    position: relative;
    cursor: pointer;
    padding: 8px 15px;
    background: #f5f6f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 30px;
}

.city-selector:hover .city-dropdown {
    display: block;
}

.city-name {
    font-size: 14px;
    color: #333;
}

.city-arrow {
    font-size: 10px;
    color: #999;
}

.city-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 0;
    min-width: 750px;
    width: 750px;
    z-index: 200;
}

.city-picker {
    display: flex;
    border-bottom: 1px solid #eee;
}

.province-list, .city-list-container {
    padding: 15px;
}

.province-list {
    width: 560px;
    border-right: 1px solid #eee;
}

.city-list-container {
    flex: 1;
    min-width: 200px;
}

.city-picker h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.province-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 4;
    column-gap: 10px;
}

.city-list-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.province-list li {
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 3px;
    break-inside: avoid;
    white-space: nowrap;
}

.province-list li:hover, .province-list li.active {
    background: #e63946;
    color: #fff;
}

.city-list-container li {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 3px;
}

.city-list-container li:hover {
    background: #fff0f0;
}

.city-list-container a {
    color: #666;
    text-decoration: none;
}

.city-list-container li:hover a {
    color: #e63946;
}

.hot-cities {
    padding: 15px;
}

.hot-cities h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.hot-cities a {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    font-size: 13px;
    color: #666;
    background: #f5f6f8;
    border-radius: 15px;
    text-decoration: none;
}

.hot-cities a:hover {
    background: #fff0f0;
    color: #e63946;
}

.nav {
    flex: 1;
    display: flex;
    gap: 40px;
}

.nav a {
    color: #333;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.nav a:hover, .nav a.active {
    color: #e63946;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e63946;
}

.user-area {
    display: flex;
    gap: 20px;
}

.user-area a {
    color: #666;
    font-size: 14px;
}

.user-area a:first-child {
    color: #e63946;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    padding: 60px 0;
    text-align: center;
}

.search-section h1 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    padding: 15px 40px;
    font-size: 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-box button:hover {
    background: #555;
}

.hot-tags {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.hot-tags a {
    color: #fff;
    margin-left: 10px;
}

.hot-tags a:hover {
    text-decoration: underline;
}

/* 分类导航 */
.categories {
    background: #fff;
    padding: 40px 0;
    margin-top: -20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-item:hover {
    background: #fff0f0;
    transform: translateY(-5px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-item span {
    font-size: 14px;
    color: #333;
}

/* 热门机构 */
.hot-companies {
    padding: 50px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-left: 10px;
    border-left: 4px solid #e63946;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.company-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.company-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.company-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.company-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.company-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.company-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.company-tags span {
    background: #fff0f0;
    color: #e63946;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.company-contact {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 底部 */
.footer {
    background: #333;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: #999;
    font-size: 14px;
}

.footer-section a {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #666;
    font-size: 14px;
}

/* 表单页面 */
.form-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.form-box {
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 400px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: #e63946;
}

.form-btn {
    width: 100%;
    padding: 12px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.form-btn:hover {
    background: #c1121f;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #e63946;
}

/* 详情页 */
.company-detail {
    padding: 30px 0;
}

.detail-header {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.detail-logo {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    flex-shrink: 0;
}

.detail-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.detail-info p {
    color: #666;
    margin-bottom: 20px;
}

.detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-tags span {
    background: #fff0f0;
    color: #e63946;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
}

.info-label {
    color: #999;
    flex-shrink: 0;
}

.info-value {
    color: #333;
}

/* 响应式 */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    .nav {
        order: 3;
        gap: 20px;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .company-grid {
        grid-template-columns: 1fr;
    }
    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* 帮助内容区域 */
.help-content {
    padding: 60px 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.help-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.help-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.help-section li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ列表 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.faq-item h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.faq-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
}
