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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-btn.active {
    background: white;
    color: var(--primary-color);
}

.admin-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
}

.admin-btn:hover {
    background: white !important;
}

.app-main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-body {
    padding: 2rem;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.upload-area p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-details span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

.file-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    right: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.action-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.billing-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.billing-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.billing-item:hover {
    transform: translateX(5px);
}

.billing-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
}

.billing-info {
    flex: 1;
}

.billing-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.billing-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.billing-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.billing-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    color: white;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

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

.form-group input::placeholder {
    color: var(--text-secondary);
}

.pricing-section {
    margin-bottom: 2.5rem;
}

.pricing-section:last-child {
    margin-bottom: 0;
}

.pricing-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.pricing-item {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.pricing-item .range {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pricing-item .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.smt-section {
    margin-bottom: 1.5rem;
}

.smt-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.required::before {
    content: '*';
    color: var(--danger-color);
    margin-right: 0.25rem;
}

.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.radio-label {
    position: relative;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: white;
}

.radio-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-btn {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.input-with-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-hint input {
    flex: 1;
}

.hint-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.hint-orange {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 500;
}

.hint-star {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.special-section {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.special-section h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.special-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    display: block;
    margin-top: 0.25rem;
}

.upload-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.upload-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.upload-mini-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.upload-mini-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body p {
    color: var(--text-primary);
    line-height: 1.6;
    padding: 1.5rem;
}

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

.project-detail-container {
    padding: 0;
}

.detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
}

.detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-time {
    font-size: 0.85rem;
    opacity: 0.85;
}

.detail-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.highlight {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.detail-billing-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.detail-billing-item:last-child {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.item-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.detail-billing-item:last-child .item-name {
    font-weight: 600;
    color: white;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.detail-billing-item:last-child .item-price {
    color: white;
    font-size: 1.1rem;
}

.app-footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 1.25rem;
    margin-top: auto;
}

.app-footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .app-main {
        padding: 1rem;
    }

    .upload-area {
        padding: 2.5rem 1rem;
    }

    .billing-item {
        flex-direction: column;
        text-align: center;
    }

    .billing-price {
        font-size: 1.5rem;
    }

    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        max-width: 95%;
    }
}

.manual-form {
    padding: 1.5rem;
}

.manual-form .form-section {
    margin-bottom: 1.5rem;
}

.manual-form .form-section:last-of-type {
    margin-bottom: 0;
}

.manual-form .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.manual-form .form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.manual-form .form-row.two-col {
    grid-template-columns: 120px 1fr 1fr;
}

.manual-form .form-row:last-child {
    margin-bottom: 0;
}

.manual-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-top: 0.6rem;
    text-align: right;
}

.manual-form .form-label.required::before {
    content: '*';
    color: var(--danger-color);
    margin-right: 0.25rem;
}

.manual-form .form-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.manual-form .form-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.manual-form input[type="text"],
.manual-form input[type="number"] {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s;
}

.manual-form input[type="text"]:focus,
.manual-form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.manual-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

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

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
    min-width: 0;
}

.input-with-unit .unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.radio-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.radio-inline input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-inline span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-inline span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-grid-2col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1rem;
}

.form-select {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
    background: white;
    cursor: pointer;
}

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

.upload-area-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

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

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.inline-input {
    width: 80px !important;
}

.hint-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* 新的手动计算表单样式 */
.smt-form-container {
    padding: 0.5rem 0;
}

.smt-section-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.2rem;
    padding-left: 0.25rem;
    font-weight: 600;
}

.smt-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.smt-label {
    width: 130px;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #444;
    padding-top: 0.5rem;
}

.smt-label .required {
    color: #e53e3e;
    margin-right: 0.2rem;
}

.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #888;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    font-size: 11px;
    color: #666;
    margin-left: 4px;
    cursor: help;
}

