* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.header {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.quick-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.quick-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    opacity: 0.9;
    font-size: 0.95rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.input-section {
    padding: 30px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.result-section {
    padding: 30px;
    background: white;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4361ee;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-category {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.quick-fill-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.fill-btn {
    padding: 6px 14px;
    background: #e2e8f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.fill-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.info-tip {
    margin-top: 20px;
    padding: 12px;
    background: rgba(67, 97, 238, 0.08);
    border-radius: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: #4361ee;
}

.company-info {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

.company-notes {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 5px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.metric-card {
    padding: 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.metric-card.blue {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

.metric-card.pink {
    background: linear-gradient(135deg, #f72585, #b5179e);
}

.metric-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
}

.metric-quality {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 10px;
}

.secondary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.secondary-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.secondary-label {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 5px;
}

.secondary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.conclusion {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    padding: 20px;
    border-radius: 15px;
    color: white;
    margin-bottom: 25px;
}

.conclusion-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

#conclusionText {
    font-size: 0.85rem;
    line-height: 1.5;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #4361ee;
    color: white;
}

.btn-primary:hover {
    background: #3a0ca3;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-outline:hover {
    background: #ef4444;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 100px;
}

.comparison-section {
    padding: 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.comparison-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comparison-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comparison-card-name {
    font-weight: 700;
    font-size: 1rem;
}

.comparison-card-delete {
    color: #f72585;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
}

.comparison-metrics {
    display: flex;
    gap: 12px;
}

.comparison-metric {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.comparison-metric small {
    font-size: 0.7rem;
    color: #718096;
}

.empty-comparison {
    text-align: center;
    padding: 40px;
    color: #718096;
    background: white;
    border-radius: 12px;
}

.disclaimer {
    margin-top: 20px;
    padding: 12px;
    background: #fef2e8;
    border-left: 3px solid #f59e0b;
    font-size: 0.7rem;
    color: #78350f;
    line-height: 1.4;
}

.feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1000;
    transform: translateY(-100px);
    transition: transform 0.3s;
}

.feedback.show {
    transform: translateY(0);
}

.feedback.success {
    background: #10b981;
}

.feedback.error {
    background: #ef4444;
}

.feedback.warning {
    background: #f59e0b;
}

/* 移动端：去掉所有圆角和边距，内容填满屏幕 */
@media (max-width: 768px) {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }

    .container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .header {
        padding: 20px;
        border-radius: 0;
    }

    .quick-actions {
        position: static;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .input-section,
    .result-section {
        padding: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .metric-card,
    .conclusion,
    .input-category,
    .company-info,
    .secondary-card,
    .comparison-card {
        border-radius: 8px;
    }

    .section-title {
        font-size: 1.2rem;
    }
}
