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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.5;
}

.container {
    min-height: 100vh;
    padding: 2rem 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title .icon {
    margin-right: 0.5rem;
}

.subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* 卡片样式 */
.calculator-card, .result-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #f3f4f6;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

/* 选项行样式 */
.options-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: #fafafa;
    border-radius: 0.5rem;
    border: 1px solid #f3f4f6;
}

.option-item {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.option-item .form-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    margin-bottom: 0.375rem;
}

.option-item .form-label .icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .options-row {
        flex-direction: column;
    }
    
    .option-item {
        min-width: 100%;
    }
}

.form-label {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.form-label .icon {
    margin-right: 0.5rem;
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* 输入框标签特殊样式 - 更突出 */
.form-group:first-child .form-label {
   
}

.form-group:first-child .form-label .icon {
    opacity: 1;
}

.input-wrapper, .select-wrapper {
    position: relative;
}

.form-input, .form-select, .form-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #111827;
    background-color: #fafafa;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
}

/* 输入框特殊样式 - 更突出 */
.form-group:first-child .form-textarea {
    background-color: white;
    border: 2px solid #e5e7eb;
    padding: 1rem;
    font-size: 0.9375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group:first-child .form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    line-height: 1.6;
}

/* 选项区域的输入框样式 - 更轻量 */
.options-row .form-select {
    background-color: white;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    padding: 0.625rem 0.75rem;
}

.options-row .form-select:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    width: 14px;
    height: 14px;
}

/* 复选框样式 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.checkbox-wrapper:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #6b7280;
}

.checkbox-label {
    font-size: 0.8125rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

/* 按钮样式 */
.button-container {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.calculate-button {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background-color: #2563eb;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.calculate-button:hover {
    background-color: #1d4ed8;
    transform: scale(1.02);
}

.calculate-button:active {
    transform: scale(0.98);
}

.clear-button {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.clear-button:hover {
    background-color: #f3f4f6;
    transform: scale(1.02);
}

.clear-button:active {
    transform: scale(0.98);
}

.copy-button {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background-color: #10b981;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.copy-button:hover {
    background-color: #059669;
    transform: scale(1.02);
}

.copy-button:active {
    transform: scale(0.98);
}

.copy-button.success {
    background-color: #059669;
}

/* 结果卡片样式 */
.result-card {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.result-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.result-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.result-title .icon {
    margin-right: 0.5rem;
}

.result-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .result-summary {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.result-item {
    padding: 1rem;
    border-radius: 0.5rem;
}

.result-item.blue {
    background-color: #eff6ff;
}

.result-item.purple {
    background-color: #f5f3ff;
}

.result-item.green {
    background-color: #ecfdf5;
}

.result-label {
    font-size: 0.875rem;
}

.result-item.blue .result-label {
    color: #1e40af;
}

.result-item.purple .result-label {
    color: #5b21b6;
}

.result-item.green .result-label {
    color: #065f46;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.result-item.blue .result-value {
    color: #2563eb;
}

.result-item.purple .result-value {
    color: #7c3aed;
}

.result-item.green .result-value {
    color: #059669;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }
    
    .calculate-button,
    .clear-button,
    .copy-button {
        width: 100%;
    }
}

