/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section切换 */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 首页Hero */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-500);
}

/* 案件类型卡片 */
.case-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.case-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.case-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.case-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.case-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.case-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1.5rem;
}

.case-stats span {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.case-stats i {
    color: var(--primary);
}

/* 城市选择 */
.location-selector {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.location-selector h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.location-selector h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.location-selector select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.location-selector select:focus {
    outline: none;
    border-color: var(--primary);
}

/* 流程页面 */
.process-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    background: var(--gray-100);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--gray-200);
}

.process-header h2 {
    font-size: 1.75rem;
    color: var(--gray-800);
}

/* 流程进度条 */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    min-width: 100px;
}

.progress-step:hover {
    transform: scale(1.05);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.step-icon i {
    font-size: 1.25rem;
    color: var(--gray-500);
}

.progress-step.active .step-icon,
.progress-step.completed .step-icon {
    background: var(--primary);
}

.progress-step.active .step-icon i,
.progress-step.completed .step-icon i {
    color: white;
}

.progress-step span {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    text-align: center;
}

.progress-step.active span {
    color: var(--primary);
    font-weight: 600;
}

.progress-line {
    width: 40px;
    height: 3px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* 步骤内容 */
.step-panel {
    display: none;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.step-title h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
}

.step-title h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.time-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
}

/* 清单样式 */
.checklist {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checklist h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.checklist h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.check-item:last-child {
    border-bottom: none;
}

.check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.check-item label {
    flex: 1;
    cursor: pointer;
}

.check-item label strong {
    display: block;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.check-item .detail {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.mini-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background 0.2s;
}

.mini-btn:hover {
    background: var(--primary-dark);
}

/* 操作步骤 */
.action-steps h4 {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.action-steps h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.action-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.action-item:last-child {
    border-bottom: none;
}

.action-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h5 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.action-detail {
    color: var(--gray-600);
}

.action-detail p {
    margin-bottom: 0.5rem;
}

.action-detail ol,
.action-detail ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-detail li {
    margin-bottom: 0.25rem;
}

/* 话术框 */
.script-box {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    border-left: 4px solid var(--primary);
}

.script-box.full {
    padding: 1.5rem;
}

.script-box p {
    margin-bottom: 0.5rem;
}

.script-box .script-label {
    color: var(--primary-light);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.script-box .script-label:first-child {
    margin-top: 0;
}

/* 提示框 */
.tip-box {
    background: var(--success-light);
    color: var(--gray-700);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
}

.tip-box i {
    color: var(--success);
    margin-top: 0.2rem;
}

.tip-box.warning {
    background: var(--warning-light);
}

.tip-box.warning i {
    color: var(--warning);
}

/* 警告框 */
.warning-box {
    background: var(--danger-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: var(--danger);
    margin-bottom: 0.75rem;
}

.warning-box ul {
    margin-left: 1.25rem;
}

.warning-box li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.warning-box.inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.warning-box.inline i {
    color: var(--danger);
}

/* 记录提示 */
.record-tip {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.record-tip i {
    margin-right: 0.5rem;
}

/* 下一步按钮 */
.next-step {
    margin-top: 2rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* 电话卡片 */
.phone-card {
    background: var(--primary-light);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.phone-number i {
    margin-right: 0.5rem;
}

.phone-card span {
    color: var(--gray-600);
}

/* 信息卡片 */
.info-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-card h4 {
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.info-card h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.address-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* 费用计算器 */
.fee-calculator {
    background: var(--success-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.fee-calculator h4 {
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.fee-calculator h4 i {
    color: var(--success);
    margin-right: 0.5rem;
}

.fee-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.fee-highlight i {
    color: var(--success);
    font-size: 1.5rem;
}

/* 时间线 */
.timeline {
    margin: 1.5rem 0;
}

.timeline h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.timeline h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2.5rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: var(--gray-200);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.timeline-content strong {
    color: var(--gray-800);
}

.timeline-content span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 开庭准备 */
.pre-hearing h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.pre-hearing h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.prep-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.prep-card h5 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.prep-card h5 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.prep-card ul {
    margin-left: 1.25rem;
}

.prep-card li {
    margin-bottom: 0.25rem;
    color: var(--gray-600);
}

/* 庭审流程 */
.hearing-process h4 {
    margin: 1.5rem 0 1rem;
    color: var(--gray-700);
}

.hearing-process h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.hearing-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.hearing-step:last-child {
    border-bottom: none;
}

.hearing-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.hearing-content {
    flex: 1;
}

.hearing-content h5 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.hearing-content p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

/* 结果场景 */
.result-scenarios h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.scenario-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.scenario-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scenario-icon i {
    font-size: 1.5rem;
}

.scenario-card.success .scenario-icon {
    background: var(--success-light);
}

.scenario-card.success .scenario-icon i {
    color: var(--success);
}

.scenario-card.warning .scenario-icon {
    background: var(--warning-light);
}

.scenario-card.warning .scenario-icon i {
    color: var(--warning);
}

.scenario-card.danger .scenario-icon {
    background: var(--danger-light);
}

.scenario-card.danger .scenario-icon i {
    color: var(--danger);
}

.scenario-card h5 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.scenario-card p {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

/* 详情面板 */
.detail-panel {
    display: none;
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.detail-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.detail-panel h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.detail-panel h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* 完成卡片 */
.completion-card {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    text-align: center;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.completion-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.completion-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.completion-card p {
    opacity: 0.9;
}

/* 话术库页面 */
.section-desc {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.script-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.script-category h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.script-category h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.script-card {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.script-header {
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.script-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.script-header h4 {
    color: var(--gray-800);
}

.script-body {
    padding: 1.25rem;
}

.script-line {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.script-line:last-child {
    margin-bottom: 0;
}

.role {
    flex-shrink: 0;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    height: fit-content;
}

.role.you {
    background: var(--primary);
    color: white;
}

.role.other {
    background: var(--gray-200);
    color: var(--gray-700);
}

.script-line p {
    flex: 1;
    color: var(--gray-700);
    line-height: 1.6;
}

.script-note {
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.script-note i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.script-note.warning {
    background: var(--warning-light);
}

.script-note.warning i {
    color: var(--warning);
}

/* 短语表格 */
.phrase-table {
    width: 100%;
    border-collapse: collapse;
}

.phrase-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.phrase-table td:first-child {
    color: var(--gray-500);
    width: 40%;
}

.phrase-table td:last-child {
    color: var(--gray-800);
    font-weight: 500;
}

.phrase-table tr:last-child td {
    border-bottom: none;
}

/* 模板页面 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.template-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.template-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.template-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.template-card h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.template-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.template-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

/* 应急预案 */
.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emergency-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.emergency-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.emergency-header:hover {
    background: var(--gray-50);
}

.emergency-header i:first-child {
    color: var(--danger);
    font-size: 1.25rem;
}

.emergency-header span {
    flex: 1;
    font-weight: 600;
    color: var(--gray-800);
}

.emergency-header i:last-child {
    color: var(--gray-400);
    transition: transform 0.3s;
}

.emergency-item.open .emergency-header i:last-child {
    transform: rotate(180deg);
}

.emergency-content {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.emergency-item.open .emergency-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.emergency-content h5 {
    color: var(--gray-700);
    margin: 1rem 0 0.75rem;
}

.solution-item {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.solution-item strong {
    display: block;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.solution-item p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.solution-item ul,
.solution-item ol {
    margin-left: 1.25rem;
    color: var(--gray-600);
}

.solution-item li {
    margin-bottom: 0.25rem;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    color: var(--gray-800);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* 模板内容样式 */
.template-content {
    font-family: 'Courier New', monospace;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--gray-800);
}

.template-content .placeholder {
    background: var(--warning-light);
    color: var(--warning);
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

.template-tips {
    background: var(--primary-light);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.template-tips h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.template-tips ul {
    margin-left: 1.25rem;
    color: var(--gray-600);
}

.template-tips li {
    margin-bottom: 0.25rem;
}

/* 费用表单 */
.fee-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fee-form label {
    color: var(--gray-700);
    font-weight: 500;
}

.fee-form input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.fee-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.fee-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--success-light);
    border-radius: 0.5rem;
    color: var(--gray-800);
    display: none;
}

.fee-result.active {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .case-types {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        padding: 1rem;
        gap: 0.5rem;
    }

    .progress-step {
        min-width: 70px;
        padding: 0.25rem;
    }

    .progress-step span {
        font-size: 0.75rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
    }

    .progress-line {
        width: 20px;
    }

    .step-panel {
        padding: 1.25rem;
    }

    .step-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-buttons button {
        width: 100%;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }
}
