/* 
 * WPHY 黄页主题 - 主样式文件
 * 统一管理四个静态页面的CSS样式
 */

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #F9F7F3;
    color: #333333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0EBE0;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.more-link {
    color: #E6A600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.more-link:hover {
    text-decoration: underline;
}

/* ===== 颜色系统 ===== */
.text-primary { color: #E6A600; }
.text-secondary { color: #C78E00; }
.text-neutral-500 { color: #6B6B6B; }
.text-neutral-800 { color: #333333; }

.bg-primary { background-color: #E6A600; }
.bg-primary-light { background-color: rgba(230, 166, 0, 0.1); }
.bg-secondary { background-color: #C78E00; }
.bg-neutral-100 { background-color: #F9F7F3; }

.industry-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(230, 166, 0, 0.1);
    color: #E6A600;
}

.verified-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

/* ===== 头部导航 ===== */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #E6A600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.search-box {
    width: 100%;
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #E8E0CC;
    border-radius: 4px;
    font-size: 14px;
    background-color: #F9F7F3;
}

.search-input:focus {
    outline: none;
    border-color: #E6A600;
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B6B6B;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.login-link {
    color: #333333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #E6A600;
}

.cooperation-btn {
    background-color: #E6A600;
    color: white;
}

.cooperation-btn:hover {
    background-color: #C78E00;
}

.vip-btn {
    background-color: white;
    border: 1px solid #E6A600;
    color: #E6A600;
}

.vip-btn:hover {
    background-color: rgba(230, 166, 0, 0.05);
}

/* ===== 行业分类导航 ===== */
.industry-nav {
    background: white;
    border-bottom: 1px solid #F0EBE0;
    overflow-x: auto;
}

.industry-list {
    display: flex;
    padding: 12px 20px;
    gap: 4px;
    white-space: nowrap;
}

.industry-item {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.industry-item.active {
    background-color: #E6A600;
    color: white;
}

.industry-item:hover:not(.active) {
    background-color: #F9F7F3;
}

/* ===== 快速筛选区 ===== */
.filter-bar {
    background: white;
    padding: 16px 0;
    margin-bottom: 24px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.filter-label {
    color: #6B6B6B;
}

.filter-options {
    display: flex;
    gap: 8px;
}

.filter-option {
    padding: 4px 12px;
    border-radius: 4px;
    background-color: #F9F7F3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option:hover, .filter-option.active {
    background-color: #E6A600;
    color: white;
}

/* ===== 推荐企业 ===== */
.featured-section {
    margin: 32px 0;
}

.featured-enterprise {
    border: 1px solid #F0EBE0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.featured-header {
    background-color: #E6A600;
    color: white;
    padding: 12px 20px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-badge {
    background-color: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.featured-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.featured-logo {
    width: 100px;
    height: 100px;
    background-color: #F9F7F3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #E6A600;
    flex-shrink: 0;
}

.featured-info {
    flex: 1;
    min-width: 280px;
}

.featured-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-desc {
    color: #6B6B6B;
    margin-bottom: 16px;
    line-height: 1.7;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.featured-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.featured-actions {
    display: flex;
    gap: 12px;
}

.contact-btn {
    background-color: #E6A600;
    color: white;
}

.detail-btn {
    background-color: white;
    border: 1px solid #E8E0CC;
    color: #333333;
}

/* ===== 企业列表 ===== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.enterprise-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enterprise-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.enterprise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.enterprise-name {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enterprise-industry {
    margin-top: 4px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.enterprise-desc {
    color: #6B6B6B;
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.enterprise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6B6B6B;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.enterprise-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F0EBE0;
}

.contact-link {
    color: #E6A600;
    font-size: 14px;
    font-weight: 500;
}

.update-time {
    font-size: 12px;
    color: #6B6B6B;
}

/* ===== 行业分类板块 ===== */
.industry-sections {
    margin: 40px 0;
}

.industry-card {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.industry-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.industry-icon {
    font-size: 20px;
    color: #E6A600;
}

/* ===== 详情页特定样式 ===== */
.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: #6B6B6B;
}

.breadcrumbs a {
    color: #6B6B6B;
}

.breadcrumbs a:hover {
    color: #E6A600;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #E6A600;
}

/* 企业详情头部 */
.enterprise-header {
    background: white;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.enterprise-logo {
    width: 140px;
    height: 140px;
    background-color: #F9F7F3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #E6A600;
    flex-shrink: 0;
}

.enterprise-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.enterprise-info {
    flex: 1;
    min-width: 300px;
}

.enterprise-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.enterprise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.enterprise-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 13px;
    color: #6B6B6B;
    margin-bottom: 4px;
}

.meta-value {
    font-weight: 500;
}

.enterprise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-btn {
    background-color: #E6A600;
    color: white;
    padding: 10px 24px;
    font-size: 16px;
}

.favorite-btn {
    background-color: white;
    border: 1px solid #E8E0CC;
    color: #6B6B6B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-btn {
    background-color: white;
    border: 1px solid #E8E0CC;
    color: #6B6B6B;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 企业详情内容 */
.detail-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* 左侧详情区 */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.company-intro {
    line-height: 1.8;
    color: #333;
}

.intro-content {
    margin-bottom: 20px;
    text-align: justify;
}

.intro-params {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.param-item {
    display: flex;
    flex-direction: column;
}

/* 产品展示 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #F0EBE0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-img {
    height: 140px;
    background-color: #F9F7F3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6A600;
    font-size: 24px;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 13px;
    color: #6B6B6B;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #E6A600;
    font-weight: 600;
}

/* 联系方式 */
.contact-info {
    background-color: #F9F7F3;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.contact-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6A600;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

/* 右侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    border: 1px solid #E6A600;
}

.contact-card-header {
    background-color: #E6A600;
    color: white;
    padding: 16px;
    font-weight: 500;
}

.contact-card-body {
    padding: 20px;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.person-avatar {
    width: 50px;
    height: 50px;
    background-color: #F9F7F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6A600;
    font-size: 20px;
}

.person-info {
    flex: 1;
}

.person-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.person-title {
    font-size: 13px;
    color: #6B6B6B;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.method-icon {
    color: #E6A600;
}

.contact-card-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-btn {
    background-color: white;
    border: 1px solid #E6A600;
    color: #E6A600;
    width: 100%;
}

.call-btn {
    background-color: #E6A600;
    color: white;
    width: 100%;
}

/* 相关企业 */
.related-enterprise {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    background-color: #F9F7F3;
    transition: all 0.2s ease;
}

.related-item:hover {
    background-color: rgba(230, 166, 0, 0.05);
}

.related-logo {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6A600;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
}

.related-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-industry {
    font-size: 12px;
    color: #6B6B6B;
}

/* ===== 表单样式 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6B6B6B;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E0CC;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #E6A600;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E0CC;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #E6A600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 提交页面样式 ===== */
.submit-container {
    padding: 30px 0 60px;
}

.form-header {
    background-color: rgba(230, 166, 0, 0.1);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-left: 4px solid #E6A600;
}

.form-header h3 {
    color: #E6A600;
    margin-bottom: 8px;
    font-size: 18px;
}

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: #F0EBE0;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 33.333%;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #F0EBE0;
    color: #6B6B6B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-item.active .step-number {
    background-color: #E6A600;
    color: white;
}

.step-item.completed .step-number {
    background-color: #2ECC71;
    color: white;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    grid-column: 1 / -1;
}

.btn-back {
    background-color: white;
    border: 1px solid #E8E0CC;
    color: #333333;
}

.btn-back:hover {
    background-color: #F9F7F3;
}

.btn-submit {
    background-color: #E6A600;
    color: white;
}

.btn-submit:hover {
    background-color: #C78E00;
}

.submission-guide {
    background-color: #F9F7F3;
    border-radius: 6px;
    padding: 20px;
    margin-top: 40px;
}

.guide-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-list {
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-list li {
    color: #6B6B6B;
}

/* ===== 底部 ===== */
.footer {
    background-color: #333333;
    color: #BDBDBD;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #E6A600;
    font-weight: 600;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: #E6A600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #757575;
}

/* ===== 响应式设计 ===== */
@media (min-width: 768px) {
    .logo {
        margin-bottom: 0;
    }
    
    .search-box {
        width: 45%;
        margin: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        flex-direction: column;
    }
    
    .featured-logo {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    
    .enterprise-logo {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        padding: 12px 15px;
    }
    
    .industry-list {
        padding: 8px 15px;
    }
    
    .card {
        padding: 15px;
    }
}