/* 大地雇主责任险 - 旗舰版样式 */

:root {
    --primary: #1677ff;
    --primary-dark: #0958d9;
    --primary-soft: #e6f4ff;
    --ink: #1f1f1f;
    --muted: #666666;
    --faint: #999999;
    --line: #f0f0f0;
    --paper: #ffffff;
    --wash: #f5f7fa;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: var(--ink);
    line-height: 1.6;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1677ff 50%, #00d4ff 100%);
    padding: 60px 20px 80px;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}
.hero-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}
.feature-icon {
    font-size: 24px;
}
.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.feature-desc {
    font-size: 12px;
    opacity: 0.8;
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 100%;
    margin: 24px auto 60px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .main-container {
        padding: 0 24px;
    }
}
@media (max-width: 768px) {
    .main-container {
        padding: 0 16px;
    }
}

/* Progress Section */
.progress-section {
    background: white;
    padding: 24px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.progress-label {
    font-size: 16px;
    font-weight: 600;
}
.progress-hint {
    font-size: 13px;
    color: var(--faint);
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .content-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* Form Cards */
.form-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.section-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}
.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}
.section-badge {
    background: #fff7e6;
    color: #fa8c16;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* Plan Cards */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .plan-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .plan-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
.plan-card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.plan-card.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.plan-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #fa8c16;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
}
.plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.plan-price {
    font-size: 13px;
    color: var(--muted);
}

/* Plan Detail */
.plan-detail-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
}
.plan-detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.detail-item {
    text-align: center;
}
.detail-label {
    font-size: 12px;
    color: var(--faint);
    margin-bottom: 4px;
}
.detail-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
.plan-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

/* Upload */
.upload-content {
    text-align: center;
    padding: 32px 20px;
    color: var(--faint);
}
.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.template-download {
    margin-bottom: 8px;
}

/* 职业选择器 */
.occupation-selector {
    margin-top: 20px;
    padding: 20px;
    background: var(--wash);
    border-radius: 8px;
}
.occupation-selector h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.selected-occupations {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.occupation-tag {
    display: grid;
    grid-template-columns: 120px 60px 1fr 32px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
}
.occ-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.occ-class {
    color: var(--faint);
    font-size: 12px;
    padding: 2px 8px;
    background: var(--wash);
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}
.occupation-tag .el-input-number {
    width: 100%;
}
.occupation-summary {
    margin-top: 16px;
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.occupation-summary .total {
    margin-left: auto;
    font-weight: 600;
    color: var(--ink);
}

/* Premium Sidebar */
.premium-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 24px;
    border-radius: var(--radius);
    position: sticky;
    top: 20px;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
}
.sidebar-badge {
    background: #52c41a;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
}
.premium-total {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}
.premium-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.premium-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.currency {
    font-size: 24px;
    color: #faad14;
}
.amount {
    font-size: 48px;
    font-weight: 700;
    color: #faad14;
    line-height: 1;
}
.premium-info {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}
.premium-breakdown, .occupation-breakdown {
    margin-bottom: 20px;
}
.breakdown-header, .breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.breakdown-header {
    font-weight: 600;
}
.occupation-summary {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 12px;
    color: #999;
}
.occupation-summary .breakdown-row {
    border-bottom: none;
    padding: 4px 0;
}
.submit-insure-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
}
.sidebar-footer {
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* FAQ */
.faq-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 24px;
}
.faq-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.faq-item {
    margin-bottom: 12px;
}
.faq-q {
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 4px;
}
.faq-a {
    font-size: 12px;
    color: var(--muted);
    padding-left: 16px;
}

/* Submit */
.submit-section {
    text-align: center;
    padding: 40px 0;
}
.submit-btn {
    width: 300px;
    height: 52px;
    font-size: 18px;
    font-weight: 600;
}
.submit-tip {
    margin-top: 16px;
    font-size: 13px;
    color: var(--faint);
}

/* Success Dialog */
.success-content {
    text-align: center;
    padding: 20px;
}
.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.success-content h3 {
    font-size: 20px;
    margin-bottom: 24px;
}
.success-details {
    background: #f6ffed;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.success-details p {
    margin: 8px 0;
    font-size: 14px;
}

