* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #F5F5F5;
    color: #18181B;
    font-size: 14px;
    line-height: 1.5;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 卡片 */
.card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1.5px solid #E4E4E7;
    overflow: hidden;
    margin:12px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 24px 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #18181B;
}

.separator {
    height: 1px;
    background: #E4E4E7;
    margin: 0 24px;
}

/* 图标 */
.icon {
    width: 20px;
    height: 20px;
    color: #71717A;
    flex-shrink: 0;
}

.icon-sm {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 搜索表单 */
.search-form {
    padding: 18px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.search-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.input {
    height: 40px;
    border: 1px solid #E4E4E7;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #18181B;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: #22C55E;
}

.input::placeholder {
    color: #A1A1AA;
}

/* 按钮 */
.btn {
    height: 40px;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.85;
}

.btn-green { background: #22C55E; }
.btn-purple { background: #A855F7; }
.btn-red { background: #EF4444; }

/* 表格 */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    background: #F4F4F5;
}

.data-table th {
    padding: 0 12px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    color: #71717A;
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 8px 12px;
    font-size: 12px;
    color: #18181B;
    border-bottom: 0.5px solid #E4E4E7;
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.data-table tbody tr:nth-child(odd) {
    background: #FFFFFF;
}

/* 双行单元格 */
.cell-main {
    color: #18181B;
    font-size: 12px;
}

.cell-sub {
    color: #A1A1AA;
    font-size: 11px;
    margin-top: 2px;
}

/* 信息表格 */
.info-table th,
.info-table td {
    width: 50%;
}

/* 汇总表格 */
.summary-table th,
.summary-table td {
    width: 50%;
}

/* 双列布局 */
.two-col {
    display: flex;
    gap: 32px;
}

.two-col .card {
    flex: 1;
    min-width: 0;
}

/* 折叠面板 */
.accordion-list {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accordion-header {
    height: 34px;
    background: #FAFAFA;
    border-radius: 6px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #18181B;
    cursor: pointer;
    user-select: none;
}

.accordion-header .chevron {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    color: #71717A;
    transition: transform 0.2s;
    flex-shrink: 0;
    display: block;
}

.accordion-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.accordion-body {
    overflow: hidden;
}

.accordion-body.collapsed {
    display: none;
}

/* 加载 */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 16px;
    color: #71717A;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E4E4E7;
    border-top-color: #22C55E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误 */
.error-card {
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-radius: 12px;
    padding: 24px;
    color: #DC2626;
    text-align: center;
    font-size: 16px;
}

/* 底部 */
.footer {
    text-align: center;
    color: #A1A1AA;
    font-size: 13px;
    padding: 16px 0;
}

/* 空数据 */
.empty-row td {
    text-align: center;
    color: #A1A1AA;
    padding: 20px 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page {
        padding: 16px;
        gap: 16px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-row .input,
    .search-row .btn {
        width: 100% !important;
    }

    .card-header {
        padding: 16px 16px 12px;
    }

    .separator {
        margin: 0 16px;
    }

    .search-form {
        padding: 12px 16px 20px;
    }

    .accordion-list {
        padding: 0 16px 16px;
    }

    .two-col {
        flex-direction: column;
    }
}
