﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    font-family: 'Segoe UI', Roboto, sans-serif;
    padding: 24px;
    color: #1e293b;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    padding: 24px 28px;
}

header {
    margin-bottom: 24px;
    border-left: 5px solid #3b82f6;
    padding-left: 20px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 16px;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
}

.group-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.current-group {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #475569;
}

select, input, button {
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    background: white;
    font-family: inherit;
}

button {
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.1s;
}
button:hover {
    background: #2563eb;
    transform: scale(0.97);
}
button.danger {
    background: #ef4444;
}
button.danger:hover {
    background: #dc2626;
}

.wire-bond-group-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.wire-bond-group-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wire-bond-group-btn:disabled {
    background: #f8fafc;
    color: #64748b;
}

#currentGroupBadge {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 500;
}

.table-container {
    overflow-x: auto;
    margin-top: 8px;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 600px;
}

.param-table th, .param-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.param-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.param-table input, .param-table select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
}

/* 参数分组样式 */
.section-title {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
}

.section-title td {
    padding: 12px 8px;
    text-align: center;
    border-top: 2px solid #3b82f6;
    border-bottom: 1px solid #e2e8f0;
}

.independent-param {
    background: #fefefe;
}

.segment-names {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.segment-names td {
    padding: 8px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.segment-names td div {
    margin: 0;
    padding: 0;
}

.segment-param {
    background: #fafafa;
}

footer {
    margin-top: 24px;
    font-size: 0.7rem;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
}

/* 开始菜单样式 */
.menu {
    text-align: center;
    padding: 60px 20px;
}

.menu h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.menu p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #64748b;
}

.menu button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.menu button:hover {
    background: #2563eb;
}

/* 完成按钮样式 */
#finishBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

#finishBtn:hover {
    background: #059669;
}