/* ---------------------------------------------------------------- */
/* 运营/管理后台通用样式 */
/* ---------------------------------------------------------------- */
.top-nav {
    background: linear-gradient(135deg, #1e3a8a 0%, #1677ff 50%, #00d4ff 100%);
    padding: 20px 40px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-brand h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.nav-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
}
.nav-actions {
    display: flex;
    gap: 12px;
}
.nav-actions .el-button {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.nav-actions .el-button:hover {
    background: rgba(255,255,255,0.25);
}

.backend-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

/* 登录页面 */
.login-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 440px;
}
.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}
.login-header p {
    color: var(--muted);
    font-size: 14px;
}

/* 统计卡片 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}
.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 14px;
    color: var(--muted);
}

/* 后台布局 */
.backend-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    align-items: start;
}
.admin-layout {
    max-width: 800px;
    margin: 0 auto;
}

/* 后台卡片 */
.backend-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.card-count {
    font-size: 13px;
    color: var(--faint);
}
.card-hint {
    font-size: 13px;
    color: var(--faint);
}

/* 案件列表 */
.case-list-card {
    max-height: calc(100vh - 280px);
    display: flex;
    flex-direction: column;
}
.case-list-card .case-list {
    overflow-y: auto;
    flex: 1;
}
.case-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.2s;
}
.case-item:hover, .case-item.active {
    background: var(--primary-soft);
}
.case-item-main {
    flex: 1;
    min-width: 0;
}
.case-company {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-meta {
    font-size: 12px;
    color: var(--muted);
}
.case-item-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.case-item-date {
    font-size: 11px;
    color: var(--faint);
    flex-shrink: 0;
}

/* 案件详情 */
.case-detail-card {
    min-height: 600px;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.detail-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.mail-error-section {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
}
.mail-error-section .el-alert {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
}
.mail-error-section .el-alert__title {
    font-weight: 600;
    font-size: 14px;
}

.field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #909399;
    line-height: 1.5;
}
.field-hint.warn {
    color: #f56c6c;
    font-weight: 600;
}

/* 投保须知横幅 */
.notice-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #fff1e0 100%);
    border: 2px solid #fb923c;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.15);
}
.notice-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 14px;
}
.notice-banner-icon {
    font-size: 20px;
}
.notice-banner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notice-banner-item {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #78350f;
}
.notice-banner-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #fb923c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}
.notice-banner-link {
    color: #c2410c;
    font-weight: 700;
    text-decoration: underline;
}
.notice-banner-link:hover {
    color: #9a3412;
}

.success-notices {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f6f8fc;
    border-radius: 8px;
    text-align: left;
}
.notice-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 8px;
}
.notice-item:last-child {
    margin-bottom: 0;
}
.notice-icon {
    flex-shrink: 0;
}
.notice-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.notice-link:hover {
    text-decoration: underline;
}

.detail-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.detail-section:last-child {
    border-bottom: none;
}
.detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ink);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-label {
    font-size: 12px;
    color: var(--faint);
}
.info-value {
    font-size: 14px;
    color: var(--ink);
}
.info-value.highlight {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

/* 风险列表 */
.risk-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.risk-item {
    background: #fff7e6;
    border: 1px solid #ffd591;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #d46b08;
}

/* 备注 */
.notes-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    padding: 12px;
    background: var(--wash);
    border-radius: 8px;
}

/* 附件 */
.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--wash);
    border-radius: 8px;
    margin-bottom: 8px;
}
.att-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.att-icon {
    font-size: 16px;
}
.att-name {
    font-size: 13px;
    color: var(--ink);
}
.att-size {
    font-size: 12px;
    color: var(--faint);
}

/* 操作区 */
.action-section {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--faint);
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.empty-text {
    font-size: 13px;
    color: var(--faint);
}

/* 配置表单 */
.config-form {
    padding: 24px;
}
.config-form .el-form-item {
    margin-bottom: 20px;
}

/* 信息列表 */
.info-list {
    padding: 8px 24px 24px;
}
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}
.info-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* 配置状态 */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
}
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--wash);
    border-radius: 8px;
}
.status-label {
    font-size: 13px;
    color: var(--muted);
}
.status-value {
    font-size: 13px;
    color: var(--faint);
}
.status-value.configured {
    color: #52c41a;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .premium-sidebar {
        position: static;
        order: -1;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .hero-banner {
        padding: 32px 16px 40px;
    }
    .hero-banner h1 {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .hero-features {
        grid-template-columns: 1fr;
    }
    .plan-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-card {
        padding: 20px;
    }
    .section-header h3 {
        font-size: 16px;
    }
}
