
/* 移动端响应式样式 */
@media (max-width: 320px) {
    body {
        font-size: 14px;
        padding: 10px;
    }
    
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    input, select, textarea {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
    
    button {
        min-height: 44px;
        min-width: 44px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .calculator-form {
        padding: 20px;
    }
    
    .result-section {
        margin-top: 30px;
        padding: 20px;
    }
    
    table {
        font-size: 14px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 750px;
    }
    
    .calculator-form {
        padding: 30px;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

/* 触摸友好的元素 */
button, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 16px;
}

/* 响应式字体 */
body {
    font-size: 16px;
    line-height: 1.5;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}