.smt-input {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.radio-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

.radio-btn.active {
    border-color: #4ade80;
    background: linear-gradient(135deg, #86efac, #4ade80);
    color: #166534;
    font-weight: 500;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.radio-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

.radio-btn.active {
    border-color: #4ade80;
    background: linear-gradient(135deg, #86efac, #4ade80);
    color: #166534;
    font-weight: 500;
}

.input-separator {
    color: #999;
    font-size: 1rem;
    margin: 0 0.25rem;
}

.input-with-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.input-with-label span {
    font-size: 0.9rem;
    color: #555;
}

.input-with-label input {
    width: 90px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.input-unit {
    font-size: 0.85rem;
    color: #777;
}

.checkbox-with-help {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    position: relative;
}

.checkbox-with-help input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

.qty-input {
    width: 90px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.qty-input-full {
    flex: 1;
    max-width: 200px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.qty-input-full:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-unit {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.special-section {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
}

.special-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.special-subtitle {
    font-size: 0.85rem;
    color: #f97316;
    margin-bottom: 0.8rem;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.special-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    position: relative;
}

.special-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.special-divider {
    grid-column: 1 / -1;
    border-bottom: 1px dashed #d1d5db;
    margin: 0.2rem 0;
}

.special-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.7rem;
}

.sample-confirm-row {
    background: #fef3c7;
    padding: 0.75rem;
    border-radius: 6px;
}

.bom-row {
    background: #fef3c7;
    padding: 0.75rem;
    border-radius: 6px;
}

.select-hint {
    font-size: 0.85rem;
    color: #ea580c;
    font-weight: 500;
}

.remark-area {
    width: 100%;
    position: relative;
}

.remark-area textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 90px;
}

.remark-area .char-count {
    position: absolute;
    right: 0.75rem;
    bottom: 0.5rem;
    font-size: 0.75rem;
    color: #999;
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.upload-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn-mini:hover {
    border-color: #bbb;
    background: #fafafa;
}

.upload-hint-mini {
    font-size: 0.8rem;
    color: #777;
}

.pcb-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e5e7eb;
}

.pcb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem 0;
}

.pcb-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pcb-item:nth-child(1) {
    grid-column: 1 / -1;
}

.pcb-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.pcb-item input {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.pcb-input {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pcb-input input {
    flex: 1;
}

.pcb-input span {
    font-size: 0.85rem;
    color: #777;
}

@media (max-width: 768px) {
    .smt-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .smt-label {
        width: 100%;
        padding-top: 0;
    }
    
    .special-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pcb-grid {
        grid-template-columns: 1fr;
    }
}

/* 引导弹窗样式 */
.guide-modal-content {
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.guide-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.guide-steps {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.guide-step.active {
    opacity: 1;
}

.guide-step.completed {
    opacity: 1;
}

.guide-step.completed .step-number {
    background: #22c55e;
    border-color: #22c55e;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    background: white;
    transition: all 0.3s ease;
}

.guide-step.active .step-number {
    border-color: #6366f1;
    background: #6366f1;
    color: white;
}

.step-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.guide-step.active .step-text {
    color: #6366f1;
}

.guide-step-content {
    padding: 1.5rem;
    min-height: 280px;
    flex: 1;
}

.guide-panel {
    display: none;
}

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

.guide-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.guide-panel-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.guide-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.guide-options-3 {
    grid-template-columns: repeat(3, 1fr);
}

.guide-option {
    cursor: pointer;
}

.guide-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
    text-align: center;
}

.guide-option input:checked + .option-box {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.option-desc {
    font-size: 0.8rem;
    color: #64748b;
}

.guide-input-group {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.guide-input-group label {
    display: block;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.guide-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.guide-input-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.guide-input-large input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.input-suffix {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.guide-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

.guide-summary {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-top: 1px solid #bbf7d0;
    margin-top: auto;
}

.summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.8rem;
    color: #64748b;
}

.summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.guide-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-top: auto;
}

@media (max-width: 640px) {
    .guide-options {
        grid-template-columns: 1fr;
    }
    
    .guide-options-3 {
        grid-template-columns: 1fr;
    }
    
    .guide-steps {
        padding: 1rem;
    }
    
    .step-text {
        display: none;
    }
}
