/* 万肆通电气黄页 - 公共样式 */
* { margin:0; padding:0; box-sizing:border-box; }

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #fef5f5; color: #2d1a1a; padding: 20px; line-height: 1.5; }

.container { max-width: 1400px; margin: 0 auto; }

/* 头部样式 */
.header { background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%); color: white; padding: 1.2rem 2rem; border-radius: 20px; margin-bottom: 1.8rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.logo-area { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }

.logo-area img { height: 50px; width: auto; }

.logo-text h1 { font-size: 1.5rem; }
.logo-text h1 span { font-weight: 300; font-size: 0.9rem; opacity: 0.9; }
.logo-text p { font-size: 0.7rem; opacity: 0.85; margin-top: 4px; }

.header-buttons { display: flex; gap: 12px; }

.join-btn, .auth-btn, .recommend-btn { background: #ffffff20; backdrop-filter: blur(4px); border: 1px solid #ffffff40; padding: 8px 20px; border-radius: 40px; color: white; text-decoration: none; font-weight: 500; transition: 0.2s; font-size: 0.9rem; }

.join-btn:hover, .auth-btn:hover, .recommend-btn:hover { background: white; color: #dc2626; border-color: white; }

/* 搜索卡片 */
.search-card { background: white; border-radius: 20px; padding: 1.2rem; margin-bottom: 1.8rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #fee2e2; }

.search-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }

.input-group { flex: 1; min-width: 140px; }

.input-group label { display: block; font-size: 0.7rem; font-weight: 600; color: #b91c1c; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }

.input-group input, .input-group select { width: 100%; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 12px; font-size: 0.9rem; background: #fff; outline: none; transition: 0.2s; }

.input-group input:focus, .input-group select:focus { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }

.search-actions { display: flex; gap: 8px; }

.search-actions button { padding: 12px 24px; border-radius: 12px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: 0.2s; border: none; }

.btn-search { background: #dc2626; color: white; }
.btn-search:hover { background: #b91c1c; }
.btn-reset { background: #e5e7eb; color: #4b5563; }

/* 统计信息 */
.stats { margin: 1rem 0 1.2rem; font-size: 0.85rem; color: #7f1d1d; font-weight: 500; }

/* 企业网格 */
.enterprise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: all 0.2s; border: 1px solid #fee2e2; }

.card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -12px rgba(220,38,38,0.2); border-color: #fecaca; }

.card-header { padding: 1rem 1.2rem 0.6rem; border-bottom: 1px solid #fef2f2; }

.company-name { font-size: 1.2rem; font-weight: 700; color: #991b1b; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.badge { background: #fef2f2; font-size: 0.65rem; font-weight: 600; padding: 3px 10px; border-radius: 30px; color: #b91c1c; }

.top-badge { background: #fef3c7; color: #b45309; font-size: 0.65rem; padding: 2px 8px; border-radius: 30px; }

.verified-badge { background: #d1fae5; color: #065f46; font-size: 0.65rem; padding: 2px 8px; border-radius: 30px; }

.card-body { padding: 0.8rem 1.2rem 1rem; }

.address-line { display: flex; gap: 8px; font-size: 0.85rem; color: #4a2a2a; margin-bottom: 12px; }
.address-icon { min-width: 24px; color: #b91c1c; }

.detail-link { margin-top: 8px; text-align: right; }
.detail-btn { background: #fef2f2; color: #b91c1c; padding: 6px 20px; border-radius: 40px; text-decoration: none; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.detail-btn:hover { background: #fee2e2; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 2rem 0 1rem; flex-wrap: wrap; }
.pagination a, .pagination span { background: white; padding: 6px 14px; border-radius: 30px; text-decoration: none; color: #b91c1c; border: 1px solid #fecaca; font-size: 0.85rem; }
.pagination a:hover { background: #dc2626; color: white; }
.pagination .current { background: #dc2626; color: white; border-color: #dc2626; }

/* 空状态 */
.no-data { text-align: center; padding: 2.5rem; background: white; border-radius: 20px; color: #7f1d1d; }

/* 页脚 */
footer { margin-top: 2.5rem; text-align: center; font-size: 0.7rem; color: #b91c1c; padding: 1rem; border-top: 1px solid #fee2e2; }

/* Toast提示 */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #b91c1c; color: white; padding: 10px 24px; border-radius: 40px; font-size: 0.85rem; opacity: 0; transition: 0.3s; pointer-events: none; z-index: 1000; white-space: nowrap; }

/* 表单卡片 */
.form-card { background: white; border-radius: 28px; padding: 2rem; max-width: 720px; margin: 0 auto; box-shadow: 0 8px 20px rgba(0,0,0,0.05); border: 1px solid #fee2e2; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; color: #7f1d1d; margin-bottom: 5px; font-size: 0.85rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #fecaca; border-radius: 12px; font-size: 0.9rem; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.form-group textarea { min-height: 70px; resize: vertical; }
.error { color: #dc2626; font-size: 0.75rem; margin-top: 4px; }
.success { background: #fef2f2; color: #b91c1c; padding: 10px 18px; border-radius: 30px; margin-bottom: 1.2rem; font-size: 0.85rem; border: 1px solid #fecaca; text-align: center; }
.success-green { background: #d1fae5; color: #065f46; }
.required { color: #dc2626; }
.btn-submit { background: #dc2626; color: white; border: none; padding: 12px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; width: 100%; transition: 0.2s; }
.btn-submit:hover { background: #b91c1c; }
.back-link { display: inline-block; margin-top: 1.2rem; color: #b91c1c; text-decoration: none; font-size: 0.85rem; text-align: center; width: 100%; }

/* 详情页样式 */
.company-brand { background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%); color: white; padding: 2rem 2rem 1.8rem; border-radius: 28px 28px 0 0; text-align: center; }
.company-brand h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 0.5rem; word-break: break-word; }
.company-brand .brand-tag { display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); padding: 4px 16px; border-radius: 40px; font-size: 0.75rem; margin-top: 8px; }
.company-brand .top-badge { background: #fef3c7; color: #b45309; padding: 2px 12px; border-radius: 30px; font-size: 0.7rem; font-weight: 600; margin-left: 8px; }
.company-brand .verified-badge { background: #d1fae5; color: #065f46; padding: 2px 12px; border-radius: 30px; font-size: 0.7rem; font-weight: 600; margin-left: 8px; }
.info-card { background: white; padding: 2rem 2rem 1.5rem; border-radius: 0 0 28px 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); border: 1px solid #fee2e2; border-top: none; }
.info-grid { margin: 0.5rem 0 1.5rem; }
.info-row { display: flex; border-bottom: 1px solid #fef2f2; padding: 1rem 0; flex-wrap: wrap; }
.info-label { width: 100px; font-weight: 700; color: #991b1b; font-size: 0.9rem; }
.info-value { flex: 1; color: #2d1a1a; font-size: 0.95rem; word-break: break-word; line-height: 1.5; }
.website-link { color: #dc2626; text-decoration: none; border-bottom: 1px solid #fecaca; }
.action-footer { margin-top: 1rem; padding-top: 1.5rem; border-top: 2px solid #fee2e2; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-copy, .btn-home, .btn-join, .btn-auth { padding: 12px 28px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; text-align: center; }
.btn-copy { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.btn-copy:hover { background: #fee2e2; transform: translateY(-2px); }
.btn-home { background: #dc2626; color: white; border: none; }
.btn-home:hover { background: #b91c1c; transform: translateY(-2px); }
.btn-join { background: transparent; border: 1px solid #dc2626; color: #dc2626; }
.btn-join:hover { background: #fef2f2; transform: translateY(-2px); }
.btn-auth { background: #10b981; color: white; border: none; }
.btn-auth:hover { background: #059669; transform: translateY(-2px); }

/* 价格卡片 - 进一步缩小版 */
.price-box { 
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%); 
    color: white; 
    text-align: center; 
    padding: 0.4rem 0.6rem; 
    border-radius: 12px; 
    margin: 0.3rem 0 0.6rem; 
}
.price-box .price { 
    font-size: 1rem; 
    font-weight: 800; 
}
.price-box .price .year { 
    font-size: 0.6rem; 
    opacity: 0.9; 
}
.price-box div:last-child { 
    font-size: 0.6rem; 
    margin-top: 2px;
}

/* 二维码区域 - 进一步缩小版 */
.qrcode-box { 
    text-align: center; 
    margin: 0.5rem 0; 
    padding: 0.4rem; 
    background: #fef2f2; 
    border-radius: 12px; 
}
.qrcode-box img { 
    max-width: 90px; 
    height: auto; 
    border-radius: 8px; 
}
.qrcode-box .payment-note { 
    color: #b91c1c; 
    font-size: 0.6rem; 
    margin-top: 4px; 
}

/* 提示信息 - 进一步缩小版 */
.info-note { 
    background: #fef2f2; 
    padding: 5px 8px; 
    border-radius: 8px; 
    margin-bottom: 0.6rem; 
    font-size: 0.6rem; 
    color: #7f1d1d; 
}

/* 管理后台表格 */
.admin-table { width: 100%; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #fee2e2; vertical-align: top; }
.admin-table th { background: #fff7f7; color: #991b1b; font-weight: 600; }
.btn-approve { background: #10b981; color: white; padding: 6px 16px; border-radius: 40px; text-decoration: none; font-size: 0.85rem; margin-right: 8px; display: inline-block; }
.btn-reject { background: #ef4444; color: white; padding: 6px 16px; border-radius: 40px; text-decoration: none; font-size: 0.85rem; }
.btn-approve:hover { background: #059669; }
.btn-reject:hover { background: #dc2626; }
.tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid #fee2e2; }
.tab-btn { padding: 12px 30px; background: white; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; color: #7f1d1d; border-radius: 12px 12px 0 0; transition: all 0.2s; }
.tab-btn.active { background: #dc2626; color: white; }
.tab-btn:not(.active):hover { background: #fee2e2; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 响应式 */
@media (max-width: 768px) {
    body { padding: 12px; }
    .header { padding: 1rem; flex-direction: column; text-align: center; }
    .logo-area { justify-content: center; }
    .search-form { flex-direction: column; gap: 10px; }
    .input-group { width: 100%; }
    .search-actions { width: 100%; flex-direction: column; }
    .search-actions button { width: 100%; }
    .enterprise-grid { grid-template-columns: 1fr; }
    .header-buttons { width: 100%; justify-content: center; }
    .toast { white-space: nowrap; font-size: 0.75rem; padding: 8px 16px; }
    .company-brand h1 { font-size: 1.5rem; }
    .company-brand { padding: 1.5rem 1rem; }
    .info-card { padding: 1.2rem; }
    .info-label { width: 100%; margin-bottom: 5px; }
    .info-row { flex-direction: column; }
    .btn-copy, .btn-home, .btn-join, .btn-auth { padding: 10px 20px; font-size: 0.85rem; width: 100%; }
    .action-footer { flex-direction: column; gap: 10px; }
    .admin-table th, .admin-table td { display: block; width: 100%; }
    .admin-table th { display: none; }
    .admin-table td { border-bottom: 1px solid #fee2e2; padding: 10px; }
    .tabs { flex-direction: column; border-bottom: none; gap: 8px; }
    .tab-btn { border-radius: 30px; text-align: center; }
}