/**
 * YiwuPage Company Apply Page — Phase 13.6.4
 * company-apply.css
 *
 * 상업 템플릿 스타일: Hero + 表单 + VIP对比 + 광고
 * 复用 commercial-directory.css 变量
 */

/* === Hero === */
.yp-apply-hero { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); padding: 32px 0; }
.yp-apply-hero-inner { display: flex; gap: 32px; align-items: center; }
.yp-apply-hero-left { flex: 1; }
.yp-apply-hero-left h1 { color: #fff; font-size: 1.75rem; font-weight: 800; margin: 0 0 12px; line-height: 1.3; }
.yp-apply-hero-desc { color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 1.6; margin: 0 0 16px; }
.yp-apply-hero-benefits { display: flex; flex-wrap: wrap; gap: 8px; }
.yp-benefit-tag { background: rgba(255,255,255,0.2); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }

.yp-apply-hero-right { flex: 0 0 300px; }
.yp-hero-ad-link { display: block; }
.yp-hero-ad-img { width: 100%; border-radius: 12px; }
.yp-hero-ad-box { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3); border-radius: 12px; padding: 24px; text-align: center; color: #fff; }
.yp-hero-ad-badge { background: #fbbf24; color: #78350f; display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 0.75rem; font-weight: 700; margin-bottom: 12px; }
.yp-hero-ad-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.yp-hero-ad-desc { font-size: 0.8rem; opacity: 0.9; line-height: 1.5; margin-bottom: 16px; }
.yp-hero-ad-cta { display: inline-block; background: #fbbf24; color: #78350f; padding: 8px 20px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: background 0.2s; }
.yp-hero-ad-cta:hover { background: #f59e0b; }

/* === Header Simple === */
.yp-header-simple { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
.yp-logo { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.yp-logo-text { font-size: 1.25rem; font-weight: 800; color: #0ea5e9; }
.yp-logo-sub { font-size: 0.75rem; color: #64748b; }

/* === Main Layout === */
.yp-apply-main { padding: 32px 0 48px; }
.yp-apply-layout { display: flex; gap: 24px; }
.yp-apply-form-col { flex: 1; min-width: 0; }
.yp-apply-sidebar { flex: 0 0 300px; }

/* === Form Sections === */
.yp-form-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.yp-form-section-title { font-size: 1rem; font-weight: 700; color: #0ea5e9; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #f0f9ff; }

.yp-form-row { margin-bottom: 16px; }
.yp-form-row:last-child { margin-bottom: 0; }
.yp-form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.yp-form-group { display: flex; flex-direction: column; gap: 6px; }
.yp-form-group-full { width: 100%; }

.yp-form-group label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.yp-required { color: #ef4444; }
.yp-hint { font-size: 0.75rem; color: #64748b; }

.yp-form-input { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; color: #1e293b; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.yp-form-input:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }
.yp-form-input::placeholder { color: #94a3b8; }
.yp-form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }

.yp-input-error { border-color: #ef4444 !important; }
.yp-input-wechat { border-color: #07c160; }
.yp-input-wechat:focus { box-shadow: 0 0 0 3px rgba(7,193,96,0.1); }

.yp-error-msg { font-size: 0.8rem; color: #ef4444; }
.yp-form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }

/* === Category Chips === */
.yp-category-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.yp-category-chip { display: inline-flex; cursor: pointer; }
.yp-category-chip input { display: none; }
.yp-category-chip span { padding: 6px 14px; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 0.8rem; color: #475569; transition: all 0.2s; background: #f8fafc; }
.yp-category-chip input:checked + span { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.yp-category-chip:hover span { border-color: #0ea5e9; }

/* === Radio Chips === */
.yp-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.yp-radio-chip { display: inline-flex; cursor: pointer; }
.yp-radio-chip input { display: none; }
.yp-radio-chip span { padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.85rem; color: #475569; transition: all 0.2s; background: #f8fafc; }
.yp-radio-chip input:checked + span { background: #eff6ff; color: #0ea5e9; border-color: #0ea5e9; font-weight: 600; }
.yp-radio-chip:hover span { border-color: #93c5fd; }

/* === Checkbox Chips === */
.yp-checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.yp-check-chip { display: inline-flex; cursor: pointer; }
.yp-check-chip input { display: none; }
.yp-check-chip span { padding: 10px 18px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.85rem; color: #475569; transition: all 0.2s; background: #f8fafc; }
.yp-check-chip input:checked + span { background: #ecfdf5; color: #059669; border-color: #059669; font-weight: 600; }
.yp-check-chip:hover span { border-color: #6ee7b7; }

/* === Submit === */
.yp-form-submit { text-align: center; padding: 24px 0; }
.yp-btn-submit { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; border: none; padding: 14px 48px; font-size: 1.05rem; font-weight: 700; border-radius: 12px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 14px rgba(14,165,233,0.3); }
.yp-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.4); }
.yp-submit-note { color: #64748b; font-size: 0.8rem; margin-top: 12px; }

/* === Sidebar Cards === */
.yp-sidebar-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 16px; }

/* VIP Card */
.yp-vip-card { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fbbf24; }
.yp-vip-badge { background: #f59e0b; color: #fff; display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 700; margin-bottom: 12px; }
.yp-vip-title { font-size: 1rem; font-weight: 700; color: #92400e; margin: 0 0 12px; }
.yp-vip-list { list-style: none; padding: 0; margin: 0 0 16px; }
.yp-vip-list li { font-size: 0.85rem; color: #78350f; padding: 4px 0; }
.yp-vip-cta { display: block; text-align: center; background: #f59e0b; color: #fff; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: background 0.2s; }
.yp-vip-cta:hover { background: #d97706; }

/* Compare Table */
.yp-compare-card { padding: 16px; }
.yp-compare-title { font-size: 0.9rem; font-weight: 700; color: #374151; margin: 0 0 12px; text-align: center; }
.yp-compare-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.yp-compare-table th, .yp-compare-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; text-align: center; }
.yp-compare-table th { color: #64748b; font-weight: 500; }
.yp-compare-table td:first-child { text-align: left; color: #374151; font-weight: 500; }
.yp-th-vip { color: #f59e0b !important; font-weight: 700 !important; }
.yp-compare-table td:last-child { color: #f59e0b; font-weight: 600; }

/* WeChat Card */
.yp-wechat-card { text-align: center; }
.yp-wechat-icon { font-size: 2rem; margin-bottom: 8px; }
.yp-wechat-card h3 { font-size: 0.95rem; font-weight: 700; color: #374151; margin: 0 0 8px; }
.yp-wechat-card p { font-size: 0.8rem; color: #64748b; margin: 0 0 12px; line-height: 1.5; }
.yp-wechat-cta { background: #07c160; color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; display: inline-block; }

/* Ad Sidebar Card */
.yp-ad-sidebar-card { text-align: center; padding: 12px; }

/* === Sticky Sidebar === */
.yp-sidebar-sticky { position: sticky; top: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.yp-sticky-close { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.3); color: #fff; border: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 10px; line-height: 20px; text-align: center; }

/* === Footer === */
.yp-footer-clean { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 32px 0; margin-top: 48px; }
.yp-footer-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.yp-footer-brand { display: flex; align-items: center; gap: 8px; }
.yp-footer-desc { font-size: 0.8rem; color: #64748b; }
.yp-footer-links { display: flex; gap: 16px; }
.yp-footer-links a { font-size: 0.8rem; color: #64748b; text-decoration: none; }
.yp-footer-links a:hover { color: #0ea5e9; }
.yp-footer-copy { font-size: 0.75rem; color: #94a3b8; text-align: center; }

/* === Mobile Float === */
.yp-mobile-float { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e2e8f0; padding: 8px 16px; z-index: 999; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.yp-mobile-float-btn { display: block; text-align: center; background: #07c160; color: #fff; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.yp-mobile-float-close { position: absolute; top: 4px; right: 8px; background: none; border: none; color: #94a3b8; font-size: 16px; cursor: pointer; }

/* === Success Page === */
.yp-success-container { max-width: 600px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.yp-success-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 40px; }
.yp-success-icon { width: 64px; height: 64px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.yp-success-icon svg { width: 32px; height: 32px; color: #059669; }
.yp-success-card h1 { font-size: 1.5rem; font-weight: 700; color: #059669; margin: 0 0 12px; }
.yp-success-company { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.yp-success-status { display: inline-block; background: #fef3c7; color: #92400e; padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; margin-bottom: 20px; }
.yp-success-desc { color: #64748b; font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.yp-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.yp-success-btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; }
.yp-success-btn-primary { background: #0ea5e9; color: #fff; }
.yp-success-btn-primary:hover { background: #0284c7; }
.yp-success-btn-vip { background: #f59e0b; color: #fff; }
.yp-success-btn-vip:hover { background: #d97706; }

/* === Responsive === */
@media (max-width: 768px) {
    .yp-apply-hero-inner { flex-direction: column; }
    .yp-apply-hero-right { flex: none; width: 100%; }
    .yp-apply-hero-left h1 { font-size: 1.4rem; }
    .yp-apply-layout { flex-direction: column; }
    .yp-apply-sidebar { flex: none; width: 100%; }
    .yp-sidebar-sticky { display: none !important; }
    .yp-mobile-float { display: block; }
    .yp-form-row-2col { grid-template-columns: 1fr; }
    .yp-footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .yp-footer-links { justify-content: center; }
}
